Toni Fer.
No, no easy way to manage it. You can scan files uisng something like clam av but not really reliable
Thanks a lot for your answer... u am think that there are many websites with this feature, for instante to convert images format... is it possible thar in other languafes like the complexity is the same or there more features to manager this case?
Firdaus
Hi! What is best, def views? Or class views? Thanks!
I thinks it's a personal choice. Myself prefer function based views (FBV). I can "see" and understand what's happening inside the view
Oviyan S
Tell us what the specific issue is, and we might help
I have created feedback system using in django in that I have listed question the options are in format subjectcode/subject name 5 options are excellent good average below average Subject name and code is in models when user select the batch and department it dynamically loaded I want to store the response in database I’ve written code to store but it couldn’t store the response
Muflone
Hi! What is best, def views? Or class views? Thanks!
Usually CBV as a lot of work can be avoided and it's included in the CBV, also you can use mixins to reuse many parts of them
Noname
Hello everybody! I need your help! My Django app works with PostgreSQL DB, but another utility works with this DB too. I have to add functional of notificating: if in table 'commands' any object's field 'status' was changed -> Django must get this information and execute some code. Thanks for your help!
Abhi
No, no easy way to manage it. You can scan files uisng something like clam av but not really reliable
That's i think u have to use django security or not save the data in main table?
Macara
hi guys, i need a django book french version in pdf format
Maxim
hi guys, i need a django book french version in pdf format
read the rules rule #1 includes materials you can ask for and share
None
hi i want send push notification with django and drf with firebace . there is a good library or a good ducomnet for this?
Rose
User AbiduSage has 2/3 warnings; be careful! Reason: nonsense
Mohamadamin...
I have a problem in Django and I am getting an error in my template. However, my template is fine. Where is the problem? Who can helpme?
Mohamadamin...
I cant send the picture
Rose
I cant send the picture
Rule #5: Use a pasting service for sharing code and errors!
Maxim
I cant send the picture
because we're not interested in your family photos
Mohamadamin...
because we're not interested in your family photos
😁🙏 Please wait I want turn on the camputer and send the code in the geroup
Mohamadamin...
Mohamadamin...
no
:(( Because I wanted to send you the whole project so that you can better help me.
Maxim
:(( Because I wanted to send you the whole project so that you can better help me.
help is provided exclusively here in the group so if you want to send the whole project, send it here i doubt anyone can give you enough time to really need the whole project i doubt your issue requires it please stop sending useless messages
AbiduSage
champ
liulinxs
when i use signals,i dont want print all instance name ,does there have a simple function to do?
liulinxs
like this
liulinxs
@receiver(post_save, sender=taskInfo) def handle_change_save(sender, created, instance, update_fields, **kwargs): print(update_fields, "----------------") if update_fields: print("监听taskInfo的变化----变更了数据", **instance)
liulinxs
but it is run error
Mohamadamin...
I give an error
Mohamadamin...
I give an error at line 23
Mohamadamin...
Index.html
Mohamadamin...
def Homepageview(request): articales = Articale.objects.published(), context = { 'articles': articales, } return render(request,'weblog/index.html',context=context)
Muflone
The URL doesn't end with / but with something weird in the urls.py
Mohamadamin...
The URL doesn't end with / but with something weird in the urls.py
I have also created the URL correctly, so the issue is not from there. The view is not sending any data to the template at all.
Mohamadamin...
https://hastebin.com/share/ujozuteril.javascript
Mohamadamin...
Read your urls.py The error shows a weird character at the end
Okay, I have resolved this issue, but I am still getting an error.
Mohamadamin...
The URL doesn't end with / but with something weird in the urls.py
from django.conf import settings from django.conf.urls.static import static from .views import Homepageview,detailview,CategoryView from django.urls import path urlpatterns = [ path('',Homepageview,name='home') , path('articale/<slug:slug>/',detailview,name='detail'), path('category/<slug:slug>/', CategoryView, name='category'), ]+ static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
Rose
User Harshit has 1/3 warnings; be careful! Reason: this is neither a job board nor a bulletin board
DeathLikeSilence
hello everyone how can I deploy django project in apllication manager on cpanel ?
Niyas
Anyone know how to deploy django on AWS Elastic beanstalk , am getting an error while deploying
DeathLikeSilence
Are you buy a domain and hosting?
yeah i bought and in google i can not find anything all of the tutorials teach with "setup pyhton app"
Sree
Hello guys, Sometimes the channels in my django project stops, websocket connection automatically fails. What will be the reason?
Mohamadamin...
yeah i bought and in google i can not find anything all of the tutorials teach with "setup pyhton app"
Ok Fine . You can search in the youtube. There are many tutorials on Youtube
Mohamadamin...
So you suppose we read your mind?
Thanks . My problem is solved
Ghanoon
hi , I had a question, backend and frontend codes How are they connected? How to create a connection between them?
Muflone
hi , I had a question, backend and frontend codes How are they connected? How to create a connection between them?
Frontend requests information to backend usually using rest API with fetch or ajax Also react and other modern frameworks use a similar approach
Nicolás
Considering that I am skilled with a beginner course in DJango and two projects of experience. Do you think it is useful to study the Django 5.0 documentation right now or is it not really that relevant to study with books for version 3.1 to version 5.0?
Local
I Think React Js and Django might be good combination, dont you think so
Nicolás
Thank you Local Host
Brook
I Think React Js and Django might be good combination, dont you think so
Yup, I'm currently working on a project using both.
A
When do people usually switch to uuid? and is this necessary?
𝙰𝚜𝚑𝚠𝚒𝚗
When do people usually switch to uuid? and is this necessary?
It's not necessary, it's just good practice
It’s
If we call any person as a Django developer, which topic he know? How many topic in the Django?
Rose
User Vineela has 1/3 warnings; be careful! Reason: this is neither a job board nor a bulletin board
Abolfazl
guys how can i set one value for any field from models.py in views.py ?, not from admin page
R V Bandgar
I want to download csv file based on selection of start date and end date in Django admin...please note that I know how to download all the values of a table or model in csv..please help me..
Tioma
How to set 'DJANGO_SETTINGS_MODULE' if i use multiple files for Settings, i use django-split-settings?
Tioma
but how to pass multiple files, in my manage.py is says os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'main.settings'), and everything is working fine but for celery not
Tioma
i do not wanna large setting file
Tioma
when i pass os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'core.main.settings'), its says architecture-celery1-1 | ModuleNotFoundError: No module named 'main'
Charly
i do not wanna large setting file
That's not a good justification but you can just have a file that import the parts instead of trying to pass all files
Tioma
i have this file, include( 'base.py', 'swagger.py', 'celery.settings.py', 'logging.py', DEVELOPMNET_SETTINGS,)
Tioma
everything should work correctly, but it says No module named 'main'
Charly
everything should work correctly, but it says No module named 'main'
Maybe you don't have a main module ¯\_(ツ)_/¯
Tioma
i have
Charly
i have
Show us
Tioma
core ├── core_apps │ ├── __init__.py │ └── pycache │ ├── init.cpython-310.pyc │ └── init.cpython-311.pyc ├── Docker │ └── local │ ├── Dockerfile │ └── entrypoint.sh ├── __init__.py ├── main │ ├── asgi.py │ ├── celery.py │ ├── __init__.py │ ├── pycache │ │ ├── celery.cpython-311.pyc │ │ ├── init.cpython-310.pyc │ │ ├── init.cpython-311.pyc │ │ ├── urls.cpython-310.pyc │ │ ├── urls.cpython-311.pyc │ │ ├── wsgi.cpython-310.pyc │ │ └── wsgi.cpython-311.pyc │ ├── settings │ │ ├── base.py │ │ ├── celery.settings.py │ │ ├── __init__.py │ │ ├── logging.py │ │ ├── pycache │ │ │ ├── base.cpython-311.pyc │ │ │ ├── init.cpython-310.pyc │ │ │ └── init.cpython-311.pyc │ │ ├── swagger.py │ │ └── templates │ │ └── settings.dev.py │ ├── urls.py │ └── wsgi.py ├── manage.py └── pycache └── init.cpython-311.pyc
Tioma
https://github.com/tiomashimon/Architecture
Tioma
i fixed it, just add settings.configure()
Usmonjon
hello guys, who knows AWS EC2 instance