Arav
How can I do that
Nestor
Hello everyone, I have a doubt about how to structure my project, I want to build a relatively complex e-commerce site with many features, but I also want to add some blog features. I've been reading and the best option in a relatively complex project is to create separate apps, e.g: User, Product, Shipping, Payment. But I also heard that you build an app when you want to re-use that app in other project, but in this case you can't re-use any of this app separated, so is still the best option to create separated apps for different features of the e-commerce?
Shahin
I would suggest, to familiarize yourself with Devops
Shahin
a bit of Docker knowledge let's you decide for the structure of your app easily
Shahin
you can make a blog with wordpress and make the shop with Django
Anonymous
Have you done this
Not working properly
S.H.K
Hi I’m used class meta and db_table I need after save record check username how I can?
Nestor
a bit of Docker knowledge let's you decide for the structure of your app easily
And do you recommend me organize Django apps in folders?
Shahin
you can have several django apps under 1 django container. example.com/app1 , example.com/app2 ... and one blog as wordpress app in example.com/blog easiest way. other way is to have each app in separate container which I disourage you todo that in this phase
Silvester
(Django): Hi everyone, am desprate, i need to send 6 digit verification code via email upon user registration, when the code verifies the user, he can now login with his credential, please anyone with useful learning material will be greatly apreciated.
Silvester
i do not have a code for this specifically, mist of the codes i saw online arent working, and i dont want to use a thirdparty library.
Hafed
How I integrate system payment in my django app
Maxim
How I integrate system payment in my django app
searching for out-of-the-box solutions, reading the payment service documentation, reading Django documentation
Maxim
Thank you Maxim
you can try to adapt ready-made solutions for other payment systems with similar API
Sparrow
https://surveys.jetbrains.com/s3/c1-python-developers-survey-2021
Mirco
have you read the rules?
no probs, it's Jetbrains survey for Python devs
Abdelkader
Hi Who know how i can use reports in Django (design - retrieve data ...)
Silvester
guys does anyone have a solution to my problem as explained above?
cj
ok i got that from the URL :)
@inchidi used to spam that link every year, even put it in pinned messages
Sparrow
Hi guys, anyone having a project that they want people to contribute to?? I am building a simple blog application this week and I would love some help and feedback. I'm also using UIkit as my CSS framework
عبید اللہ
Hi guys Please help me for fixing this error Page not found (404) Request Method: GET Request URL: http://127.0.0.1:8000/home Using the URL conf defined in hello.urls, Django tried these URL patterns, in this order admin/ 2. [name='home'] The current path, home, didn't match any of these
Sparrow
Have you checked that you add the app to settings.py or you defined the views correctly
عبید اللہ
I decided the correctly How can chack settings.py
Sparrow
Open the settings.py file and search for INSTALLED_APPS. you should add your app there to the list
Lugano
How can i do something like this qn = get_object_or_404(Question,slug=slug)
Sparrow
Thanks
Did it work??
Lugano
How can i do something like this qn = get_object_or_404(Question,slug=slug)
is it that get_object_or_404 accepts a model and pk?
cj
How can i do something like this qn = get_object_or_404(Question,slug=slug)
something like that? but.. you're actually doing that!
عبید اللہ
عبید اللہ
Did it work??
Many many thanks for helping I'm new learner
pollo
How can i Learn to integrate angular & django?
Anonymous
Pip install django
Partha
Hello All 👋, I would like to schedule an report to be send every Monday and that has to be done through django. I have a dependency with the OS. I have to use windows machine to host my django application. Please suggest me the right scheduling package that will automatically send reports from django application every Monday.
Partha
Thanks in advance.
Silvester
Dear all, am a newbie , i have seen drf web/App that sends 6 digit OTP via email upon registration as a. After the OTP is inputed, user can now use his credentials to login. please anyone who can assist with this code is welcome.
Partha
Thanks for the suggestion. Let me take a look on that.
Rahkmanuly
Hello there! Anyone who made an integration with Bitrix24 ?
Priyanshu
Can someone tell me how to get a domain name for free and how to use that domain name
Priyanshu
From where to host the webpage (static) for free
user
When i m trying to access BASE_DIR from django.conf.settings It raises improperly configured
user
Py file
user
In one of my app directory
user
From shell i can access though
user
Can i access base_dir without running the server????
user
😢 just for debug purpose i needed that... Now i have to hardcode the path i guess
user
Media files... And its a custom py file for reading pdf data
Hey It's
How to check in container celery has the pictures?
user
Yep
user
I can access from managempy shell not an issue.... I think without server running i have to just hard code the path
Bassi
how could i access the static files on server
Bassi
/[21/Oct/2021 14:34:29] "GET /static/test.txt HTTP/1.1" 404 1783/
Bassi
/[21/Oct/2021 14:34:29] "GET /static/test.txt HTTP/1.1" 404 1783/
[21/Oct/2021 14:34:29] "GET /static/test.txt HTTP/1.1" 404 1783 im getting this error
Bassi
could u pls provide some link or docs i'm new to django
Bassi
tysm for help
Anonymous
During django admin Import csv I want to join three columns data with some additional data into one column, is it possible.
Anonymous
https://www.geeksforgeeks.org/overriding-the-save-method-django-models/
Nayan
Hi can some one help me with class based view ( CBV ) I want to pass context data to the post and get method so that i can add a additional data in post and can do some stuff over template
Олександр
Nayan
Hi can some one help me with class based view ( CBV ) I want to pass context data to the post and get method so that i can add a additional data in post and can do some stuff over template
dpaste.org/bnw9 Could you please check above link i have commented in the code where i want context data also i am using correct correct class based view ?
MeHDI_rh ∞
Hello, how can I change IntegerField.min_value dynamically when is_valid() is called ?
Nayan
you can rewrite get_context_data http://ccbv.co.uk/projects/Django/3.2/django.views.generic.detail/DetailView/
dpaste.org/bnw9 Could you please check above link i have commented in the code where i want context data also i am using correct correct class based view ?
MeHDI_rh ∞
Hello, how can I change IntegerField.min_value dynamically when is_valid() is called ?
I've tried : def clean(self): if self.cleaned_data['payment_method'] == 'perfectmoney': self.fields['amount'].min_value = 5 super(UserAddFundsForm, self).clean() but doesn't work
Олександр
In this we don't have post method
You do not need to override POST, but I understood correctly that your context will change depending on the GET or POST method?
Dharmendra
How can embed with django applications
Олександр
In this we don't have post method
https://dpaste.org/4d1W something like this, this is pseudocode, check if it is correct
Nayan
https://dpaste.org/4d1W something like this, this is pseudocode, check if it is correct
I saw you have used request.post in get_context_data but when i receive post i need to check form is valid or not , if it is valid it should redirect to some url with adding some context data , if form is invalid it should redirect the form with error Can i achive all this in that way ?