For questions concerning use of extension packages for the web framework Django.
Questions tagged [django-packages]
16 questions
2
votes
1 answer
Django model does not recognize MarkdownxFormField field
I am trying to add markdownx support to my model, which will enable preview editing from the admin panel. However, once i change my content field from models.FileField to MarkdownXFromField() django just deletes the content field when migrating and…

aviya.developer
- 3,343
- 2
- 15
- 41
1
vote
1 answer
Do we need to add files (in the folder) that White Noise creates to the gitignore list?
I have a django project and using whitenoise for static files serving.
When we run py manage.py collectstatic whitenoise, that create lot of files in selected folder in STATIC_ROOT object of settings.py file.
It takes up a lot of volume.
Do I have…

Ali Nazari
- 43
- 1
- 6
1
vote
0 answers
Django: How does django-admin-sortable2 package code work?
I am using a package called "django-admin-sortable2" but I do not understand what I am coding. May someone explain?
Here's what I used:…

EE2021
- 141
- 12
1
vote
0 answers
How do I can change the default django rest_auth redirection?
hi I'm using django rest_auth package for managing my project's authentication system. when I do register or log in with a user it gives me just a key and doesn't redirect user to any page and for logout as well.
how do I can redirect users to my…

hossein-shahsavan
- 359
- 3
- 17
1
vote
2 answers
django application using markdown and cloudinary
I am trying to make a django application using django-markdownx and dj3-cloudinary-storage together.
So one of the features of django-markdownx is that you can drag and drop image in the markdown field and it saves that image and gives back the path…

dropscar
- 113
- 2
- 10
1
vote
2 answers
Adding full path to django MarkdownX images?
I have added a MarkdownxField to my django model, and it works well. I can edit it witha proper preview from the admin panel.
However, when I added images to the markdown there's a problem. My app is built in React and is served from a different…

aviya.developer
- 3,343
- 2
- 15
- 41
0
votes
2 answers
How to move migrations files to outside of django project?
django-project/
migrations/
app1/
.../
src/
app1/
.../
config/
...
settings.py
how to set the path in MIGRATION_MODULES in settings.py to make generated migration files appear in migrations/app1/ folder?
I have…

Zak Wise
- 26
- 2
0
votes
3 answers
I don't understand why I keep getting ModuleNotFoundError
I have this package, setuptools, installed on my local machine as you will in the command line code attached, but I don't understand why I keep getting the modulenotfound error.
PS C:\Users\MY PC\desktop\django-polls> easy_install…

Brainiedude
- 17
- 2
0
votes
1 answer
ascending=True not working in django-mptt
Hi good day I'm currently following Django-MPTT documentation and I have a problem using ascending=True. Here's my code:
views.py
def show_genres(request):
Try01 = Genre.objects.filter(name="Rock")
context = {'genres': Genre.objects.all(),…

miss rain
- 15
- 6
0
votes
2 answers
Inherit bootstrap properties to a custom class
I want my custom class pm_btn to get all the properties that bootstrap's btn class has. One way is to use the actual source code of the btn class. But I believe that there has to be a better way. Therefore, I tried a bit of scss, where inheriting…

Amiay Narayan
- 461
- 9
- 8
0
votes
0 answers
How do I can redirect login, logout, register using rest_auth package?
I'm using Django rest_auth package in my project. by default when I using login, logout and register It showing me a key I want to redirect users in my home URL but I can't. I have LOGIN_REDIRECT_URL but still it shows me the key and…

hossein-shahsavan
- 359
- 3
- 17
0
votes
1 answer
How to update package/dependencies on live django website?
I have created a django website which now I am looking to deploy through DigitalOcean, I have not uploaded it yet because I want to get a clear picture before actually starting.
My questions are,
How to I update the packages required for my website…

Mihir Thakur
- 53
- 4
0
votes
0 answers
Tables from Django packages
How you’re doing, I’m using a package in Django for Instagram API, it creates a table in the admin page with a media Id, the link, the date, and the caption. But I can’t find this table on the project, how can I use this model on a view, and display…
0
votes
1 answer
How To Tell Django Ive Overridden A Third Party App
Im wanting to add functionality to a Django-Notifications view. I guess the best way to do this is to override the class, add my custom logic, then pass the class to super:
from notifications import AllNotificationsList
class…

horse
- 479
- 7
- 25
0
votes
1 answer
How could I modify django-tracking2 so users can opt out of tracking
I'm making a website right now and need to use django-tracking2 for analytics. Everything works but I would like to allow users to opt out and I haven't seen any options for that. I was thinking modifying the middleware portion may work but…

SilverStrings024
- 45
- 8