Django Project Folder Structure

27 views
Skip to first unread message

göktürk sığırtmaç

unread,
Jul 17, 2019, 10:57:11 AM7/17/19
to Django REST framework
Hello dear friends, I will develop web app with Django. How should be folder structure my project.

Nehemie Balukidi

unread,
Jul 17, 2019, 11:07:31 AM7/17/19
to Django REST framework
Hi there,

The recommended structure is Project-> Apps. To achieve this, do the following
Open a terminal in a root folder where you want to host your project. Assuming Django is installed,
You start off by typing
django-admin startproject projectname
 This creates a folder named projectname with required files such as settings.py, urls.py, init.py... That should basically be your project's
root folder. 
 Still in the terminal, type 
cd projectname
This moves the working dir to the one you just created(your project's root).
Inside that folder is where your apps should be created doing the following
python manage.py startapp name_of_your_app

Gonzalo Amadio

unread,
Jul 18, 2019, 12:45:24 AM7/18/19
to Django REST framework
I like to create a folder for the apps..

So would be

start-project name
cd name
mkdir apps
startapp name_of_app

And outside apps can reside other libs, and rest of the folders


--
You received this message because you are subscribed to the Google Groups "Django REST framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-rest-fram...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-rest-framework/48eafccc-b71e-4ead-bfd0-eb0b0465b98b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Mohamed Yousif

unread,
Jul 18, 2019, 3:41:14 AM7/18/19
to django-res...@googlegroups.com
Hi!

I think you've found the wrong mailing list for this post. This mailing list is for the development of Django itself, not for support using Django. This means the discussions of bugs and features in Django itself, rather than in your code using it. People on this list are unlikely to answer your support query with their limited time and energy. Read more on the mailing lists at https://www.djangoproject.com/community/

For support, please use the django-users mailing list, or IRC #django on Freenode, or a site like Stack Overflow. There are people out there willing to help on those channels, but they might not respond if you don't ask your question well. Stack Overflow's question guide can help you frame it well: https://stackoverflow.com/help/how-to-ask .

Also if you haven't read it, please take a look at Django's Code of Conduct: https://www.djangoproject.com/conduct/ . These are our "ground rules" for working well as a community, and will help you get the most out of Django and our fantastic community.

Thanks for your understanding,

(From Adam Johnson's similar replies)

Please help keep the mailing list focused on its listed purposed.

Regards,
Mohamed

Reply all
Reply to author
Forward
0 new messages