VellXR is a global forum for technology enthusiasts where they can write articles and collaborate with others.
This is the source code of the entire website/web app along with Sendgrid E-mail and Cloudinary CDN configurations.
This is required to setup the dependencies for the app to start.
Inside the project directory -
.\env\Scripts\activate- For Windows users
source env/bin/activate- For Linux/MacOS users
pip install -r requirements.txt
Setup local settings
The settings defined in the
vellxr/settings.py is configured for production only environments. To use locally -
- Create a file named
- put the following contents in it -
DEBUG = True SECURE_SSL_REDIRECT = False SECURE_PROXY_SSL_HEADER = None
Initialize the app
Inside the same directory -
python manage.py makemigrations
python manage.py migrate
python manage.py collectstatic
python manage.py runserver 80
Sendgrid E-mail Configuration
This feature will help in error reporting while the app is in production.
This is not necessary for the app to run properly. If you don't want to use this feature, simply comment out the code lines
ADMIN_FULL_NAME- full name on Sendgrid console
ADMIN_EMAIL_ID- E-mail ID used to signup on Sendgrid
SENDGRID_API_KEY- Sendgrid API key
MAILER_LIST- list of users to send e-mail
DEFAULT_FROM_EMAIL- E-mail ID used to signup on Sendgrid
EMAIL_HOST_USER- Username on Sendgrid console
EMAIL_HOST_PASSWORD- Password of Sendgrid account
Cloudinary CDN Configuration
This is a necessary configuration as media files are no longer handled by Django. But still, if you want to continue with Django, Comment the lines
models.py and follow this.
CLOUDINARY_CLOUD_NAME- Cloud name in Cloudinary console
CLOUDINARY_API_KEY- Cloudinary API key
CLOUDINARY_API_SECRET- Cloudinary API secret
- Feel freely to open issues
- The configuration for Heroku is still left to be added in the documentation. Contributing to this will be helpful.