Skip to content

Latest commit

 

History

History
46 lines (38 loc) · 1.25 KB

README.md

File metadata and controls

46 lines (38 loc) · 1.25 KB

django-template

Django Template

Command Function
make init Add New Django Project
make install Install requirements.txt & Migrate
make user Add Super User
make new app=my_app Add New Django App
make Run Server
make test Run Tests
make shell Run Shell

Config Vars (env)

  • DJANGO_SETTINGS_MODULE = my_project_name.settings.production
  • DJANGO_SECRET_KEY = ********
  • REST_SIGNING_KEY = ********
  • EMAIL_HOST_PASSWORD = ********
  • AWS_ACCESS_KEY_ID = ********
  • AWS_SECRET_ACCESS_KEY = ********
  • SMS_TOKEN = ********
  • DATABASE_URL = postgres://***:*****@pg.com:5432/***

AWS

CORS: Cross-origin resource sharing

[
    {
        "AllowedHeaders": [],
        "AllowedMethods": [
            "GET"
        ],
        "AllowedOrigins": [
            "https://www.example1.com",
            "https://www.example2.com",
        ],
        "ExposeHeaders": []
    }
]