cj
but, at the end of the day, it's up to you whatever tools to use if they float your boat
Mario
cj
cj
but just in some edge cases
cj
still, you should go first for Nginx+Gunicorn
cj
try them both combos and decide yourself which one to use
Mario
And the Django process running inside of venv right?
Mario
Mario
DoT
anyone tell me the reference for converting whole website in one lang to another lang
DoT
nah , i want to write code in django to translate
Pasha
Why Django Debug Toolbar is not displayed in app even with properly configured settings:
DEBUG = True
INTERNAL_IPS = [
"127.0.0.1",
]
cj
Muflone
Pasha
INSTALLED_APPS = [
'polls.apps.PollsConfig',
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'debug_toolbar',
]
urls.py:
from django.contrib import admin
from django.urls import path, include
urlpatterns = [
path('admin/', admin.site.urls),
path("polls/", include("polls.urls")),
path('__debug__/', include('debug_toolbar.urls'))
]
voiceless
How to backup database in django?
Afshin👀
hi friends how can i write html tag for call this function and urls for user any one knows?
Afshin👀
def invite_link(request):
invite_code = ''.join(random.choices(string.ascii_uppercase + string.digits, k=8))
return f"/register?invite={invite_code}&inviter={request}"
Afshin👀
I called invite_link but it does not work
Rahat
Delete an object automatically after 5 minutes
Rahat
Please tell me
Morteza
Motasem
Soham
I want to use components based architecture for my django projects, there is any way to do it most efficiently?
Asad Ullah
what is the diff between psycopg and psycopg2
Asad Ullah
i wanted to connect postgresql database to my django project
Victor
Rahat
Not happening
Bandar
Hi guys how are you doing?
I am working on project that involves third-party api call.
I like separation of concern.
In my Django project I have a view that takes in “POST” request and return response
Before the response retuned I have function that calls third api call and apply some logic
Function name “get_result”
Should I include this function in the view or should I put in in separate file and would that violate the MVC pattern
Thank you !
Afshin👀
user = User.objects.get(username=username) why this is not work
Afshin👀
when i run and try to register this code send error to screen like this Forbidden (403)
CSRF verification failed. Request aborted.
Anonymous
Anonymous
Afshin👀
Create a view
I have a view and i write this code in view
fateme
hi guys.
I have three models named image, product, and slider. Slider and also product can have several images . Therefore, in the image model, I need to have a foreign key to slider and a foreign key to product, in addition to an imagefield field. My question is how should I set upload_to for this imagefield so that slider images go into a folder named /slider and product images go into a folder named /product. Can anyone help please?
John Doe
Hello everyone. How I can change this error in jinja2?
'for' statements should use the format 'for x in y': for j in i.text.split('\n')
cj
Unknöwn
I need a clear and concise guide on how to explicitly render all the fields of a form in HTML templates.
Inside my models.py file I have a model class Customer, I proceeded to creating a new file forms.py and created a form class CustomerForm inside it by extending the forms.ModelForm.
By default all the fields I have chose to render in my HTML template does, but I want to make certain fields required such that users must provide information to the field.
I have tried and checked several resources I couldn't get this done.
What is the best approx to achieving this task?
Binary
How to do this
Duong Chan Troi
How to add all app directory to a folder
Doragonsureiyā
Duong Chan Troi
What are you talking about?
I want to make my web directory structure like this:
project_root/
manage.py
mysite/
myapps/
app1/
app2/
cj
Duong Chan Troi
I don't know how to make my project find those apps
Charly
these are python modulesif you dont know what python modules maybe you need to review python basics concepts before going to django
Duong Chan Troi
vishesh
Charly
Charly
Unless you have a very good reason to disable csrf better just do the setup properly
Mahdi
Guys, Is there any no code web design platforms like webflow that can be integrated with django backend?
I'm trying to use webflow but it's not that easy
ERMIA
A
django hosting sites, any help
Farzin
Hello everyone,
I need to add an extra field in my model serializer that needs to show all objects from another model as a multichoice field for user so user could select any option that want, but I used couple of ways, all of them threws error, how can i do that?
Tatiana
Hi All🤚
Have any knowledge about creation docx (also filing tags in spec places from input ) and converting it into pdf.Important (or better) some libraries that are not running(using) Microsoft word in server
A lot of thanx
Blessing to everyone that can help (links ,please )🙏🙏🙏
Doragonsureiyā
C&E&H
Oleh
Hello guys, how can i set scheduled task in django? I need execute some actions after 1 day exactly
cj
Armond
raise self._reap_last_connection_workflow_error(error) pika.exceptions.amqpconnectionerror
When run rabbitmq
How do i fix?
Asad Ullah
i am confuse in between using cbv or fbv!
can anyone tell me in which i can get more control on my project code?
Charly
Devang
When I import tinymce.model
Some error is occurs
Devang
How can I solve this
Devang
Error is
Import "tinymce.models" could not be resolved pylance
preethi
What are the basic libraries required for a django api project
Charly
!what