Mirco
-templates -registration -password_reset_email.html
Mirco
This is the default tree if you wanna override it Obviously based on how you have set templates in your Django settings to look for the templates The important piece is the registration folder and the template name
h
This is the default tree if you wanna override it Obviously based on how you have set templates in your Django settings to look for the templates The important piece is the registration folder and the template name
I was just about to ask you this, I mean in this project there are several apps and each contains templates folder so I checked the project's settings file and there was no path given for the TEMPLATE_DIR, so will by default it will work?
h
By default Django looks for a templates directory inside the app directory
One last question, here it's directory looks something like this apps/accounts/templates/account and so on - So basically I have to make registration folder which in end will look like - apps/accounts/templates/registration
Mirco
Yes and put the file inside it
Mirco
And it should allow you to override the default one
h
Yes and put the file inside it
Thank you so much for all your help that you have provided me with being calm and answering even my silly queries. Thank you so much
h
!yw
Now it's again taking the default email sir😥, I mean after putting it into registration folder.
Mirco
Now it's again taking the default email sir😥, I mean after putting it into registration folder.
You need to check if Django is looking for templates in the correct way so you need to check your settings
h
You need to check if Django is looking for templates in the correct way so you need to check your settings
Done sir, sorry for bothering you again. The mistake I did was I have to change the default name of the html file otherwise it will take from the django. Thank you for all your support.
Naveen
i solved this problem, using buffer and PILLOW documentation
i really appriciate this helping community
José Antonio
Hi everyone
AdhamSec 💻
https://stackoverflow.com/q/65627202/12077016
AdhamSec 💻
Could you help me?
AdhamSec 💻
Please
No Name 😎🙍‍♂
Could you help me?
How can I help u ?
AdhamSec 💻
How can I help u ?
I don't know how to upload data from json file with foreign keys
AdhamSec 💻
from django.db import models, migrations def load_stores(apps, schema_editor): Store = apps.get_model("stores", "Store") store = Store(id=0, name='A') store.save() store = Store(id=1, name='A') store.save() store = Store(id=2, name='A') store.save() store = Store(id=3, name='A') store.save() class Migration(migrations.Migration): dependencies = [ ('stores', '0001_initial'), ] operations = [ migrations.RunPython(load_stores), ]
No Name 😎🙍‍♂
AdhamSec 💻
Where do you get?
Yesterday we asked from you i guess 😅
Anonymous
Please help me with my connection with oracle 11xe, I have problems to migrate my tables😢
Anonymous
this my error: Unable to create the django_migrations table (%s)" % exc)
Maltapopoulos 🇲🇹
😂
Anonymous
Hello 👋 . Help please
Anonymous
I have two urls.py files, the main one, and one inside an app I've started. The main urls.py page has only two paths, the admin url and the one that includes my secondary urls.py page. my second urls.py page has all the other urlpatterns I need to switch between pages. How do I write the "href" for that in my templates? Hard coding the links works (eg. href="/pages/home/") but I wanted to learn how to use the "url template tag" (eg. href="{% url 'home' %}"). How do I do this, please?
Anonymous
I want to implement something 👇 User sign up form >> Student details form Student contains user field mapped one to one with User model I also have another model say X. X contains mapping to student model ======== User is created when user sign up form is submitted Next Student details form On submitting form Student object should be created along with an object of model X with some default values ======== I am facing problem implementing serializers for this type of related models Can anyone please help?
Anonymous
Thanks guys. Let me google those.
Destiny
Pls how can I use css with django???
AA
Pls how can I use css with django???
https://docs.djangoproject.com/en/3.1/howto/static-files/
Destiny
Please I need a django boss
Rasmiranjan
I need a help about django AbstractBaseuser user
Dni
hi guys anyone know how i can connect django to SQL server ?!
Dni
i try many packages like pyodbc , pymssql , and more . . .
Dni
but my django is 3.1 version they dont suport
Dni
What does the doc say ?
it say driver is not supported
Mirco
it say driver is not supported
Yup, but the official documentation say about SQL Server
Mirco
Yes
Dni
Yes
i read . . . there is nothing . . .
Mirco
i read . . . there is nothing . . .
https://django-mssql.readthedocs.io/en/latest/ Here u go
Mirco
https://pypi.org/project/django-mssql-backend/ This is not old
Mirco
Kevin
how can I start a django project
Mirco
how can I start a django project
By reading the official documentation.
Kevin
i type that on the command line
Mirco
Mirco
okay
It was not for u The message was for @dni_bt
Mirco
mine is 3.1 . . . not supported :(
Check it anyway, the details talk about 2.2 and newer
Dni
i check and run
Mirco
2.2 - 3.0
Look at the description, it talks about 2.2 and newer so I'd give it a chance
Brandon
Someone is working in open source projects?
Doragonsureiyā
Someone is working in open source projects?
Looks like you need an offtopic group, please continue this conversation at @pythonofftopic as it's not related to Python
Mirco
Someone is working in open source projects?
Writing in PM is not admitted.
Brandon
Sorry
Teutranian
https://dpaste.org/Zz5Z
Teutranian
can someone correct my BaseUserManager?
Teutranian
File "C:\Users\Dell\OneDrive\Desktop\djangodev\mass\base\models.py", line 25, in create_superuser return super()._create_user(PAN_ID, password, **extra_fields) AttributeError: 'super' object has no attribute '_create_user'