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

How to use this package? #1

Open
stilet opened this issue Dec 7, 2019 · 1 comment
Open

How to use this package? #1

stilet opened this issue Dec 7, 2019 · 1 comment

Comments

@stilet
Copy link

stilet commented Dec 7, 2019

from the command line?

@pawnhearts
Copy link
Owner

There is demo django project in demo/ directory.
Basically:
add "django_vue_generator" to INSTALLED_APPS.
run "./manage.py start_frontend" that would create "frontend" directory with vue stuff and also urls.py, static/ templates/ folders. So it also acts as a django app.
run "./manage.py build_frontend" to build vue project and create template.
Add "frontend" to INSTALLED_APPS and include frontend.urls.urlpatterns to your urls.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants