Re: problem in activating virtual environment in Django with ". \Scripts\activate" command

2019-01-18 Thread Kuber Sodari
Okay, I see your problem is that you are doing it the wrong way. Go to the path where you have your virtual environment folder such as *cd C:\Python_project\project_name\* if we suppose I have a virtual environment with a directory as '*venv*' created inside my project directory *'project_name'*

Re: DJANGO-POLLS

2019-01-14 Thread Kuber Sodari
I am glad to be helpful. Your welcome! On Monday, 14 January 2019 15:48:00 UTC+5:45, Tarık Kantar wrote: > > THANK YOU VERY MUCH İT WORKS! :) > > Kuber Sodari >, 14 Oca 2019 Pzt, 10:59 > tarihinde şunu yazdı: > >> I see the problem is with >> >> >

Re: DJANGO-POLLS

2019-01-14 Thread Kuber Sodari
I see the problem is with *class Choice(models.Model) question = models.ForeignKey(Question) * Update it as this *class Choice(models.Model) question = models.ForeignKey(Question, on_delete=models.CASCADE) * *CASCADE: *What this does it, when you delete the related object of

Re: DJANGO-POLLS

2019-01-14 Thread Kuber Sodari
I see the problem is with *class Choice(models.Model) question = models.ForeignKey(Question) * Update it as this *class Choice(models.Model) question = models.ForeignKey(Question, on_delete=models.CASCADE) * On Monday, 14 January 2019 15:38:09 UTC+5:45, tarikk...@gmail.com wrote: > >

Re: DJANGO-POLLS

2019-01-14 Thread Kuber Sodari
Can you screenshot and paste the Model Class for that? The one with Foreign Key on Polls. It should have on_delete=models.SET_NULL or on_delete =models.CASCADE On Monday, 14 January 2019 15:28:32 UTC+5:45, tarikk...@gmail.com wrote: > > Hi everyone! > Could you please help me why I cant see this

Re: DJANGO-POLLS

2019-01-14 Thread Kuber Sodari
Did you import the Model changes on init file of Model?? On Monday, 14 January 2019 15:28:32 UTC+5:45, tarikk...@gmail.com wrote: > > Hi everyone! > Could you please help me why I cant see this part below when I run this > command, python manage.py makemigrations polls,? > > <<< >

Re: Setting up environment variable

2019-01-02 Thread Kuber Sodari
Can you screenshot and paste the error shown during running your project? On Wednesday, 2 January 2019 22:30:56 UTC+5:45, Surajeet Das wrote: > > Well , I am really stuck on this setting of environment variable > :'DJANGO_SETTINGS_MODULE' . When I run my project in pycharm , an error is >

Re: OneToOneField value must be a model instance, not a value?

2019-01-02 Thread Kuber Sodari
>From official documentation "*to_field* is the field on the related object that the relation is to. By default, Django uses the primary key of the related object. If you reference a different

Re:

2019-01-02 Thread Kuber Sodari
Seems like your local server is not running. See the error on terminal or cmd from where you are trying to start the server. You must see some error there. May be pasting the screenshot of that error might be helpful to indicate what is wrong here. See the terminal error and try to resolve it

Re: Error

2019-01-02 Thread Kuber Sodari
Hmm, I suspect your issue is with queryset there since it says Matching Query Doesn't exist. This error always tend to say you that your django orm query is not proper, it has certain fields or style that you can not perform in the way you have written. First of all, please check if your

Re: How to deploy Django Python Webapp with Windows10?

2019-01-02 Thread Kuber Sodari
My suggestion would be pythonanywhere.com Its free and reliable for the testing or demo purposes. On Tuesday, 1 January 2019 02:29:10 UTC+5:45, gian castillo wrote: > > Hi, > I built a webapp with django python and It's done. Now I want to deploy It > online,