This task involves initializing a Django project named core such that its main app is also named core, while allowing for the root directory of the Django project to be renamed to back. Additionally, this task includes setting up a .gitignore file for the Django project, and creating requirements.txt and requirements-dev.txt files for dependencies.
Steps
Initialize Django Project:
Create a new Django project named core:
django-admin startproject core
Rename the root directory of the Django project to back:
mv core back
Create api App:
Navigate into the back directory and create a new Django app named api:
cd back
python manage.py startapp api
Set Up .gitignore:
Create a .gitignore file in the root of the repository with the following content (or more):
Description
This task involves initializing a Django project named
core
such that its main app is also namedcore
, while allowing for the root directory of the Django project to be renamed toback
. Additionally, this task includes setting up a.gitignore
file for the Django project, and creatingrequirements.txt
andrequirements-dev.txt
files for dependencies.Steps
Initialize Django Project:
core
:back
:Create api App:
back
directory and create a new Django app namedapi
:Set Up .gitignore:
.gitignore
file in the root of the repository with the following content (or more):Create Requirements Files:
Create a
requirements.txt
file in the root of the repository and add the basic Django dependency:Create a
requirements-dev.txt
file in the root of the repository for development dependencies:Resources
Priority