Alex
yes deploy tools
most popular are ansible and fabric
Anonymous
Hello, can anyone help me out with how to render a pdf in django with images on it? I have the images with their url?
Charly
what about Serializer
In the front end?
Zoha
Hi, i have one manytomanyfield in my news app to category app and i want to get more than 1 category from user and save it, but idk how, is there anyone help me ?
Ali
Hi, i have one manytomanyfield in my news app to category app and i want to get more than 1 category from user and save it, but idk how, is there anyone help me ?
hi.. show ur categories in a multi selectable select tag, use the name attr of your select tag with brackets [ ] this will give you a array of data i.e. <select name='some[]'>
Anonymous
And in the views how can i store it ?
You’ve used form class? CreateView ????
Ali
And in the views how can i store it ?
i assumed u don't use django forms, if you do,this is not standard i guess, but if you don't, well, it's an array that you have in your view,you can iterate over it..
luci._
hello
luci._
How can I validate the time to create a model
luci._
an instance
Doragonsureiyā
How can I validate the time to create a model
Please provide a full explanation including all the details that you consider relevant. Your statement is too broad and there is no clear way to answer you, you have to explain: - what you're doing - what you're expecting - what you're using - where you're running the script - what Python version you're using - what packages and their versions you're using - and the most important thing: show the code YOU wrote (read rule 5️⃣ for that) and more details, that way your chances to get help will increase
luci._
i dont have code, im doing a delivery system, but people shouldn't do an order after 11 o'clock. I have a order models and i want to validate the time
luci._
if it's more than 11 i want to hide the template
luci._
or other option, but the only way I can think of datetime.now()
Alex
i dont have code, im doing a delivery system, but people shouldn't do an order after 11 o'clock. I have a order models and i want to validate the time
Then simply create a validator function and add it either to your form or serializer. > datetime.now() That or use timezone aware object if you need. Then simply check its hour attribute. https://docs.python.org/3/library/datetime.html#datetime.datetime
luci._
aaaah see this
luci._
sorry i cant send media :c
Alex
sorry i cant send media :c
Thanks God! And admins.
luci._
Thanks God! And admins.
this is real, whitout spam jajaja
luci._
but thanks for the link
Doragonsureiyā
sorry i cant send media :c
To share code or error tracebacks, be considerate and use an online pasting service - here is a list of suggested sites: - https://del.dog - https://dpaste.org - https://linkode.org - https://hastebin.com - https://bin.kv2.dev If you post a wall of text message (many lines), delete it quick or you may get a warn strike.
Alex
Mite
Any one with open source django chat application..who can give me the sourcecode...
Doragonsureiyā
Any one with open source django chat application..who can give me the sourcecode...
Step 1: Open a browser Step 2: Write down https://google.com or https://duck.com and press Enter Step 3: In the search box, write down the same words you asked here Step 4: Read the first results
Mite
! search
I can't not find in Google
Alex
Mirco
Yeah definitely
https://github.com/juanifioren/chat-example-with-channels
Mirco
And I used Google so it's not possible you was not able to find it 😅
Mirco
😂 the way I searched was a mistake
Learn how to proper search on Google and similar 😏
Ing. Mario Tamayo
Is it possible to implement a shopping cart without authentication
Ing. Mario Tamayo
I just finished a site using an app named django-shopping-cart and in 127.0.0.1 everything was fine but when i run the server in an actual ip address i get key error at cart when trying to acces request.session['cart'].
Ing. Mario Tamayo
all that i did was remove de login required decorator of the views
Ing. Mario Tamayo
Why? Seriously... Why? 🤔
i dont have an authtentication system in my site
luci._
how can i do a asynchronism in django 3 whitout celery? I have to send a reminder on slack
luci._
thanks, i will read it
Deleted
Hey guys, how to get SSL CA certificate files for python web projects? Thanks
Vinod
Django_q library
It will need some message broker, without this any possibility?
Rahkmanuly
It will need some message broker, without this any possibility?
As a message Q it uses REDIS, just read the documentation bro)
Vinod
As a message Q it uses REDIS, just read the documentation bro)
In my project they are not allowing to install message broker's,so I am planning with something like cron job type like that? Any suggestions?
Rahkmanuly
In my project they are not allowing to install message broker's,so I am planning with something like cron job type like that? Any suggestions?
Oh, I misunderstood U. Sorry I don't know. Just for information I am using DJANGO_Q rather than Celery.
Aneesh
How to implement indendity server in django
Aneesh
Any one know about this
Aneesh
?
Faisal
Django restframework-sso
Unknown
Hi When I run my code , browser show me : value Error , The view didn't return an HttpResponse object. It returned None instead . Although I import redirect and use it with return statement. Help me to find the problem please.
Charanpreet Singh
Hey , I wish to use Mongodb with django , it is my first time I am working with any database , does anyone has any good resources to start with the same ? Kindly share if you have any ! :3
Ad
Hello all, I have a model that stores employee name and created date when a deal is successful. In the list_display() of django admin instead of showing all the objects, I want to display individual employee name and its count in current year.
Jack👨🏻‍💻
@admin.register(model_name) class model_nameAdmin(admin.ModelAdmin): list_display =(field names of your model arrange like tuple)
Jack👨🏻‍💻
add the above code in admin.py
Jack👨🏻‍💻
i think it will work
Viswa
File "C:\Users\91861\AppData\Local\Programs\Python\Python38\lib\site-packages\django\core\management\commands\runserver.py", line 64, in get_handler return get_internal_wsgi_application() File "C:\Users\91861\AppData\Local\Programs\Python\Python38\lib\site-packages\django\core\servers\basehttp.py", line 47, in get_internal_wsgi_application raise ImproperlyConfigured( django.core.exceptions.ImproperlyConfigured: WSGI application 'constractionsite.wsgi.application' could not be loaded; Error importing module.
Viswa
getting this error
Viswa
anybody can help me
Ad
@admin.register(model_name) class model_nameAdmin(admin.ModelAdmin): list_display =(field names of your model arrange like tuple)
Doing this will display all the objects of EmployeePoint. I want something like list_display =("employee","count") where count gives the number of objects for that employee created that year
レザ
I want to implement forms like admin TabularInline forms in Django template. any body can help me with this?
Anonymous
Halo everyone I am in need of a study partner(s) on the journey of learning django i have a background knowledge of programming but willing to cooperate with individuals who are trailling on the same journey
Anonymous
Any serious individuals who want it as badly as me they should add me up..👌👍
Anonymous
Am sure its gonna be an amazing journey to mark
Anonymous
I can help you with any question. Just ask any time
Sounds great here we need more who are willing but thanks @PyC0der
レザ
Can i ask what is admin's ID? i can't find him/her in members
Anonymous
different clients? telethon itself?
Mirco
Anyone knowing how to do this?
There are so many packages for rendering PDFs just have a search on Google or you search engine