Run your code
Django Compose is a django-project-code-generator.
It generates for you a full working and well documented django project code, to get you started as fast as possible and boost productivity.
Setup your code
From the command line, cd into a directory where you have the generated source code (folder containing manage.py
, requirements.txt
and README.md
).
Given the download format is .zip
you may need to unzip to get the project source code
then run the following command:
python -m venv virtualenv
source ./virtualenv/bin/activate
pip install -r requirements.txt
python manage.py makemigrations
python manage.py migrate
python manage.py runserver
The development server
Let’s verify your Django project works
You’ll see the following output on the command line:
Performing system checks...
System check identified no issues (0 silenced).
April 26, 2024 - 15:50:53
Django version 5.0, using settings 'mysite.settings'
Starting development server at http://127.0.0.1:8000/
Quit the server with CONTROL-C.
Now that the server’s running:
-
Visit http://127.0.0.1:8000/web with your web browser, if you configured Django Compose to generate Web Application
-
Visit http://127.0.0.1:8000/web with your web browser, if you configured Django Compose to generate Restful API Application
Continue building 💪
The generated Django code for your project is well documented and also contains useful links to different learning resources about different Django parts.
Futhermore, visit the Django official documentation for more detailed information about Django projects development.