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

Spirit 0.5 integration into mezzanine- help!! #222

Closed
nabeelakhtar9 opened this issue Nov 14, 2017 · 1 comment

Comments

@nabeelakhtar9
Copy link

commented Nov 14, 2017

Hello Nitely! I really like your package. Your forum is perfect according to my need.

My problem is that I have been trying to integrate Spirit in to my mezzanine project. I tried a couple things around the internet but was unlucky.

I tried #192 but i found that Starting from Spirit 0.5 all of this will no longer be valid.

Kindly guide me how can i integrate spirit 0.5 and plus into mezzanine. Thanks

@nitely

This comment has been minimized.

Copy link
Owner

commented Nov 17, 2017

Hey,

This seems to be a common request so I'll try and add a guide to the docs this weekend. But for now you can try this:

First of, do all of this on a local machine first, not in the production site.

Install Spirit and make sure it works:

# piping the repo is required since Spirit v0.5 is not out yet
pip install --upgrade https://github.com/nitely/Spirit/archive/master.tar.gz
spirit startproject mysite
cd mysite
python manage.py spiritinstall
python manage.py createsuperuser
python manage.py runserver

All of this is required so you can copy Spirit settings into your mezzanine project. This should have generated /mysite/settings/base.py. You've to [manually] merge that file's content with your current site's settings.py.

Include Spirit URLs into the mezzanine project by adding import spirit.urls and url(r'^forum/', include(spirit.urls)), into urls.py

Then run:

# spiritinstall runs migrate and collectstatics
python manage.py spiritinstall
python manage.py createsuperuser
python manage.py runserver

That should be it.

@nitely nitely closed this Jan 3, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.