Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialLogesh Jayaraman
445 PointsStart Project
When i run the scrip django-admin Startproject learnings_site it creates the projects in the python\scripts\learning_site ... How can i define my workspace and create the project in a specific folder i want rather it is getting created within the folder. Also i would like to know the pros and cons of having with in the python folder or outside it.
3 Answers
Oktay Altay
2,329 PointsThe workspace is just like a terminal or cmd depends on what OS you are using. If you want to make your project in a specifiek folder you just need to use the following command: mkdir "name" this will make the dir folder, after this you just go inside the folder and execute the startproject script. To go inside the dir folder you just need to use the command cd "name of folder" and press enter. sorry for my bad english
Erika Suzuki
20,299 PointsYou dont need to start a django project inside your Python installation folder, just saying. you could do it in the desktop even.
cd /User/username/Desktop
mkdir workspace
cd workspace
django-admin startproject project_name
Anthony Albertorio
22,624 PointsA great tutorial to show you how to set up on Linux or OSX: https://medium.com/@djstein/modern-django-part-0-introduction-and-initial-setup-657df48f08f8
You an always use a virtualbox to create a Ubuntu/Linux instance and do project there if you have windows.