Егор
Can u suggest proper tutorial for that?
There are no tutorials on how to turn a e-commerce framework into a learning platform
Егор
Just do what you want, create!
Егор
There are no tutorials on how to turn a e-commerce framework into a learning platform
That was my personal idea for your case because I can really imagine how you can transform something like “django oscar” into a learning platform
Vish
Hey guys i want to learn django
Vish
Can you guys suggest bestest tutorial to learn
Doragonsureiyā
Hey guys i want to learn django
Looking for Django tutorials? you can follow these three recommended ones: * Official documentation and tutorial * Tutorial from MDN * Tutorial from django-girls
Vish
Any video tutorials?
Maxim
Any video tutorials?
use search engines, google and/or youtube
Vish
Okay
Егор
Any video tutorials?
You actually better use different parts of some tutorials. There is no “bestest”.
Егор
And don’t believe guys like “django in 1 hour”. I spent on learning django with all its’ prettiest stuff something like a month.
Vish
Haha okay
Fan / Ac
Haha okay
https://t.me/django/119797
.
Probably the best for django
Bryan Pior
Hello member, Could someone help me how to build navbar bin Django
Sai Kumar
How to send mails from django
Doragonsureiyā
How to send mails from django
Step 1: Open a browser Step 2: Write down https://google.com or https://duck.com and press Enter Step 3: In the search box, write down the same words you asked here Step 4: Read the first results
Fan / Ac
i have a unique constraint on a field in model, and i would like to except the integrity error, is there a way to add this with model so i dont need to handle it separately
Fan / Ac
found a way to do this https://stackoverflow.com/questions/65111616/django-model-manage-unique-constraint-error-in-save-method
Avvi Rapper
Can I ask doubt related to git/heroku
William
Hello everyone, The admin user of my application will upload the user from an excel sheet. It includes user-specific details like email, contact no, country, state, organization/college, department. In that some organization/college and department data are new. So, where should I create those new data? 1. Should I create those new data before sending It to the serializer or, 2. Should I create in the validate function of the serializer. Note: The excel sheet might contain more than 100 user records. I have linked my user table in below link. https://dpaste.org/M3CA
Doragonsureiyā
Arbaaz
Can anyone help me how to do pagination In django while using data frame
Najim patel
How to get/fetch all template(database table name) for the franchisee with end date in the future
Najim patel
How to get/fetch all template(database table name) for the franchisee with end date in the future
Templates with future start date should be included in active Templates - API When querying for active templates via endpoint, we get only Templates with status as active, and current date falling between Template start and end dates. So Templates with start dates in the future won’t be returned. Need to return those, as long as the Template end date is in the future. Order the results by Template end date. Anyone can solve this
Anonymous
I have one footer for all 5 pages and inside of the footer has a subscription form. How can I make available this form for all pages with one view. P.s footer same for all pages so I put it inside base.html
Kuntal
How to overwrite listview api . I need to sent additional data through my api
(⌐■-■)
i advice you to google
pavan
how to add table column values and paste in new column.suppose 5 colums contain 25,75,100,50,0 i have to add values from dictionary and show in new column
Alex
Can anyone help me how to do pagination In django while using data frame
I have never worked with data frames, but I guess it should be pretty straightforward https://docs.djangoproject.com/en/4.0/ref/paginator/#django.core.paginator.Paginator.object_list
Alex
Can anyone help me how to do pagination In django while using data frame
Oh, here is an example as well https://docs.djangoproject.com/en/4.0/topics/pagination/#example
Alex
Can anyone help me in this
You can ask in the group, if you have any questions.
Mohammad
My code in settings: https://linkode.org/#7fOh4U0j1sUlKhwKg0nUM6
Alex
Do you see that bold "Traceback" word? And right after it " Switch to copy-and-paste view" - it's how you share errors. That simple.
Mohammad
I want connect mongoengine with Django but it give this error https://linkode.org/#BTCJDSjpLXviPvGSQkREt My code in settings: https://linkode.org/#7fOh4U0j1sUlKhwKg0nUM6 Mongoengine github: https://github.com/MongoEngine/django-mongoengine
Alex
My code in settings: https://linkode.org/#7fOh4U0j1sUlKhwKg0nUM6
> 'ENGINE': 'django.db.backends.dummy', Here is your problem - you have to set specific DB backend. https://docs.djangoproject.com/en/4.0/ref/databases/
Alex
My db is mongoengine
Then specify it there.
Alex
Specified
gj 👍🏻
D
Hello everyone! Maybe someone will advise. Locally everything is OK, but in production I get an error. no module named 'config' All after adding this script export LANG=C.UTF-8 gunicorn --bind 0.0.0.0:800 --timeout 600 config.wsgi & celery -A … worker -l INFO -B
Alex
and added mongoengine github
Did you specify DATABASES? Not mongo's databases, but django's.
Mohammad
Alex
I proceeded according to the github tutorial
Well, then there is probably some bug in the package. You can create an issue and report the problem to the maintainers.
D
Where is this file placed? How do you deploy it to the server?
DevOps deployed the project. File with this script ? export LANG=C.UTF-8 gunicorn --bind 0.0.0.0:800 --timeout 600 config.wsgi & celery -A … worker -l INFO -B
Doragonsureiyā
D
Ok, again - provide the full error message. (NOT IN THE CHAT, BUT ON A PASTEBIN SERVICE)
Can I send private messages? Since I was only given a screenshot
Alex
Can I send private messages? Since I was only given a screenshot
Only a screenshot? Don't you have an access to the server?
rtg
Hi! When i user send_mail, this return: raise ImproperlyConfigured( django.core.exceptions.ImproperlyConfigured: Requested setting EMAIL_BACKEND, but settings are not configured. You must either define the environment variable DJANGO_SETTINGS_MODULE or call settings.configure() before accessing settings.
rtg
what is happening?
Alex
No(
I hate private messages, but ok, if there is no text.
Maxim
what is happening?
You must either define the environment variable DJANGO_SETTINGS_MODULE or call settings.configure() before accessing settings, as it says
Alex
what is happening?
Are you trying to write some script using django?
D
Or can someone tell me how to run Celery on a production server?
Alex
Or can someone tell me how to run Celery on a production server?
That's not celery's issue, but gunicorn's.
Mohammad
Does anyone know how to connect mongoengine to a django??!
Doragonsureiyā
Does anyone know how to connect mongoengine to a django??!
Do you want to use Django with MongoDB? Then you shouldn't Please read this article: https://daniel.feldroy.com/when-to-use-mongodb-with-django.html
D
As I understand, it's looking for a config.py module somewhere in the project, but it cannot find it there. Do you use VCS? Is that file is under it?
Yes, I use VCS. I pushed my code on github with that new script.But there is no config.py in the project folder
D
The problems started after I was looking for solutions on how to run Celery in production
D
The problem may be that I am missing the config package? Maybe just import it, add it to requirements.txt and push it to github?
Alex
The problems started after I was looking for solutions on how to run Celery in production
If you are not using docker or some other container management, you should use systemd https://docs.celeryproject.org/en/stable/userguide/daemonizing.html#usage-systemd
D
Yes. I didn't use docker.