.
Ok
.
show us how the configuration is in your database settings
DATABASES = { 'default': { 'ENGINE': 'django.db.backends.postgresql', 'NAME': 'lnd_website', 'USER': 'postgres', 'PASSWORD': 'postgres', } }
Enlighting-man
uhmm Ww don't see any reference to your .env file
Muflone
but image is not rendred while on false
content MUST NOT be served from django when debug=False read the deployment guide and also #static
Enlighting-man
DATABASES = { 'default': { 'ENGINE': 'django.db.backends.postgresql', 'NAME': 'lnd_website', 'USER': 'postgres', 'PASSWORD': 'postgres', } }
DATABASES = { 'default': { 'ENGINE': 'django.db.backends.postgresql', 'NAME': os.environ.get('DATABASE_NAME_PROD'), 'USER': os.environ.get('USER_DATABASE_PROD'), 'PASSWORD': os.environ.get('PASSWORD_DATABASE_PROD'), 'HOST': os.environ.get('HOST_DATABASE_PROD'), 'PORT': os.environ.get('PORT_DATABASE_PROD'), 'ATOMIC_REQUESTS': True, } }
Enlighting-man
content MUST NOT be served from django when debug=False read the deployment guide and also #static
It depends, but if you have separate files for settings (dev, prod), would that be better for you?
Muflone
It depends, but if you have separate files for settings (dev, prod), would that be better for you?
prod is prod, there's no choice content must be served from something else, like nginx
Enlighting-man
prod is prod, there's no choice content must be served from something else, like nginx
I understand. Please let us know when you resolve the issue with the .env so that we can continue :)
Human
Task: Magento2 Product Custom Module Definition: Get the product details from the product detailed page and display it in the front end using the custom module in a tabular format. Can someone explain about this? This is an interview question.
Human
But they told to do it with Django now. So
Muflone
then explore the Magento API and get the product details via API and build your own frontend
Human
Ohh
Human
Okay
Human
then explore the Magento API and get the product details via API and build your own frontend
What's that custom module and product detailed pages stands for?. Sorry if I'm wrong.?
Muflone
What's that custom module and product detailed pages stands for?. Sorry if I'm wrong.?
custom is not clear if it refers to magento or django, you should clarify the details
Human
Ohh okay
Human
But does they provide a proper api which returns list of products? I searched for that but I didn't get it yet
Human
I already told you before, Magento 2 has API for that
We can use that api in django also right?
Muflone
We can use that api in django also right?
it's APi, you can use it in whatever language you want
Александр
Good day Community. Have a question about Django Admin - can I do somehow sorting by click on column header on change form like this is possible on ModelAdmin list page ?
Muflone
Mahesh
If I press the products name in ordered page I need it will redirect to related products How to connect in django
Kasra
Guys In your opinion, what topics do you consider advanced in Django?
JayJo
Attributes has no object
Alucard
Guys In your opinion, what topics do you consider advanced in Django?
Implementation of one these i find to be new and abit advanced : Channels, signals, Async support, GIS, celery (library)
Dutchq
hello good mornig guys please i have a problem with my code, am still a beginner
Dutchq
https://github.com/bonsuAyuk/my_first_blog this is the link to the code , but it does not display the css correctly here
.
i installed crispy-forms & crispy-bootsrtrap5 error 'Settings' object has no attribute 'CRISPY_TEMPLATE_PACK' my settings.py INSTALLED_APPS = [ 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', # my apps 'my_app', # exeternal 'crispy_forms', 'crispy_bootstrap5' ] CRISPY_ALLOWED_TEMPLATE_PACKS = "bootstrap5" CRIPSY_TEMPLATE_PACK = "bootstrap5" templates/registration/login.html is below {% extends 'base.html' %} {% block title %}Login{% endblock %} {% load crispy_forms_tags %} {% block content %} <form method="post"> {% csrf_token %} {{ form|crispy }} <p>Don't have an account? Create one <a href="{% url 'sign_up' %}">here</a>!</p> <button type="submit" class="btn btn-success">Login</button> </form> {% endblock %}
Nishanth Siraj
Muflone
Any help here
Check by yourself if the css file is loaded It's not as you have DEBUG = False So that means Django will not load them anymore, you have to setup your webserver Read the messages with #static tag here
clouded
Have you bothered to read the first paragraph of the documentation of factory boy? And then perhaps the second and third?
Muflone
Checked already but nothing,please what you just explained IS not very clair
Temporarily enable DEBUG = True and complete your blog
Dutchq
Temporarily enable DEBUG = True and complete your blog
Did that and it still gives same errors
Dutchq
What errror?
when thé blog displays it shows some errors Can i send à pic to you Inbox ?
Dutchq
No pictures, coders must read and write code
Thé code itself doesnt show any errors but when it displays thé final view on thé browser then u see thé errors
Pedram
If I press the products name in ordered page I need it will redirect to related products How to connect in django
First you should make related product url and view, then you can redirect to related products (you can make “a” tag in templates and show on webpage)
Anonymous
After migrating class, the objects isn't loading in admin pannel. The class is there but the object is missing. Why is this happening. When click add class option now the objects are poping up
Ali
Cab anybody introduce a practical drf course?
clouded
Cab anybody introduce a practical drf course?
Read the web, that's most practical
clouded
Like official documentation
clouded
From the developers themselves
clouded
Created for other developers
clouded
Doesn't that sound just perfect
Elilooli
hi there I have a problem with connecting to the local host it gives a timedout connection error I pinged the Ip and it was ok also flushed the dns and checked all the firewalls
Elilooli
Connecting how? hwave you started your django server? whichport?
connecting to the first page of django with manage. py runserver I tried 8000,8080
Charly
connecting to the first page of django with manage. py runserver I tried 8000,8080
Don't try random ports use the one that the command shows you when ready
Charly
I tried all of them and non of them work
So you open http://localhost:8000 and it does not work in your browser?
Charly
yes I also tried it with the ip: 8000
Byt why the IP if you are running localhost?
Charly
Do you see any error on the django console?
Elilooli
Byt why the IP if you are running localhost?
I don't know I have this problem for several month now and I tried everything that I could think of
Elilooli
Do you see any error on the django console?
no non it runs the server also in the project all component are built correctly
Elilooli
For months? So you did nothing for months?
I asked from lots of people and did all they said, don't know what else to do
Charly
Elilooli
what? Are you running in your computer or a server?
Im running it locally but in the terminal it says tap here to run the server
Charly
Im running it locally but in the terminal it says tap here to run the server
What? how the terminal says that? Are you running it with python manage runserver?
Elilooli
they say what?
check the firewall, flush the DNS, ping the ip, try diff port, change Ipv
Charly
Terminals have no tap
Elilooli
What? how the terminal says that? Are you running it with python manage runserver?
yes the exact quote is"starting development server at "then the link
Elilooli
Show the full output of that command please
system check identified no issues (0 silenced). october 05, 2023- 23:16:04 Django version 4.2.5, using settings 'confing. settings' starting development server at http://127.0.0.1:800/ Quit the server with CTRL-BREAK