All Questions
6 questions
0
votes
1
answer
730
views
Django CKEditor Code Snippet not rendered correctly
I am building a Django blog that supports code snippets for both post and comments. The following is my CKEditor config in settings.py
CKEDITOR_CONFIGS = {
'default': {
'toolbar': 'full',
...
0
votes
2
answers
215
views
How do I use django models.py classes in my own python programs?
So, I want to make some changes in the database using python outsite Django, but I am unable to.
I'm trying to import the model from models.py but i'm unable to.
from models import NumberInfo
There ...
2
votes
3
answers
2k
views
Django: no such table snippets_snippet
I'm following this Django Rest tutorial on serialization: http://www.django-rest-framework.org/tutorial/1-serialization/#getting-started
I followed it pretty much to the letter. It gives the above ...
2
votes
1
answer
148
views
Django Authentication and Permissions: Snippets visible only to the creator
So in the tutorial for authentication and permissions:
http://www.django-rest-framework.org/tutorial/4-authentication-and-permissions/
All user can see all snippets but it only allows the user to ...
1
vote
1
answer
540
views
Explain the code snippet in Django
I am pretty new to Django. I am fiddling with zinnia to customize it and setting it up with my own theme/template etc. The main content displayed in the default template is following:
{% for object ...
0
votes
1
answer
549
views
Django Partition Filter Snippet
I'm using one of the partition Django snippets to split data into 3 columns and while everything is working, I don't know how to call the middle partition.
Snippet:
@register.filter
def partition(...