Simple Django Rest Starter 🔗
This is ready to deploy Django Starter Template for backend development which set up all the basic requirements and api routes for a Django project.
- Django 4.0 & Python 3.8
- Ready to deploy on Heroku
- SendGrid SMTP support
- Django Rest Framework
- Django Allauth
- Custom Email Based Authentication
- Custom Admin Interface
- CORS Support
mason make simple_django_rest_starter
variable | description | default | type |
---|---|---|---|
name |
project name | Simple Project | string |
email |
email address | [email protected] | string |
password |
email password | Null | string |
System Requirements:
- Python 3.8+
- Django 4.0+
- SendGrid API Key
https://documenter.getpostman.com/view/11585991/UzBjsneE
- Using Virtualenv:
pip install virtualenv
virtualenv venv
cd venv/Scripts
activate
- Using Virtualenv:
pip install virtualenv
virtualenv venv
source venv/bin/activate
pip install -r requirements.txt
python manage.py makemigrations
python manage.py migrate
python manage.py collectstatic
python manage.py createsuperuser
EMAIL_BACKEND = "sendgrid_backend.SendgridBackend"
FROM_EMAIL = os.environ['SEND_VERIFY_EMAIL']
DEFAULT_FROM_EMAIL = os.environ['SEND_VERIFY_EMAIL']
SENDGRID_ECHO_TO_STDOUT = True
SENDGRID_API_KEY = os.environ['SEND_GRID_API_KEY']
SENDGRID_SANDBOX_MODE_IN_DEBUG = False
ACCOUNT_CONFIRM_EMAIL_ON_GET = True
LOGIN_URL = 'http://localhost:8000/email-verified/'
heroku login
heroku config:set DISABLE_COLLECTSTATIC=1 --app <your-app-name>
python manage.py runserver
Here is a list of all the issues I have faced while developing this project. At the end of the development, I fixed all the problems, but I am still working on the issues I have not fixed yet. Some problems arise again, so we can have that issue as soon as possible while working on the projects.
Solution: django-cms/django-filer#1296