makemigrations
Hello I am new in Django users group. I am using Django and faching a problem when i do any changes in existing models after run makemigrations. This is problem :-It is impossible to add a non-nullable field 'logo' to jobdetails without specifying a default. This is because the database needs something to populate existing rows. Please select a fix: 1) Provide a one-off default now (will be set on all existing rows with a null value for this column) 2) Quit and manually define a default value in models.py. Select an option: 2 please help how can i solve this problem . Thank you -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/10c70cce-9e8e-46ca-8ab1-a2fc73ef4181n%40googlegroups.com.
Re: makemigrations
Thank You everyone for help me On Friday, September 16, 2022 at 4:25:44 AM UTC+5:30 fortu...@gmail.com wrote: > In the new added field “logo” set default = None or specify a default > value > > On Thu, Sep 15, 2022 at 8:38 PM shiva singh > wrote: > >> Hello I am new in Django users group. I am using Django and faching a >> problem when i do any changes in existing models after run makemigrations. >> >> >> This is problem :-It is impossible to add a non-nullable field 'logo' to >> jobdetails without specifying a default. This is because the database needs >> something to populate existing rows. >> Please select a fix: >> 1) Provide a one-off default now (will be set on all existing rows with >> a null value for this column) >> 2) Quit and manually define a default value in models.py. >> Select an option: 2 >> >> >> please help how can i solve this problem . >> >> Thank you >> >> -- >> > You received this message because you are subscribed to the Google Groups >> "Django users" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to django-users+unsubscr...@googlegroups.com. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/django-users/10c70cce-9e8e-46ca-8ab1-a2fc73ef4181n%40googlegroups.com >> >> <https://groups.google.com/d/msgid/django-users/10c70cce-9e8e-46ca-8ab1-a2fc73ef4181n%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> > -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/75c35525-6664-41cd-969c-ba0a2ad99218n%40googlegroups.com.
session related error
Hi everyone anyone give solution for this problem: AttributeError: 'SessionStore' object has no attribute 'id' [16/Sep/2022 19:28:16] "POST /jobpostsubmit/ HTTP/1.1" 500 66025 -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/fa9dd634-a600-493d-9d34-d96af98e7740n%40googlegroups.com.
session id attribute error
hello everyone please help me how can solve this problem:-[image: image.jpeg] -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/f1b3116a-a14a-45fb-84d0-c4f95a05fdf0n%40googlegroups.com.
SessionStore attribute error
hello everyone please help how can solve this problem? this is session code:- if user.password==password and user.role=="Company": com=Company.objects.get(user_id=user) request.session['id']=user.id request.session['role']=user.role request.session['company_name']=com.company_name request.session['email']=user.email return redirect('companyprofilepage') This is my views.py code:- def JobPostSubmit(request): user=UserMaster.objects.get(id=request.session.id) if user.role == "Comapny": comp = Company.objects.get(user_id=user) jobname=request.POST['jobname'] comname=request.POST['comn'] comemail=request.POST['come'] comaddress=request.POST['comadd'] comcontact=request.POST['comco'] qualifications=request.POST['quli'] responsblities=request.POST['resp'] salary=request.POST['salary'] experience=request.POST['exep'] jobdesc=request.POST['jobdesc'] weburl=request.POST['weburl'] comlogo=request.FILES['comlogo'] jps=JobDetails.objects.create(company_id=comp,jobname=jobname,company_name=comname,jobdesc=jobdesc,qulifications=qualifications,resposiilites=responsblities,location=comaddress,companywebsite=weburl,companyemail=comemail,companycontact=comcontact,salarypackage=salary,experience=experience,logo=comlogo) message="Job Post Successfully" return redirect('jobpostsubmit',{'msg':message}) [image: image.jpeg] -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/5cbd8bee-7089-466a-8b61-7d7e3f59bb5en%40googlegroups.com.
Re: SessionStore attribute error
hello Dear Kasper Laudrup I am beginner sorry for this but my problem is not solve yet that's why I have sent my code for better solution of error I am not familiar about this file witch you are send me On Tuesday, September 20, 2022 at 12:22:12 PM UTC+5:30 Kasper Laudrup wrote: > On 20/09/2022 08.21, shiva singh wrote: > > hello everyone please help how can solve this problem? > > > > I suggest you ignore all the replies you've already gotten and then post > the exact same question a third time. > > Kind regards, > Kasper Laudrup > -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/c7e37c46-d540-49b1-ba24-989ace6845b0n%40googlegroups.com.
Multistape data send to database
hello Everyone can anyone give a idea to how can send multistape form data into data base with validation -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/f845417e-ba17-4ce8-8d25-b30bcc2c818fn%40googlegroups.com.
MicroService related issue
Hello I am currently working on a microservices project using Django and have encountered an issue. i am facing issue when create microservice project using django i am created 2 difrent django project in one common folder and one project name is authentication and second project name is repairmodule and when i access authentication project's model class in repairmodule models class and when i run makemigrations i am getting this error: File "", line 1204, in _gcd_import File "", line 1176, in _find_and_load File "", line 1147, in _find_and_load_unlocked File "", line 690, in _load_unlocked File "", line 940, in exec_module File "", line 241, in _call_with_frames_removed File "C:\BSInfosys\RepairAnything\repairmodule\repair\models.py", line 2, in from authentication.authenticate.models import User, RepairManProfile ModuleNotFoundError: No module named 'authentication' this is my directory Structure: RepairAnything/ ├── authentication/ │ ├── manage.py │ ├── authentication/ │ │ ├── __init__.py │ │ ├── asgi.py │ │ ├── settings.py │ │ ├── urls.py │ │ ├── wsgi.py │ │ └── __pycache__/ │ └── authenticate/ │ ├── __init__.py │ ├── admin.py │ ├── apps.py │ ├── migrations/ │ │ └── __init__.py │ ├── models.py │ ├── serializers.py │ ├── tests.py │ ├── urls.py │ └── views.py ├── env/ # Your virtual environment ├── repairmodule/ │ ├── manage.py │ ├── repair/ │ │ ├── __init__.py │ │ └── models.py │ └── repairmodule/ │ ├── __init__.py │ ├── asgi.py │ ├── settings.py │ ├── urls.py │ ├── wsgi.py │ └── __pycache__/ ├── db.sqlite3# Database file ├── .env # Environment variables file ├── .gitignore# Git ignore file └── README.md # Project README file I would appreciate your guidance on how to resolve this issue. If you need any additional information, please let me know. Thank you for your time and assistance! Best regards, -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAEsRHMWn1PSmBcD%3Db6jLqYwnCD-FsVtgvKXuAe8kybRo%2BmEQDg%40mail.gmail.com.
Re: MicroService related issue
Hello thank you for reply when we connect on vc can you give any time thanks again for your reply On Mon, Oct 14, 2024 at 12:05 PM Sunday Ajayi wrote: > Hi > > You can email me so we can schedule a call to review it. > > Regards > > *AJAYI Sunday * > (+234) 806 771 5394 > *sunnexaj...@gmail.com * > > > > On Mon, Oct 14, 2024 at 1:18 AM Konstantinos Dimitropoulos < > cdemetropou...@gmail.com> wrote: > >> Hello, why don't you create a project with two apps? Authenticate and >> repaire >> >> Le ven. 11 oct. 2024, 11:01, shiva singh a >> écrit : >> >>> Hello >>> I am currently working on a microservices project using Django and >>> have encountered an issue. >>> i am facing issue when create microservice project using django i am >>> created 2 difrent django project in one common folder and one project name >>> is authentication and second project name is repairmodule and when i access >>> authentication project's model class in repairmodule models class and when >>> i run makemigrations i am getting this error: >>> File "", line 1204, in _gcd_import >>> File "", line 1176, in _find_and_load >>> File "", line 1147, in >>> _find_and_load_unlocked >>> File "", line 690, in _load_unlocked >>> File "", line 940, in exec_module >>> File "", line 241, in >>> _call_with_frames_removed >>> File "C:\BSInfosys\RepairAnything\repairmodule\repair\models.py", line >>> 2, in >>> from authentication.authenticate.models import User, RepairManProfile >>> ModuleNotFoundError: No module named 'authentication' >>> this is my directory Structure: >>> RepairAnything/ >>> ├── authentication/ >>> │ ├── manage.py >>> │ ├── authentication/ >>> │ │ ├── __init__.py >>> │ │ ├── asgi.py >>> │ │ ├── settings.py >>> │ │ ├── urls.py >>> │ │ ├── wsgi.py >>> │ │ └── __pycache__/ >>> │ └── authenticate/ >>> │ ├── __init__.py >>> │ ├── admin.py >>> │ ├── apps.py >>> │ ├── migrations/ >>> │ │ └── __init__.py >>> │ ├── models.py >>> │ ├── serializers.py >>> │ ├── tests.py >>> │ ├── urls.py >>> │ └── views.py >>> ├── env/ # Your virtual environment >>> ├── repairmodule/ >>> │ ├── manage.py >>> │ ├── repair/ >>> │ │ ├── __init__.py >>> │ │ └── models.py >>> │ └── repairmodule/ >>> │ ├── __init__.py >>> │ ├── asgi.py >>> │ ├── settings.py >>> │ ├── urls.py >>> │ ├── wsgi.py >>> │ └── __pycache__/ >>> ├── db.sqlite3# Database file >>> ├── .env # Environment variables file >>> ├── .gitignore# Git ignore file >>> └── README.md # Project README file >>> >>> I would appreciate your guidance on how to resolve this issue. If you >>> need any additional information, please let me know. >>> >>> Thank you for your time and assistance! >>> >>> Best regards, >>> >>> -- >>> You received this message because you are subscribed to the Google >>> Groups "Django users" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to django-users+unsubscr...@googlegroups.com. >>> To view this discussion on the web visit >>> https://groups.google.com/d/msgid/django-users/CAEsRHMWn1PSmBcD%3Db6jLqYwnCD-FsVtgvKXuAe8kybRo%2BmEQDg%40mail.gmail.com >>> <https://groups.google.com/d/msgid/django-users/CAEsRHMWn1PSmBcD%3Db6jLqYwnCD-FsVtgvKXuAe8kybRo%2BmEQDg%40mail.gmail.com?utm_medium=email&utm_source=footer> >>> . >>> >> -- >> You received this message because you are subscribed to the Google Groups >> "Django users" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to django-users+unsubscr...@googlegroups.com. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/django-users/CAOKiqZkMEKqEUad4gg4CRtDYiHT-8%3Dr-x1Ya4VxmY95tj3hGPA%40mail.gmail.com >> <https://groups.google.com/d/msgid/django-users/CAOKiqZkMEKqEUad4gg4CRtDYiHT-8%3Dr-x1Ya4VxmY95tj3hGPA%40mail.gmail.com?utm_medium=email&utm_source=footer> >> . >> > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to django-users+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/CAKYSAw0S1LN3EGH8G68mMphLiXvsQSMZScSf6t6iR3fMX8hJkA%40mail.gmail.com > <https://groups.google.com/d/msgid/django-users/CAKYSAw0S1LN3EGH8G68mMphLiXvsQSMZScSf6t6iR3fMX8hJkA%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAEsRHMWUnRHPzUk0YtZSoZuPPvtJjybqAKCF8XoRNZqfZLQvyg%40mail.gmail.com.
Re: MicroService related issue
hello thank you for your reply. i am new to use microservice with django can you give any project demo link or project demo for reference witch is atleast use 3 small project in with microservice thank you again for your reply On Mon, Oct 21, 2024 at 12:44 AM Francis wrote: > you cannot import models from another django project. > > On Mon, Oct 14, 2024, 2:34 PM Sunday Ajayi wrote: > >> Hi >> >> You can email me so we can schedule a call to review it. >> >> Regards >> >> *AJAYI Sunday * >> (+234) 806 771 5394 >> *sunnexaj...@gmail.com * >> >> >> >> On Mon, Oct 14, 2024 at 1:18 AM Konstantinos Dimitropoulos < >> cdemetropou...@gmail.com> wrote: >> >>> Hello, why don't you create a project with two apps? Authenticate and >>> repaire >>> >>> Le ven. 11 oct. 2024, 11:01, shiva singh a >>> écrit : >>> >>>> Hello >>>> I am currently working on a microservices project using Django and >>>> have encountered an issue. >>>> i am facing issue when create microservice project using django i am >>>> created 2 difrent django project in one common folder and one project name >>>> is authentication and second project name is repairmodule and when i access >>>> authentication project's model class in repairmodule models class and when >>>> i run makemigrations i am getting this error: >>>> File "", line 1204, in _gcd_import >>>> File "", line 1176, in _find_and_load >>>> File "", line 1147, in >>>> _find_and_load_unlocked >>>> File "", line 690, in _load_unlocked >>>> File "", line 940, in >>>> exec_module >>>> File "", line 241, in >>>> _call_with_frames_removed >>>> File "C:\BSInfosys\RepairAnything\repairmodule\repair\models.py", >>>> line 2, in >>>> from authentication.authenticate.models import User, >>>> RepairManProfile >>>> ModuleNotFoundError: No module named 'authentication' >>>> this is my directory Structure: >>>> RepairAnything/ >>>> ├── authentication/ >>>> │ ├── manage.py >>>> │ ├── authentication/ >>>> │ │ ├── __init__.py >>>> │ │ ├── asgi.py >>>> │ │ ├── settings.py >>>> │ │ ├── urls.py >>>> │ │ ├── wsgi.py >>>> │ │ └── __pycache__/ >>>> │ └── authenticate/ >>>> │ ├── __init__.py >>>> │ ├── admin.py >>>> │ ├── apps.py >>>> │ ├── migrations/ >>>> │ │ └── __init__.py >>>> │ ├── models.py >>>> │ ├── serializers.py >>>> │ ├── tests.py >>>> │ ├── urls.py >>>> │ └── views.py >>>> ├── env/ # Your virtual environment >>>> ├── repairmodule/ >>>> │ ├── manage.py >>>> │ ├── repair/ >>>> │ │ ├── __init__.py >>>> │ │ └── models.py >>>> │ └── repairmodule/ >>>> │ ├── __init__.py >>>> │ ├── asgi.py >>>> │ ├── settings.py >>>> │ ├── urls.py >>>> │ ├── wsgi.py >>>> │ └── __pycache__/ >>>> ├── db.sqlite3# Database file >>>> ├── .env # Environment variables file >>>> ├── .gitignore# Git ignore file >>>> └── README.md # Project README file >>>> >>>> I would appreciate your guidance on how to resolve this issue. If you >>>> need any additional information, please let me know. >>>> >>>> Thank you for your time and assistance! >>>> >>>> Best regards, >>>> >>>> -- >>>> You received this message because you are subscribed to the Google >>>> Groups "Django users" group. >>>> To unsubscribe from this group and stop receiving emails from it, send >>>> an email to django-users+unsubscr...@googlegroups.com. >>>> To view this discussion on the web visit >>>> https://groups.google.com/d/msgid/django-users/CAEsRHMWn1PSmBcD%3Db6jLqYwnCD-FsVtgvKXuAe8kybRo%2BmEQDg%40mail.gmail.com >>>> <https://groups.google.com/d/msgid/django-users/CAEsRHMWn1PSmBcD%3Db6jLqYwnCD-FsVtgvKXuAe8kybRo%2BmEQDg%40mail.gmail.com?utm_medium=email&utm_source
Re: MicroService related issue
*Hello Sreedhar,* Thank you for your reply and feedback regarding the naming conventions in my Django project. To clarify, *authentication* is the name of my Django project, and *authenticate* is the name of the app within that project. I chose these names to reflect their respective purposes. Are you suggesting that I should change both the project and app names to avoid confusion with the authentication functions in the framework? I appreciate your suggestions about mentioning custom apps in the settings.py file and adjusting the import statements. I will certainly ensure that the apps are correctly listed in INSTALLED_APPS and will consider your advice on import practices. Thank you again for your insights! Best regards, On Fri, Oct 11, 2024 at 2:45 PM Sreedhar p wrote: > Ensure models order it was crucial for one by one creation > > On Fri, Oct 11, 2024, 14:43 Sreedhar p wrote: > >> 1.I think its not using good authenticate, because authenticate is like >> function which provides authentication to the user by taking username and >> password and authenticate is an part of authentication frsmework try to >> change that names >> 2.mention custom apps in settings.py file in installed apps >> 3.try like >> from authenticate.models import #modelnames >> >> On Fri, Oct 11, 2024, 14:31 shiva singh wrote: >> >>> Hello >>> I am currently working on a microservices project using Django and >>> have encountered an issue. >>> i am facing issue when create microservice project using django i am >>> created 2 difrent django project in one common folder and one project name >>> is authentication and second project name is repairmodule and when i access >>> authentication project's model class in repairmodule models class and when >>> i run makemigrations i am getting this error: >>> File "", line 1204, in _gcd_import >>> File "", line 1176, in _find_and_load >>> File "", line 1147, in >>> _find_and_load_unlocked >>> File "", line 690, in _load_unlocked >>> File "", line 940, in exec_module >>> File "", line 241, in >>> _call_with_frames_removed >>> File "C:\BSInfosys\RepairAnything\repairmodule\repair\models.py", line >>> 2, in >>> from authentication.authenticate.models import User, RepairManProfile >>> ModuleNotFoundError: No module named 'authentication' >>> this is my directory Structure: >>> RepairAnything/ >>> ├── authentication/ >>> │ ├── manage.py >>> │ ├── authentication/ >>> │ │ ├── __init__.py >>> │ │ ├── asgi.py >>> │ │ ├── settings.py >>> │ │ ├── urls.py >>> │ │ ├── wsgi.py >>> │ │ └── __pycache__/ >>> │ └── authenticate/ >>> │ ├── __init__.py >>> │ ├── admin.py >>> │ ├── apps.py >>> │ ├── migrations/ >>> │ │ └── __init__.py >>> │ ├── models.py >>> │ ├── serializers.py >>> │ ├── tests.py >>> │ ├── urls.py >>> │ └── views.py >>> ├── env/ # Your virtual environment >>> ├── repairmodule/ >>> │ ├── manage.py >>> │ ├── repair/ >>> │ │ ├── __init__.py >>> │ │ └── models.py >>> │ └── repairmodule/ >>> │ ├── __init__.py >>> │ ├── asgi.py >>> │ ├── settings.py >>> │ ├── urls.py >>> │ ├── wsgi.py >>> │ └── __pycache__/ >>> ├── db.sqlite3# Database file >>> ├── .env # Environment variables file >>> ├── .gitignore# Git ignore file >>> └── README.md # Project README file >>> >>> I would appreciate your guidance on how to resolve this issue. If you >>> need any additional information, please let me know. >>> >>> Thank you for your time and assistance! >>> >>> Best regards, >>> >>> -- >>> You received this message because you are subscribed to the Google >>> Groups "Django users" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to django-users+unsubscr...@googlegroups.com. >>> To view this discussion on the web visit >>> https://groups.google.com/d/msgid/django-users/CAEsRHMWn1PSmBcD%3Db6jLqYwnCD-FsVtgvKXuAe8kybRo%2BmEQDg%40mail.gmail.com >>> <https://groups.google.com/d/msgid/django-users/CAEsRHMWn1PSmBcD
Python Django Developer Job
Hello User I am searching a job for Python Django Developer I have 2yr of experience in Django Developer I have attached my resume for your reference if any vacancy please let me know Thanks and Regards -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To view this discussion visit https://groups.google.com/d/msgid/django-users/CAEsRHMUHb%2B%2B9ceW6Lvk5CADD6bUuWW2j%3Dk4JqdopW6U%3D_6%3D%3D5w%40mail.gmail.com. Shiva Singh -1.pdf Description: Adobe PDF document