Michael the wolf 🐺
thanks
Abhi
i can't fix static file and media ?
You have use python manage.py collectstatic
anrays
You have use python manage.py collectstatic
🤣🤣 i mean i need nginx setting config
ishaan
has anyone added chart plugins in ckeditor
Doragonsureiyā
has anyone added chart plugins in ckeditor
This is not a Django specific question, please delete your offtopic message. If it's a Python related question go to @Python group, otherwise please move to @PythonOfftopic group and ask there.
Maxim
it's related to django ckeditor 5
you're not getting help in this group, on a non Django related question like yours, and if you insist, you'll be banned
Text
When creating a user and password for admin in the terminal, it freezes. This happens in every new terminal. How can I fix it?
Farzad
When creating a user and password for admin in the terminal, it freezes. This happens in every new terminal. How can I fix it?
it's not freezing, terminal deos not show the password you type. type it and hit enter, it would work
Text
it's not freezing, terminal deos not show the password you type. type it and hit enter, it would work
No I know, I've experienced this many times before but now it freezes immediately.
Farzad
No I know, I've experienced this many times before but now it freezes immediately.
oh ok, i don't about that, but it may be from your database connection, try wrting and reading some data to it from shell.
Text
My English is not good, I may not have written some of them correctly, I apologize in advance. (:
Text
Try to migrate first
I fixed it, thank you very much
Отабек
Hi guys. How i can changed some items in django admin site template
Отабек
how can i host 2 models in one django admin site. their data should be side by side
bidlo
hi, can you help me with this error this error is catch, when i use jazzmin admin panel in my app, and i tried to add something, then i catch this error TemplateSyntaxError at /admin/api/user/add/ Invalid filter: 'length_is' Request Method: GET Request URL: http://127.0.0.1:8000/admin/api/user/add/ Django Version: 5.1 Exception Type: TemplateSyntaxError Exception Value: Invalid filter: 'length_is' Exception Location: /home/alinur/Рабочий стол/first_fullstack_project/backend_python/venv/lib/python3.12/site-packages/django/template/base.py, line 611, in find_filter Raised during: django.contrib.admin.options.add_view Python Executable: /home/alinur/Рабочий стол/first_fullstack_project/backend_python/venv/bin/python Python Version: 3.12.4 Python Path: ['/home/alinur/Рабочий стол/first_fullstack_project/backend_python/python', '/usr/lib/python312.zip', '/usr/lib/python3.12', '/usr/lib/python3.12/lib-dynload', '/home/alinur/Рабочий ' 'стол/first_fullstack_project/backend_python/venv/lib/python3.12/site-packages'] Server time: Fri, 30 Aug 2024 09:41:16 +0000
11111
Hello everyone How to create a connection between JWT and Oauth2
11111
Library: allauth
A
Hi guys how can i make a real time chat website with Django ?
A
Use websockets and django-channels
With web sockets i can make a good messenger app ? Because I had heard that Django is not very good for creating a chat program, is this true?
Fofana
good evening overall, I would like help for hosting on the lws server.
Doragonsureiyā
good evening overall, I would like help for hosting on the lws server.
This is not a Django specific question, please delete your offtopic message. If it's a Python related question go to @Python group, otherwise please move to @PythonOfftopic group and ask there.
Doragonsureiyā
it's django. it's a platform developed in django
Adding the word Django to your Off-Topic question doesn't magically turn it to a Django related question, so delete your question here and move to the @PythonOfftopic group and ask there.
Maxim
it's django. it's a platform developed in django
hosting issues - offtopic every respectable hoster has documentation related to Django hosting, if it's not or it's not enough for you, you have to go to @pythonofftopic anyway don't forget to delete offtopic messages
Никайтос
hello got some problems with storing my media files into s3 bucket in a project root there is 'media' folder and app 'core' with directory 'static' in it. in settings it looks like that STATIC_URL = "static/" STATIC_ROOT = os.path.join(BASE_DIR, 'core', 'static') MEDIA_URL = "media/" MEDIA_ROOT = os.path.join(BASE_DIR, "media") i'm trying to upload this to my s3 bucket here # AWS AWS_ACCESS_KEY_ID = os.environ.get('AWS_ACCESS_KEY_ID') AWS_SECRET_ACCESS_KEY = os.environ.get('AWS_SECRET_ACCESS_KEY') AWS_STORAGE_BUCKET_NAME = os.environ.get('AWS_STORAGE_BUCKET_NAME', 'dfs-bkt') AWS_S3_CUSTOM_DOMAIN = f'{AWS_STORAGE_BUCKET_NAME}.s3.amazonaws.com' AWS_S3_FILE_OVERWRITE = False # Static files settings AWS_STATIC_LOCATION = 'static' AWS_STATIC_URL_AWS = f"https://{AWS_S3_CUSTOM_DOMAIN}/{AWS_STATIC_LOCATION}/" # Media files settings AWS_MEDIA_LOCATION = 'media' AWS_MEDIA_URL_AWS = f"https://{AWS_S3_CUSTOM_DOMAIN}/{AWS_MEDIA_LOCATION}/" STORAGES = { # Media management "default": { 'BACKEND': 'storages.backends.s3boto3.S3Boto3Storage', 'OPTIONS': { 'location': AWS_MEDIA_LOCATION, }, }, # Static files management "staticfiles": { 'BACKEND': 'storages.backends.s3boto3.S3StaticStorage', 'OPTIONS': { 'location': AWS_STATIC_LOCATION, }, }, } 'static' directory is in my bucket after collectstatic command, but media files aren't. shy is that?
Tanzid
can anyone suggest a tutorial for geo Django..?
Charly
can anyone suggest a tutorial for geo Django..?
https://docs.djangoproject.com/en/5.1/ref/contrib/gis/tutorial/
никита
Hi, could you tell me how to use middleware not in all views but in selected views?
Charly
Hi, could you tell me how to use middleware not in all views but in selected views?
https://medium.com/@vickypalaniappan12/django-exclude-certain-views-from-custom-middleware-51a4c205b731
Wei Xiang
I have a django project. I want to integrate the django with functions from Erpnext like adding a new module. Is that possible?
Wei Xiang
Is there library needed for that? Also how about the login like using OTP and Azure Directory.
Wei Xiang
Specifically for what feature?
Maybe like adding new module: HR or Items or Stock etc.
Priyanshu Pratap
Hey i am using dropdownfilter in django to show the list from the field...but when the data inside field is more than 30 words it shows the list in right side of screen which is not visible properly
Priyanshu Pratap
How can i fix it...anyone please help
Priyanshu Pratap
Are you using a dropdrown as textarea?
I am using like this list_filter( "answer",DropdownFilter)
Priyanshu Pratap
It is showing whole text inside textarea
Priyanshu Pratap
Murad
(I'm new to Django, Python,) I've been adding and deleting data in my development (Terminal py manage.py shell/ from members.models import Member/Member.objects.all()values() and in Query set[] then i add members member = Member(firstname='la-la-la') member.save() and django give number id 12 and so on ''''''' and noticed that the id number keeps adding up and never reset to 1 even if I delete all the models. Is it possible to reset the id number to start from 1 before I push this up to the production? Is it a good idea to do that?please help guys!
Murad
you're not going to copy your test base into a product environment
I really sorry Maxim I a bit confused would you be polite and make it more clear to me please?🙌 i mean what you exactly mean
Murad
so let me be very clear i created project and start it 1 create env then 2create app 3 views 4 urls 5 templates 6 models and started work about insert data through (interactive console)
Murad
after adding and deleting some data by shell id number just increased and dont keep them right sorry my English I do hope you comprehend?
Maxim
after adding and deleting some data by shell id number just increased and dont keep them right sorry my English I do hope you comprehend?
why are you repeating what you've already said this is known database behavior and there are reasons for it it's a bad idea to interfere with it
Jey
Hi people. I've written a Telegram bot in Django. I want to upgrade it to support the telegram mini apps feature but I'm not very experienced with front end development. Would you recommend Django for development of mini apps?
Jey
How you can relate django and aiogram? :D
I got tired of looking for the 'best' framework for the job and decided to just do the job with what I knew. But now I've done it, I'm exploring how to further improve, hence my request for opinions on Django for mini apps development.
Charly
I mean, if you decided to not use any telegram library you can start the web app the same way you done (I assume you are calling the telegram apis directly)
Wei Xiang
Maybe like adding new module: HR or Items or Stock etc.
Any suggestion for this django like erpnext system?
Charly
Any suggestion for this django like erpnext system?
Not much, you need to design your system, telling you how to build an entire system is complicated
Wei Xiang
I see. But is possible to build django like erpnext. Just want to know the comcept not the technical ya.
Wei Xiang
Is there online samples?
Charly
I mean you can try to search for erps made with Django but not sure how helpful it will be for you
Charly
And tbh if you need an ERP but you have bit the capacity to build it, why don't you use a pre made solution?
Wei Xiang
Oh. I was tasked to design django to exhibit erpnext like features. Just a simple one.
Parag
any free courses for django
Doragonsureiyā
any free courses for django
Looking for Django tutorials? you can follow these three recommended ones: * Official documentation and tutorial * Tutorial from MDN * Tutorial from django-girls
Nayan
Getting error while deploying app on heroku No module found crispy_forms Cmd throws error - heroku run manage.py migrate