8000 GitHub - harryyy27/trydjango: setting up Django server for the first time
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

harryyy27/trydjango

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

trydjango

Setting up Django server for the first time. These should be the instructions to clone the project.

  1. git clone https://github.com/harryyy27/trydjango
  2. virtualenv -p python 3
  3. cd into root directory
  4. source bin/activate
  5. pip install -r requirements.txt
  6. cd into src
  7. set up config.py in src directory and type in a SECRET_KEY1 variable. Set it to any string
  8. set up a postgres DB in settings.py
DATABASES = {
  'default': {
      'ENGINE': 'django.db.backends.postgresql_psycopg2',
      'NAME': 'db_name',
      'USER': 'name',
      'PASSWORD': '',
      'HOST': 'localhost',
      'PORT': '',
  }
}
  1. python manage.py migrate
  2. python manage.py createsuperuser
  3. python manage.py runserver
  4. voila!

About

setting up Django server for the first time

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0