Re: In need of immediate help from Django community

2021-05-24 Thread Aritra Ray
Thank you for your response. It worked out perfectly. On Tue, 25 May, 2021, 4:39 am Kelvin Sajere, wrote: > Import the User model in your forms.py and use it instead of Profile. As > the error clearly states, the Profile model does not have a username field. > Django actually recommends using th

Re: Best way to deal with members registration in Django apps

2021-05-24 Thread Antonis Christofides
using Sendmail code that we added in our Django project You really added sendmail code to your Django project? Or did you configure your Django project to use sendmail? There is no single answer to what you are asking. What I do, and I also propose to people to do

Re: Making a rather small web app, is Django right for it?

2021-05-24 Thread Antonis Christofides
It's hard to say. While Django /is/ suitable, it's also large. If you don't know it already, you might not want to learn it just for this. It's possible Flask would be a better choice, since it's smaller and (I think) easier. (Note: I'm a Django developer, and I'm not a Flask developer.) So I

Re: Announcing DjHTML: A Django template indender

2021-05-24 Thread RANGA BHARATH JINKA
Awesome On Tue, May 25, 2021 at 10:13 AM lalit suthar wrote: > This is looking pretty cool! > > On Monday, 24 May 2021 at 18:54:12 UTC+5:30 Jaap Joris Vens wrote: > >> Dear all, >> >> I would like to take this opportunity to announce my side project to >> the Django community. It's a Django temp

Best way to deal with members registration in Django apps

2021-05-24 Thread Ram
Hi, We have members registration module where members will enter email ID as a login name. Upon submitting the Sign Up form, we generate an email to the given email address using Sendmail code that we added in our Django project. So far we used a personal gmail account as an admin email account t

Re: Announcing DjHTML: A Django template indender

2021-05-24 Thread lalit suthar
This is looking pretty cool! On Monday, 24 May 2021 at 18:54:12 UTC+5:30 Jaap Joris Vens wrote: > Dear all, > > I would like to take this opportunity to announce my side project to > the Django community. It's a Django template indenter called DjHTML. > It's Black for Django templates! > > https

Re: Exception Value: relation "django_session" does not exist

2021-05-24 Thread RANGA BHARATH JINKA
You are welcome :-) On Tue, May 25, 2021 at 3:41 AM Michał T. Lorenc wrote: > Hi, > Thank you it works. > > On Tue, May 25, 2021 at 12:31 AM RANGA BHARATH JINKA < > bharathjink...@gmail.com> wrote: > >> hi, >> >> Run migrations. python manage.py makemigrations and python manage.py >> migrate >>

Re: In need of immediate help from Django community

2021-05-24 Thread Kelvin Sajere
Import the User model in your forms.py and use it instead of Profile. As the error clearly states, the Profile model does not have a username field. Django actually recommends using the AbstractUser, or the AbstractBaseUser to extend the default User model if you wish to create something like a pro

Re: Base Template per User

2021-05-24 Thread Kelvin Sajere
I don't know why you would want users to upload their own base HTML file, but if it's to make every user have a unique frontend view, then I think it would be better just having the users choose layouts, styles and other frontend properties that would be saved to the database, then use these saved

Error finding Upload-Folder. Maybe it does not exist?

2021-05-24 Thread Michał T . Lorenc
Hello, I found a Django project and failed to get it running in Docker container in the following way: 1. `*git clone git clone https://github.com/NAL-i5K/django-blast.git *` 2. `*$ cat requirements.txt*` in this files the below dependencies had to be

Re: Exception Value: relation "django_session" does not exist

2021-05-24 Thread Michał T . Lorenc
Hi, Thank you it works. On Tue, May 25, 2021 at 12:31 AM RANGA BHARATH JINKA < bharathjink...@gmail.com> wrote: > hi, > > Run migrations. python manage.py makemigrations and python manage.py > migrate > > On Mon, May 24, 2021 at 7:20 PM Mic wrote: > >> Hello, >> I found a Django project and fail

Re: Making a rather small web app, is Django right for it?

2021-05-24 Thread Arthur Obo Nwakaji
Hello, django is an awesome tool in the hands of a great developer who know how to use it. You're on the right track because django is great for building scalable web applications and restful APIs. I am always ready to do my best to help as I can in the django community. If you need any assistance

Base Template per User

2021-05-24 Thread sebasti...@gmail.com
Hello, i want that every user from website can upload a base html file that are then used on every views as base template. Every User have then his own layout... Have anyone experience with such a thing? Regards -- You received this message because you are subscribed to the Google Groups "

Re: In need of immediate help from Django community

2021-05-24 Thread Omkar Parab
Error is in forms.py file. "model = User" not profile. Default "User" model comes with username, email filed. Why you're creating another email field in the Profile model? Just fetch it using {{ user.email }} On Tue, May 25, 2021, 1:38 AM Aritra Ray wrote: > Hi, > > I've been facing a probl

Re: In need of immediate help from Django community

2021-05-24 Thread Mottaz Hegaze
I think in second image ( usercreateform ) your model needs to be User not profile On Mon, May 24, 2021 at 10:08 PM Aritra Ray wrote: > Hi, > > I've been facing a problem recently in creating a Django Profile model for > an E-commerce website. > Error: FieldError(message) django.core.exceptions.

