[SOLVED] PyPlanet -> how to create project?

Python 3 Server Controller for Trackmania and Shootmania for script-only modes.

Moderators: TheM, toffe, NADEO

Locked
User avatar
o0Julia0o
Posts: 44
Joined: 11 Jul 2020, 15:20

[SOLVED] PyPlanet -> how to create project?

Post 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?
User avatar
toffe
Posts: 782
Joined: 15 Jun 2013, 10:57
Location: The Netherlands
Contact:

Re: PyPlanet -> how to create project?

Post by toffe »

Did you got it working now?
User avatar
o0Julia0o
Posts: 44
Joined: 11 Jul 2020, 15:20

Re: PyPlanet -> how to create project?

Post 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.
User avatar
toffe
Posts: 782
Joined: 15 Jun 2013, 10:57
Location: The Netherlands
Contact:

Re: PyPlanet -> how to create project?

Post 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.
Locked

Return to “PyPlanet”

Who is online

Users browsing this forum: No registered users and 1 guest