Setup an Existing Django Project
-
Grab a copy of the project.
git clone new_project.git
-
Create a virtual environment and install dependencies.
mkvirtualenv new_project pip install -r requirements.txt
Duplicate
new_project/new_project/local_settings_example.py
and save aslocal_settings.py
.Enter your database settings in
local_settings.py
.-
Initialize your database.
python ./manage.py syncdb python ./manage.py migrate
If your app has a custom user model, you'll need to create a new superuser for the admin.
python ./manage.py createsuperuser
-
Run the development server to verify everything is working.
python ./manage.py runserver
Written by Rod Afshar
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Python
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#