Rajjix
a general rule in django is you can’t override class attributes of an abstract model class, for that reason you inherit from abstract-base which is not an abstract model, and people mostly inherit it to override some attributes such as the username_field attribute
Rajjix
read the how to use model section in the docs it really gives you good insight on how models work (90 pages) if you want to dive deeper read the api section for models and probably some source code.
Anonymous
Cool thanks a lot
Egor
Hi, when read request.POST fields, i get \r\n linebreaks. is it a convinient way to always get unix newliners?
Piyush
Hi..
I am creating 1 project which has 3 services..... Ui - gateway- IMG.....
IMG is my internal service. It is not exposed. When I upload image it store it's path like service name: path of image... So I cant access that image at UI as IMG is my internal service..... Anyone have any idea about this
Anonymous
Shubham
Hi ..
I am new in Django and want to make dynamic forms in Django . Is anyone have an idea about how can I do this?
inchidi
Akshay
Is anyone use free maps API for distance calculations?
inchidi
why you want to do that?
Anonymous
I need a django developer for stripe integrations, pm
Ard
Hi can you help me ? I have been tried serving django 2.1.2 on microsoft IIS using fastcgi but still failed, error code 500. Does anyone can tell me how to fix it ?
Mirco
check logs
Ard
check logs
The error was
Error 500.0 - Internal Server Error <handler> scriptProcessor could not be found in <fastCGI> application configuration
Mirco
Jimmies San
Jimmies San
oh yes, it's IIS ... good luck :>
Jimmies San
share your IIS config if need help [and IIS version]
⟨ Simon |
⟨ Simon |
like nginx
⟨ Simon |
⟨ Simon |
why would you want to pay for Windows server
Jimmies San
Ghorz
Ghorz
Ghorz Ace:
I have been trying seat mapping for 'bus reservation' but it seem without javascript, all hope is lost😭😭😭. Why can't python execute on client side.
Anders (izzno / gooood) 🇳🇴
After having experimenting with django for 2-3 months I decided to take a step back and "do the dudiligence" by following books/tutorials to the letter manually typing everything and taking notes / snippets (manually as well). I feel I've learned more this week than the months I've been experimenting.
Dont get me wrong though, I have a better "base" of knowledge to learn from because of the experimenting. But it's fun again when you learn...
Anders (izzno / gooood) 🇳🇴
and a big thank you too for helping me along the way, you guys know who you are.
Mirco
Ghorz
I tried learning Django with various resources but all just jump straight into building blog etc, until I came across Jose Portilla Django fullstack web development.
It breaks Django down step by step. It made life easier for me. Thanks to this great resource.
George
Rajjix
Problem with tutorials is they focus on certain use-cases, which leads to the bigger problem —> “you don’t know what you don’t know”. So i tend to focus on reading documentation (1919 pages of explanations and example) and source code more whenever i find free time. i’ve had countless aha moments because of this.
Maz
Anyone with Odoo resources like a pdf or epub book?
Anonymous
Can anybody suggest me how to start django and from where I can read
George
Manish
which file should be edited for multiple file upload on django admin?
Anonymous
Any plzzz sent django notes
Anonymous
R any material
Anonymous
U have iam new to this
Anonymous
Help me
Mi
Hi there
Mi
Is there a canonical way to do event sourcing with Django?
Ard
share your IIS config if need help [and IIS version]
Sorry to late, here my config
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<handlers>
<add name="Python FastCGI" path="*" verb="*" modules="FastCgiModule" scriptProcessor="c:\users\subhan\appdata\local\programs\python\python36\python.exe|c:\inetpub\wwwroot\djangoiis\wfastcgi.py" resourceType="Unspecified" requireAccess="Script" />
</handlers>
</system.webServer>
<appSettings>
<add key="WSGI_HANDLER" value="django.core.wsgi.get_wsgi_application()" />
<add key="PYTHONPATH" value="c:\inetpub\wwwroot\djangoiis" />
<add key="DJANGO_SETTINGS_MODULE" value="djangoiis.settings" />
</appSettings>
</configuration>
Mirco
Ard
Sorry sir,
https://pastebin.com/pnjB6N4Y
Luis
What happened with the bot?
Luis
Aaaah
m
Hello everyone its great to know that there is a group for django 😍
Mirco
Welcome 😀
m
thanks
m
I need some help with my current django project, is it okay to ask here ?
Mirco
Yup
m
great
m
so basicly this is my models file
m
https://github.com/habi3000/salesManagement/blob/master/salesManagement/main/models.py
m
and this is my forms file
m
https://github.com/habi3000/salesManagement/blob/master/salesManagement/main/forms.py#L37
m
what i am trying to do is to make the product_type field only show products that are currently avalible in the stock (have a batch registried in the system)
m
each batch is deleted once its quantaty equals zero. At the same time in need to keep to the product record in the table in case the user adds a new batch with the same product
m
I thought about creating another table that has only products that are avalible in the stock , but I think there should be more efficient way
Mirco
Why don't you use a simple boolean flag for availability ?
Mirco
And try to follow Python coding style
m
m
Mirco
Sultan
Gays I need some help
Mendel
Sultan
Where’s the error?
Sultan
Sorry but i do not speak fluent English
Sultan
How i cab use pastbin ?
Sultan
Can**