Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow to create projects from CLI #881

Merged
merged 3 commits into from
Jul 26, 2024
Merged

Allow to create projects from CLI #881

merged 3 commits into from
Jul 26, 2024

Conversation

Raruto
Copy link
Contributor

@Raruto Raruto commented Jun 20, 2024

Closes: #434

How to use

Refresh all demo projects (git pull from: g3w-suite-demo-projects):

python3 manage.py reload_demo

Upload a specific project:

python3 manage.py load_project --file=/path/to/your/projects/demo.qgs --data=/path/to/your/projects_data/

Fallbacks to g3w-suite-demo-projects/projects/demo.qgs when not found locally:

python3 manage.py load_project --file=demo.qgs

NB: organization of data and projects

Local QGIS projects "should" be organized in compliance with the following folder structure:

@Raruto
Copy link
Contributor Author

Raruto commented Jul 23, 2024

@wlorenzetti
Copy link
Member

@wlorenzetti is it okay?

I'll try very soon

@Raruto Raruto merged commit 74b6136 into dev Jul 26, 2024
4 checks passed
@Raruto Raruto deleted the load-projects-from-cli branch July 26, 2024 08:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add a script to automate demo data installation
2 participants