Making a rather small web app, is Django right for it?

2021-05-24 Thread Devin Prater
Hi all. I am a rather new Python learner, although I've made the following script: https://github.com/prater-devin/src/blob/main/lunch/lunch.py I want to turn this into a central place where students can get not just the lunch menu, but also other menus, upcoming events, things like that, but not

Re: help on autologging users after signup

2021-05-24 Thread I,M& M
in drf, the request.POST dictionary does not contain the body of the request instead use the request.data to access the requests body. ex. email = request.data.get('email') password= request.data.get('password') new_user = authenticate(request, email, password) request.data contains the username

Re: Exception Value: relation "django_session" does not exist

2021-05-24 Thread RANGA BHARATH JINKA
hi, Run migrations. python manage.py makemigrations and python manage.py migrate On Mon, May 24, 2021 at 7:20 PM Mic wrote: > Hello, > I found a Django project and failed to get it running in Docker container > in the following way: > > 1. `*git clone git clone https://github.com/NAL-i5K/djang

Re: How to fix this error

2021-05-24 Thread Thomas Lockhart
A “not null constraint failed” is in the error message. So you have a field which is not being set and the database itself is complaining. It looks like you have extended the user profile to include a foreign key to “babyinfo” and that is empty apparently. Either change the model to allow a nul

Re: OperationalError at /admin/products/product/add/

2021-05-24 Thread Kasper Laudrup
Learn how to ask a question. This could be a good start: https://betterprogramming.pub/how-to-ask-questions-about-programming-dcd948fcd2bd Kind regards, Kasper Laudrup -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this g

Re: hey there! i really want to have a friend here

2021-05-24 Thread Sharif Mehedi
The nature of you website, how is it running, where is it running etc On Monday, May 24, 2021, 7:50:15 PM GMT+6, Hassan Adamu wrote: OK thanks. What are the details you need? On 24 May 2021 2:31 pm, "Sharif Mehedi" wrote: You should probably contact your "cloud service" (or what ot

Re: hey there! i really want to have a friend here

2021-05-24 Thread Hassan Adamu
OK thanks. What are the details you need? On 24 May 2021 2:31 pm, "Sharif Mehedi" wrote: > You should probably contact your "cloud service" (or what other ever > service it is) provider. > I will try to help you if you'd provide some more details of your problem. > > > Regards, > Sharif > On Mond

Exception Value: relation "django_session" does not exist

2021-05-24 Thread Mic
Hello, I found a Django project and failed to get it running in Docker container in the following way: 1. `*git clone git clone https://github.com/NAL-i5K/django-blast.git*` 2. `*$ cat requirements.txt*` in this files the below dependencies had to be updated: - psycopg2==2.8.6 I have the

Re: hey there! i really want to have a friend here

2021-05-24 Thread Sharif Mehedi
You should probably contact your "cloud service" (or what other ever service it is) provider. I will try to help you if you'd provide some more details of your problem. Regards,Sharif On Monday, May 24, 2021, 7:23:16 PM GMT+6, Hassan Adamu wrote: good day dear friends.i have created a w

Re: hey there! i really want to have a friend here

2021-05-24 Thread Yonatan Girma
You can create a new super user On Mon, May 24, 2021 at 6:23 AM Hassan Adamu wrote: > good day dear friends. > i have created a website just a few month a go. but now i was unable to > access the website. please my friends can any body help me out? > > > -- > You received this message because yo

How to fix this error

2021-05-24 Thread Hugh Frost
Request Method: POST Request URL: http://127.0.0.1:8000/profile/ Django Version: 3.1.7 Python Version: 3.9.2 Installed Applications: ['django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles

Announcing DjHTML: A Django template indender

2021-05-24 Thread Jaap Joris Vens
Dear all, I would like to take this opportunity to announce my side project to the Django community. It's a Django template indenter called DjHTML. It's Black for Django templates! https://github.com/rtts/djhtml/ Over the past year I have fallen in love with Black and pre-commit to automatically

hey there! i really want to have a friend here

2021-05-24 Thread Hassan Adamu
good day dear friends. i have created a website just a few month a go. but now i was unable to access the website. please my friends can any body help me out? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and s

OperationalError at /admin/products/product/add/

2021-05-24 Thread Harsh Saini
Environment: Request Method: POST Request URL: http://127.0.0.1:8000/admin/products/product/add/ Django Version: 2.0.7 Python Version: 3.8.10 Installed Applications: ['django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messag

Re: Integrate a microphone in the Django app

2021-05-24 Thread Nick Sarbicki
Hi, This isn't really a Django problem to solve, it's more general than that. First you need the client to record and send an audio file of their mic recording. This is likely something you want to do in JavaScript, as it is something that they will have to do on their machine - the server does no

Integrate a microphone in the Django app

2021-05-24 Thread מוריה יצחקי
Hello everyone I want to allow my app to receive input from a microphone I would be happy for help on how to do this in the visual section as well: how to put a microphone that allows you to type from the user in HTML and how to convert the audio to the text in Python Will really really help me t