Page 1 of 1

[SOLVED] PyPlanet -> how to create project?

Posted: 11 Jul 2020, 15:48
by o0Julia0o
i am trying it so: https://pypla.net/en/latest/intro/insta ... ing-python

I have done 3 steps. But i can´t find out, what to do at the 4th step:
"4. Setup Project

After installing PyPlanet on your system, you can’t yet start any instances because starting requires you to give up an settings module. You could either provide this with the start command or create a project directory with skeleton files.

We recommend using the init_project command to create a local project installation where you can install apps, keep PyPlanet and it’s apps up-to-date, provide settings through a useful settings module and provide manage.py as a wrapper so you never have to manually provide your settings module.

Because you have created an Virtual Environment earlier you want to store your ‘project’ in the same folder. You can do this with the following command:

pyplanet init_project ."
-> "We recommend using the init_project command to create a local project"
I have done this:

Code: Select all

pyplanet init_project Testp
After that i used this command, as told in the tutorial:

Code: Select all

pyplanet init_project .
But i get this message:

D:\PyPlanet>pyplanet init_project .
CommandError: 'D:\\PyPlanet\' already exists

That´s my folder-structure after that:
D:\PyPlanet\env:
Image
D:\Pyplanet\Testp:
Image

So what´s my mistake?

Re: PyPlanet -> how to create project?

Posted: 14 Jul 2020, 09:24
by toffe
Did you got it working now?

Re: PyPlanet -> how to create project?

Posted: 14 Jul 2020, 20:37
by o0Julia0o
Thx. I hope. If this is a goog looking Project-Folder?

The tmp-folder is empty.
Thats the settings-folder:

and thats the __pycache__-folder:


If i go into my project-folder and do: python manage.py start
the server starts starting. If i add an errorline in the base.py of the project-folder, the starting process is telling me, "you have an error in line xy".

So i think, that´s a proof, that the project-folder has been created successfully.

But 1 question about that. Why don´t you create an default project-folder and having it in a download? So you have only to install phyton and start the activate.bat and go into the default-project-folder. And then change the values on your wishes.

Re: PyPlanet -> how to create project?

Posted: 15 Jul 2020, 12:46
by toffe
Every virtualenv is different based on the operating system and Python installation, it needs unique generation. And the pyplanet installation is just with the default package manager PIP in Python.