part time or full time job opportunity for Django developers
Hi All, I am in search for Django developer for a project. Interested candidate may share his/her resume with you at atul.anand.n...@gmail.com Regards, Atul -- 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 post to this group, send email to django-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAKHpVdSJuJp1C0A%3D00mKJBe5SGSoHtt7NGAbksAix9eyNUEXLA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
how to create table from model
Hi All, I am new to Django. I want to create tables by using models. I have tried to follow this link: https://docs.djangoproject.com/en/3.0/topics/db/models/. models.py from django.db import models # Create your models here. class Person(models.Model): id = models.AutoField(primary_key=True) first_name = models.CharField(max_length=30) last_name = models.CharField(max_length=30) I have registered the app and provided connection details of the DB. But when I tried to run makemigrations and migrate, it's not identifying the changes. python manage.py makemigrations *No changes detected* python manage.py migrate *Operations to perform:* * Apply all migrations: admin, auth, contenttypes, sessions* *Running migrations:* * No migrations to apply.* *any help would be appriciated.* -- 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/e8f15897-5729-4b51-9ab3-bec0c159dcfco%40googlegroups.com.
issue in hosting https://www.pythonanywhere.com
y code is working in local. But the same code when I am uploading into https://www.pythonanywhere.com. Its throwing error. Note: I have updated few things to make it compatible for django2,which is working for me in my local windows box. https://www.pythonanywhere.com/user/crackjeeonline/webapps/#tab_id_crackjeeonline_pythonanywhere_com https://github.com/atulanandnitt/simplesocial result of pip freeze 1. (djangoVenv) 07:50 ~/simplesocial (master)$ pip freeze 2. -f /usr/share/pip-wheels 3. argon2-cffi==18.3.0 4. bcrypt==3.1.5 5. certifi==2018.10.15 6. cffi==1.11.5 7. chardet==3.0.4 8. coreapi==2.3.3 9. coreschema==0.0.4 10. Django==2.0.9 11. django-bootstrap3==11.0.0 12. django-braces==1.13.0 13. django-cors-headers==2.4.0 14. django-debug-toolbar==1.10.1 15. django-filter==2.0.0 16. django-tables2==2.0.3 17. djangorestframework==3.9.0 18. Faker==1.0.1 19. idna==2.7 20. itypes==1.1.0 21. Jinja2==2.10 22. Markdown==3.0.1 23. MarkupSafe==1.1.0 24. misaka==2.1.1 25. Pillow==5.3.0 26. pycparser==2.19 27. python-dateutil==2.7.5 28. pytz==2018.7 29. requests==2.20.1 30. six==1.12.0 31. sqlparse==0.2.4 32. text-unidecode==1.2 33. uritemplate==3.0.0 Snippet from https://www.pythonanywhere.com/user/crackjeeonline/files/var/log/crackjeeonline.pythonanywhere.com.error.log 1. 2018-12-23 06:53:44,347: Error running WSGI application 2. 2018-12-23 06:53:44,355: ModuleNotFoundError: No module named 'debug_toolbar' 3. 2018-12-23 06:53:44,356: File "/var/www/crackjeeonline_pythonanywhere_com_wsgi.py", line 54, in 4. 2018-12-23 06:53:44,356: django.setup() 5. 2018-12-23 06:53:44,356: 6. 2018-12-23 06:53:44,356: File "/usr/lib/python3.6/site-packages/django/__init__.py", line 24, in setup 7. 2018-12-23 06:53:44,357: apps.populate(settings.INSTALLED_APPS) 8. 2018-12-23 06:53:44,357: 9. 2018-12-23 06:53:44,357: File "/usr/lib/python3.6/site-packages/django/apps/registry.py", line 89, in populate 10. 2018-12-23 06:53:44,357: app_config = AppConfig.create(entry) 11. 2018-12-23 06:53:44,358: 12. 2018-12-23 06:53:44,358: File "/usr/lib/python3.6/site-packages/django/apps/config.py", line 90, in create 13. 2018-12-23 06:53:44,358: module = import_module(entry) 14. 2018-12-23 06:53:44,358: *** 15. 2018-12-23 06:53:44,359: If you're seeing an import error and don't know why, 16. 2018-12-23 06:53:44,359: we have a dedicated help page to help you debug: 17. 2018-12-23 06:53:44,359: https://help.pythonanywhere.com/pages/DebuggingImportError/ Regards, Atul -- 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 post to this group, send email to django-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAKHpVdTdwqMXje4KzTOSX1QF9FNR89oOQAB%2BkDncKQ7ZP93pyg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: issue in hosting https://www.pythonanywhere.com
I am using virtual env: * djangoVenv* On Mon, Dec 24, 2018 at 7:45 PM Joel Mathew wrote: > Use virtualenv > Sincerely yours, > > Joel G Mathew > > > > On Mon, 24 Dec 2018 at 19:34, Atul Anand > wrote: > >> y code is working in local. But the same code when I am uploading into >> https://www.pythonanywhere.com. Its throwing error. >> >> Note: I have updated few things to make it compatible for django2,which >> is working for me in my local windows box. >> >> >> >> >> >> https://www.pythonanywhere.com/user/crackjeeonline/webapps/#tab_id_crackjeeonline_pythonanywhere_com >> >> https://github.com/atulanandnitt/simplesocial >> >> >> >> result of pip freeze >> >> >>1. (djangoVenv) 07:50 ~/simplesocial (master)$ pip freeze >>2. -f /usr/share/pip-wheels >>3. argon2-cffi==18.3.0 >>4. bcrypt==3.1.5 >>5. certifi==2018.10.15 >>6. cffi==1.11.5 >>7. chardet==3.0.4 >>8. coreapi==2.3.3 >>9. coreschema==0.0.4 >>10. Django==2.0.9 >>11. django-bootstrap3==11.0.0 >>12. django-braces==1.13.0 >>13. django-cors-headers==2.4.0 >>14. django-debug-toolbar==1.10.1 >>15. django-filter==2.0.0 >>16. django-tables2==2.0.3 >>17. djangorestframework==3.9.0 >>18. Faker==1.0.1 >>19. idna==2.7 >>20. itypes==1.1.0 >>21. Jinja2==2.10 >>22. Markdown==3.0.1 >>23. MarkupSafe==1.1.0 >>24. misaka==2.1.1 >>25. Pillow==5.3.0 >>26. pycparser==2.19 >>27. python-dateutil==2.7.5 >>28. pytz==2018.7 >>29. requests==2.20.1 >>30. six==1.12.0 >>31. sqlparse==0.2.4 >>32. text-unidecode==1.2 >>33. uritemplate==3.0.0 >> >> >> >> Snippet from >> https://www.pythonanywhere.com/user/crackjeeonline/files/var/log/crackjeeonline.pythonanywhere.com.error.log >> >> >>1. 2018-12-23 06:53:44,347: Error running WSGI application >>2. 2018-12-23 06:53:44,355: ModuleNotFoundError: No module named >> 'debug_toolbar' >>3. 2018-12-23 06:53:44,356: File >> "/var/www/crackjeeonline_pythonanywhere_com_wsgi.py", line 54, in >>4. 2018-12-23 06:53:44,356: django.setup() >>5. 2018-12-23 06:53:44,356: >>6. 2018-12-23 06:53:44,356: File >> "/usr/lib/python3.6/site-packages/django/__init__.py", line 24, in setup >>7. 2018-12-23 06:53:44,357: apps.populate(settings.INSTALLED_APPS) >>8. 2018-12-23 06:53:44,357: >>9. 2018-12-23 06:53:44,357: File >> "/usr/lib/python3.6/site-packages/django/apps/registry.py", line 89, in >> populate >>10. 2018-12-23 06:53:44,357: app_config = AppConfig.create(entry) >>11. 2018-12-23 06:53:44,358: >>12. 2018-12-23 06:53:44,358: File >> "/usr/lib/python3.6/site-packages/django/apps/config.py", line 90, in create >>13. 2018-12-23 06:53:44,358: module = import_module(entry) >>14. 2018-12-23 06:53:44,358: >> *** >>15. 2018-12-23 06:53:44,359: If you're seeing an import error and don't >> know why, >>16. 2018-12-23 06:53:44,359: we have a dedicated help page to help you >> debug: >>17. 2018-12-23 06:53:44,359: >> https://help.pythonanywhere.com/pages/DebuggingImportError/ >> >> >> Regards, >> Atul >> >> -- >> 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 post to this group, send email to django-users@googlegroups.com. >> Visit this group at https://groups.google.com/group/django-users. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/django-users/CAKHpVdTdwqMXje4KzTOSX1QF9FNR89oOQAB%2BkDncKQ7ZP93pyg%40mail.gmail.com >> <https://groups.google.com/d/msgid/django-users/CAKHpVdTdwqMXje4KzTOSX1QF9FNR89oOQAB%2BkDncKQ7ZP93pyg%40mail.gmail.com?utm_medium=email&utm_source=footer> >> . >> For more options, visit https://groups.google.com/d/optout. >> > -- > 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 post to this group, send email to dja
Re: issue in hosting https://www.pythonanywhere.com
Hi Brad, Thanks for helping, but I am using a venv. please find the below snapshot of the venv detail. Please guide me if I am doing something wrong. Virtualenv: Use a virtualenv to get different versions of flask, django etc from our default system ones. More info here <https://help.pythonanywhere.com/pages/Virtualenvs>. You need to *Reload your web app* to activate it; NB - will do nothing if the virtualenv does not exist. /home/crackjeeonline/.virtualenvs/djangoVenv <https://www.pythonanywhere.com/user/crackjeeonline/webapps/#> On Tue, Dec 25, 2018 at 11:05 AM Brad Pitcher wrote: > The paths in your logs indicate you aren't using a virtualenv. Find the > virtualenv section in the web tab and make sure you specify the path to > your virtualenv there. Should be something like > /home/[username]/.virtualenvs/djangoVenv > > On Mon, Dec 24, 2018 at 8:09 AM Atul Anand > wrote: > >> I am using virtual env: * djangoVenv* >> >> >> On Mon, Dec 24, 2018 at 7:45 PM Joel Mathew wrote: >> >>> Use virtualenv >>> Sincerely yours, >>> >>> Joel G Mathew >>> >>> >>> >>> On Mon, 24 Dec 2018 at 19:34, Atul Anand >>> wrote: >>> >>>> y code is working in local. But the same code when I am uploading into >>>> https://www.pythonanywhere.com. Its throwing error. >>>> >>>> Note: I have updated few things to make it compatible for django2,which >>>> is working for me in my local windows box. >>>> >>>> >>>> >>>> >>>> >>>> https://www.pythonanywhere.com/user/crackjeeonline/webapps/#tab_id_crackjeeonline_pythonanywhere_com >>>> >>>> https://github.com/atulanandnitt/simplesocial >>>> >>>> >>>> >>>> result of pip freeze >>>> >>>> >>>>1. (djangoVenv) 07:50 ~/simplesocial (master)$ pip freeze >>>>2. -f /usr/share/pip-wheels >>>>3. argon2-cffi==18.3.0 >>>>4. bcrypt==3.1.5 >>>>5. certifi==2018.10.15 >>>>6. cffi==1.11.5 >>>>7. chardet==3.0.4 >>>>8. coreapi==2.3.3 >>>>9. coreschema==0.0.4 >>>>10. Django==2.0.9 >>>>11. django-bootstrap3==11.0.0 >>>>12. django-braces==1.13.0 >>>>13. django-cors-headers==2.4.0 >>>>14. django-debug-toolbar==1.10.1 >>>>15. django-filter==2.0.0 >>>>16. django-tables2==2.0.3 >>>>17. djangorestframework==3.9.0 >>>>18. Faker==1.0.1 >>>>19. idna==2.7 >>>>20. itypes==1.1.0 >>>>21. Jinja2==2.10 >>>>22. Markdown==3.0.1 >>>>23. MarkupSafe==1.1.0 >>>>24. misaka==2.1.1 >>>>25. Pillow==5.3.0 >>>>26. pycparser==2.19 >>>>27. python-dateutil==2.7.5 >>>>28. pytz==2018.7 >>>>29. requests==2.20.1 >>>>30. six==1.12.0 >>>>31. sqlparse==0.2.4 >>>>32. text-unidecode==1.2 >>>>33. uritemplate==3.0.0 >>>> >>>> >>>> >>>> Snippet from >>>> https://www.pythonanywhere.com/user/crackjeeonline/files/var/log/crackjeeonline.pythonanywhere.com.error.log >>>> >>>> >>>>1. 2018-12-23 06:53:44,347: Error running WSGI application >>>>2. 2018-12-23 06:53:44,355: ModuleNotFoundError: No module named >>>> 'debug_toolbar' >>>>3. 2018-12-23 06:53:44,356: File >>>> "/var/www/crackjeeonline_pythonanywhere_com_wsgi.py", line 54, in >>>>4. 2018-12-23 06:53:44,356: django.setup() >>>>5. 2018-12-23 06:53:44,356: >>>>6. 2018-12-23 06:53:44,356: File >>>> "/usr/lib/python3.6/site-packages/django/__init__.py", line 24, in setup >>>>7. 2018-12-23 06:53:44,357: apps.populate(settings.INSTALLED_APPS) >>>>8. 2018-12-23 06:53:44,357: >>>>9. 2018-12-23 06:53:44,357: File >>>> "/usr/lib/python3.6/site-packages/django/apps/registry.py", line 89, in >>>> populate >>>>10. 2018-12-23 06:53:44,357: app_config = AppConfig.create(entry) >>>>11. 2018-12-23 06:53:44,358: >>>>12. 2018-12-23 06:53:44,358: File >>>> "/usr/lib/python3.6/site-packages/django/apps/config.py", line 90, in >>>> create >>>>13. 2018-12-23
Re: issue in hosting https://www.pythonanywhere.com
Hi Ireoluwa, Have a beautiful Christmas Nice observation, I made the below change: ALLOWED_HOSTS = ['localhost', 'www.pythonanywhere.com/simplesocial'] But its still throwing the same error :( Regards, Atul On Wed, Dec 26, 2018 at 12:09 AM ireoluwa fakeye wrote: > Hii atul , > The problem you are facing is because you haven't added python anywhere > to your allowed host in your settings.py .normally ,the only allowed host > by default is your localhost. In order to solve this problem create a > variable to hold the string 'www.pythonanywhere.com/yourappname' and pass > it into the allowed host list . > > > > Have a beautiful Christmas > Ireoluwa > > On Tue, 25 Dec 2018, 19:02 Brad Pitcher, wrote: > >> Atul, >> Have you looked over the troubleshooting in >> https://help.pythonanywhere.com/pages/DebuggingImportError ? It looks >> like your web app is using a separate django installed to the system python >> based on the paths in the error log. You should be able to fix that in the >> *_wsgi.py file. >> >> On Tue, Dec 25, 2018 at 7:58 AM Brad Pitcher >> wrote: >> >>> Can you share your wsgi file created on pythonanywhere? >>> >>> On Tue, Dec 25, 2018, 1:01 AM Atul Anand >> wrote: >>> >>>> Hi >>>> I have activated the venv by below cmd: >>>> 07:57 ~/simplesocial (master)$ workon djangoVenv >>>> Please let me know do I need to do something else ? Note: I have tried >>>> doing the same with cmd: 07:57 ~/simplesocial (master)$ activate. But >>>> it throwing error " bash: >>>> /home/crackjeeonline/.virtualenvs/djangoVenv/bin/activate: Permission >>>> denied" >>>> >>>> >>>> Regard, >>>> Atul >>>> >>>> On Tue, Dec 25, 2018 at 1:08 PM Joel Mathew wrote: >>>> >>>>> Did you activate it? >>>>> Sincerely yours, >>>>> >>>>> Joel G Mathew >>>>> >>>>> >>>>> >>>>> On Tue, 25 Dec 2018 at 12:27, Atul Anand >>>>> wrote: >>>>> >>>>>> Hi Brad, >>>>>> >>>>>> Thanks for helping, but I am using a venv. >>>>>> please find the below snapshot of the venv detail. >>>>>> >>>>>> Please guide me if I am doing something wrong. >>>>>> >>>>>> Virtualenv: >>>>>> >>>>>> Use a virtualenv to get different versions of flask, django etc from >>>>>> our default system ones. More info here >>>>>> <https://help.pythonanywhere.com/pages/Virtualenvs>. You need to *Reload >>>>>> your web app* to activate it; NB - will do nothing if the virtualenv >>>>>> does not exist. >>>>>> >>>>>> /home/crackjeeonline/.virtualenvs/djangoVenv >>>>>> <https://www.pythonanywhere.com/user/crackjeeonline/webapps/#> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> On Tue, Dec 25, 2018 at 11:05 AM Brad Pitcher >>>>>> wrote: >>>>>> >>>>>>> The paths in your logs indicate you aren't using a virtualenv. Find >>>>>>> the virtualenv section in the web tab and make sure you specify the >>>>>>> path to >>>>>>> your virtualenv there. Should be something like >>>>>>> /home/[username]/.virtualenvs/djangoVenv >>>>>>> >>>>>>> On Mon, Dec 24, 2018 at 8:09 AM Atul Anand < >>>>>>> atul.anand.n...@gmail.com> wrote: >>>>>>> >>>>>>>> I am using virtual env: * djangoVenv* >>>>>>>> >>>>>>>> >>>>>>>> On Mon, Dec 24, 2018 at 7:45 PM Joel Mathew wrote: >>>>>>>> >>>>>>>>> Use virtualenv >>>>>>>>> Sincerely yours, >>>>>>>>> >>>>>>>>> Joel G Mathew >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> On Mon, 24 Dec 2018 at 19:34, Atul Anand < >>>>>>>>> atul.anand.n...@gmail.com> wrote: >>>>>>>>> >>>>>>>>>> y code
Re: Internship
Forward the resume. On Fri, Nov 22, 2019, 5:04 PM Scyil sharma wrote: > I am sahil sharma, a student of btech 3rd year and I'm seeking for an > internship in Winter vacation. I would like to be work as a backend > developer. > > -- > 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/781ac56c-d22b-465e-9345-f629e077f2f6%40googlegroups.com > . > -- 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/CAKHpVdRm-2%3DWTBKrVjxGxK6xywtCLGNgAk_%3DYGxTyPfXSM6hnA%40mail.gmail.com.