-
Notifications
You must be signed in to change notification settings - Fork 14
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
Project's DB set-up #25
Comments
Hey, cool that you want to set up the project locally! I'm not quite sure which steps are needed. Back then I probably set it up with the divio CLI (divio is the cloud provider it is hosted and where I took the project template from). The problem is for sure, that the logical database doesn't yet exist in your DB container. By adding the variables, the used image should be able to create it for you I think, but we obviously need to make sure to have the correct DB name, username, and password. The database settings have to be somewhere already, I think. Maybe this already helps you to set it up. If not, I'll try to dig in if I find the time. Btw, we should then also improve the readme by adding all required steps of setting it up. |
The thing that I'm the least sure of is this aldryn_addons and the configuration of DATABASE_URL. As you said:
My prediction is that the DB settings are set by these two lines: #settings.py
import aldryn_addons.settings
aldryn_addons.settings.load(locals()) |
I would love to get involved in your project, so I will definitely update the readme when I manage to configure it all. |
Did you, in the end, manage to get it running?
|
I've already found this configuration file and glanced over it. This INSTALLED_APPS.extend([
...
'clipping_manager',
]) I'll look into it tomorrow, or at worst, on Monday. We'll fix it eventually 😉 |
Ah, I just checked it, the app is configured as a django cms app hook. I guess using this app hook's slug in the code (templates/views/...) was probably a stupid idea, because when setting up the project, you simply don't have this app hook. Just for the record, this is my
|
🎉🎉🎉 Thanks a lot, now it works! Or at least it works for now 😉 I have 2 last questions before closing this issue: |
Great! 🎉
Not that I'm aware of. But make sure to publish the page with the apphook, it won't work if it's only a draft.
I just wanted to try it and used it to build the "website" around the clippings application. So the landing page and all other content pages are purely built with the CMS. There are also static place holders that you can add to django templates, this allows to do stuff like in the second screenshot. |
Ohh I see now. So the plan now is to replicate everything I've done so far and update "Project setup" instruction. |
Maybe this is a silly issue, but I'm new to Docker and I got stuck setting up this project.
Problem
Do I need anything more than what is in the original repo to run it?
For example:
What I've tried
Error: Database is uninitialized and superuser password is not specified.
But container seems to be working. When I try to make migration after that I get:
Maybe you know some quick-fix?
The text was updated successfully, but these errors were encountered: