-
Notifications
You must be signed in to change notification settings - Fork 130
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
Providing a sitetree with ones website ? #259
Comments
Thank you. Project level sitetrees module is not checked. Also a hint: consider using dynamic trees (see |
I'm fine with the project level not being checked (I rather expected that) but if I wipe the DB, resync sitetrees and start the server again and I still get an empty tree within the database as shown in the original image. Is this the expected behaviour ? What I'm not certain of is that the |
No this is not expected. I'll try to investigate the issue this week. Have you had a chance to check |
Do you mean I should interrogate the model directly through the shell ? (I'm not sure what you mean by |
Yes you can use Django shell or pip into database table named |
So interrogating the model from the shell gives me the two items I specified in
I can see the tree It seems the tree itself is recreated anew every time I re-sync. I thought this might be related to issue:135 but looking at the site tree code I see the changing of the index is intentional, at least it's the default action for the primary key and this is wiped during processing :
Issue:166 also seems related, is there a way to clear the site tree cache ? I wiped the various Hmm... |
Yes. That's how it works.
Sounds like a permission-related problem. I'll try to investigate the issue this week. |
So at last I have had a chance to check this issue using demo project — https://github.com/idlesign/django-sitetree/tree/master/demo — and that's what I see after syncing: Please try the demo with your code placed in https://github.com/idlesign/django-sitetree/blob/master/demo/demo/sitetrees.py to verify wether the issue persists. |
Thank you for sitetrees it is a really nice package.
I have a minor issue though and I'm not sure if I've messed up something or if this is a bug. I have done the following :
To which I add a
sitetrees.py
file both under the application and the website as follows :Within
website\sitetrees.py
I have added the following :Within
APPLICATION\sitetrees.py
I have added the following :I then synchronize the trees as per the documentation
The resulting tree however is empty
Usually adding something under
PROJECT/website
is asking for trouble, since then you have to addwebsite
as an application underINSTALLED_APPS
which, as I understand it is a bit of a no no. So I'm not expectingPROJECT/website/sitetrees.py
to synchronize with the tree but I was rather hoping thatPROJECT/APPLICATION/sitetrees.py
would work and it appears not to do so. Have I messed up here or is there a bug I've discovered ?I'm using Python version 3.6.3 and Django 2.1..5
The text was updated successfully, but these errors were encountered: