R
R
Rodion Yurchenko2016-01-28 11:13:52
Django
Rodion Yurchenko, 2016-01-28 11:13:52

How to deploy a new django (ubuntu) project?

Good afternoon
I started learning django - and immediately stumbled on the simplest thing - creating a project,
my actions in the terminal:

cd projects/site
virtualenv virtalenv --no-site-packages
. virtualenv/bin/activate
pip install django
django-admin startproject myapp

here)
I work in the paycharm
of the django support settings:
django project root :  projects/site/myapp
settings                   :  myapp/settings.py
manage script         :  manage.py

The problem is that paycharm does not see any imports in any file - that is, it swears at all imports - they say undefined

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
sim3x, 2016-01-28
@aassdds

In paycharm, sometimes you need to specify with your hands where your virtualenv is located
Settings-> search django
PS

cd projects/site
virtualenv virtalenv --no-site-packages
. virtualenv/bin/activate

pip install -r requirements.txt

pip freeze
pip freeze > requirements.txt
somehow it's better to "deploy"

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question