Anonymous
This is my docker-compose.yml
Daniel
idk
Anonymous
https://gist.github.com/da-edra/82ac5b45b2391ace8e31c98efcbdcc72
Anonymous
I've been struggling with this problem for quite a while now.
Daniel
Daniel
your containers can't communicate with each other
Daniel
it's like passing traffic through 2 different switches
Anonymous
:O
Anonymous
Let me change it to one network.
Daniel
leave them on the same Network
Anonymous
I guess I should only have one persistent volume, right?
Anonymous
The one I'm using for the database.
Daniel
the database and the Django app
Daniel
also
Daniel
you're not going to need a reverse proxy
Daniel
are you offloading any SSL/TLS or having a huge ass number of requests?
Anonymous
Not really, it's a really small app, I don't have a huge number of requests. I'm going to need a TLS tho.
Daniel
run nginx as a simple server
Anonymous
I'm planning on using Let's Encrypt for it.
Daniel
good
Daniel
then use the plain and simple nginx config file
Daniel
you can even add TLS to it later by adding the proxy_pass et. al. directives
Anonymous
So I should remove the Gunicorn container?
Daniel
no no
Daniel
Gunicorn ist the glue between Django and Nginx
Daniel
without that you won't have any app served
Anonymous
Oh, I see.
Anonymous
Anonymous
Apparently I can't do that.
Anonymous
It's not recognizing it.
Mounikesh
https://www.reddit.com/r/django/comments/931p65/not_null_integrityerror_at_apilist_not_null/
Mounikesh
guys can anyone help me how can i make my user to read_only in drf
Mounikesh
any kind of help is appreciated
Mounikesh
issue has been solved after running makemigartion and migrate commands
Django Bot
>> Links
- Twitter
Anonymous
hi guys i looking for postgresql tutorial if youhave any linke or any group please send me it link (i read that postgres is best option for django webdevelopment)
Sharif
Hi, what databases are better in Django?
syam
anyone here have creative commons account
Sharif
thanks friends
Maz
Anonymous
Hello guys. I am using Django background tasks and everything was ok when quantity of this tasks was less then 1k. But now it’s more then 6k and they are not execute at the specified time. I think it’s cuz nginx restricts quantity of requests. Maybe someone had similar problem and knows how to fix it
Daniel
Daniel
The Telegram login for your website on Django – Dmytro Striletskyi – Medium
https://medium.com/@dmytrostriletskyi/the-telegram-login-for-your-website-on-django-3661f8ac7a2e
Maz
Daniel
John
hi guys
John
how i can save form_invalid in django?
John
look
John
def form_invalid(self, form):
response = super().form_invalid(form)
lista = self.request.POST.getlist('lista[]')
if len(lista) == 0:
return response
lista_os = OSServico.objects.filter(pk__in=lista)
ProcessoLote(**form.instance)
return response
John
how i can save with status invalid form?
Django Bot
>> Links
- Django at a glance | Django documentation | Django
- Django Debug Toolbar — Django Debug Toolbar 1.9 documentation
- 30.13. inspect — Inspect live objects — Python 3.7.0 documentation
Django Bot
>> Links
- How to turn Django Admin into a lightweight dashboard
- How to Add Custom Action Buttons to Django Admin – Haki Benita – Medium
- How to Implement Multiple User Types with Django
SmartR
I am beginner in Django
Any tutorial for web application development with django?
Nafisa
Евгений
Hi! I have idea go out from Excel and visualization olap cube in web to django portal, but I don't find any tutorials from connection to MS ssas. Who ever used this bundle? Or are any options for solving this idea? Thanks!
Django Bot
>> Links
- Logging Django errors to Slack channels.
Anonymous
Rajesh V:
Anyone know python opencv?
Support needed for this skills.
Ping me personally
Django Bot
>> Links
- Tutorial: Django REST with React (Django 2.0 and a sprinkle of testing)
Anonymous
Hi every on can i ask a question out of topic?
Rohan
Django Bot
>> Links
- File uploads to Amazon S3 in Django
- How to Setup Amazon S3 in a Django Project
- Writing custom django-admin commands | Django documentation | Django
Arjun
If any body knows how to write custom django migration script
Arjun
I am getting the error your migration script of app x has no migration class
amit
Bhai i wanted to learn to learn Django from very basic of MVT , please help me , whenever i visit youtube turorils they just startvas if i knew MVT .
Please suggest some good content where i can learn from scratch.
DevilAstra
Try youtube by goodridge
amit
Try youtube by goodridge
I tried max goodridge tutorials , he didnt tell the basics of MVT .
He went with the flow as if i knew MVT already .
DevilAstra
Try the website udemy django, it is where i learnt it from.
amit
DevilAstra
I saw this course on Udemy and thought of you.
https://www.udemy.com/share/1000aeAkceeFdQRXQ=/
inchidi
𝒟𝑜𝓃𝒬𝓊𝒾𝓍𝑜𝓉𝑒
Did anyone tried Reverse generic relation with Django rest framework??
I have a model image that have generic foreign key which is related to other models..
I read the serializers relations documentation page and the part that talks about reverse generic relation doesn't have any examples, juat mentioned that i should use normal related field and i don't know how to do it..
inchidi
cj