Problem to start a project because permissions

40 views
Skip to first unread message

Michel Do

unread,
Jun 9, 2016, 10:54:16 AM6/9/16
to django-oscar
Hi,

I try to start a project but i have many problems of permissions on different files and folders like /sites/sandbox/logs/ or db.sqlite.

Maybe i missed something, can you help me please ? (I obviously read the docs)

Steven Maggs

unread,
Jun 9, 2016, 11:41:13 AM6/9/16
to django-oscar
Michel

A couple of simple things to check first -- apologies if these are too obvious

  • When you are setting up your own development environment, make sure that the user account you use to run the server is the same as the account you used to install Django, Oscar, and all dependencies. (Once you are ready to deploy to a non-development environment, you can deal with setting up dedicated user roles and privileges.) 
  • Don't use "sudo" or the superuser account when installing -- this is problematic, unnecessary, and a bad idea .
  • If you are deploying to Windows, and this is your first Django project, you might want to look into using a virtual machine or docker container to get things set up and running the first time.
Also, since you mention the sandbox directory, I'd recommend thinking of "exploring/experimenting with the sandbox" as a separate activity from "starting a project". In other words, rather using the sandbox as the basis for your project, I'd start out by following the sandbox instructions to become familiar with Oscar, but once ready to start a project, I'd start a new, clean Django project, with Oscar installed and configured as a module, following the getting started instructions. I'd keep the sandbox around as a reference for when things get complicated. 

Michel Do

unread,
Jun 14, 2016, 6:49:19 AM6/14/16
to django-oscar
I think it's about the user account, thanks for the answer.
Reply all
Reply to author
Forward
0 new messages