Django Project Setup for Render
pip install -r requirements.txt
python manage.py startapp appname
INSTALLED_APPS = [
...
'appname',
]
# user_visit/models.py
from django.db import models
class Model(models.Model):
# user_visit/views.py
# backend/urls.py
from django.urls import path
urlpatterns = [
...
]
Once your project is deployed, you can access it at the following URL.
-
Create a Render project.
-
Add a web service to your Render project.
-
In the "Build Command" field, enter the following command.
./build.sh
- In the "Start Command" field, enter the following command.
gunicorn backend.wsgi:application
- In the "Env Vars" field, add the following environment variables.
DATABASE_URL=postgresql://localhost/modlinkproduction
SECRET_KEY=your-secret-key
WEB_CONCURRENCY=4
- Deploy your project.
https://your-project-name.onrender.com
Contributions are welcome! Please see the contributing guidelines for more information.
This project is licensed under the MIT license. See the LICENSE file for more information.