Re: Problems with first program

2019-03-07 Thread Ranganath Kulkarni
Always use editors like pycharm which will take care of indentation if not 
it will complain syntax errors if there are any in your program.

On Thursday, February 28, 2019 at 11:14:33 PM UTC, Edvani Pascoal wrote:
>
> hey guys I'm beginner on django I never worked with this framework before 
> and then I've problems to started polls app this is the error:
> (my_env) root@ubuntu:~/django-test/djangoproject# python manage.py 
> runserver 192.168.184.202:8000
>
>
> Unhandled exception in thread started by  check_errors..wrapper at 0x7fa7af08b9d8>
> Traceback (most recent call last):
>   File 
> "/home/edvani/django-test/my_env/lib/python3.6/site-packages/django/utils/autoreload.py",
>  
> line 225, in wrapper
> fn(*args, **kwargs)
>   File 
> "/home/edvani/django-test/my_env/lib/python3.6/site-packages/django/core/management/commands/runserver.py",
>  
> line 109, in inner_run
> autoreload.raise_last_exception()
>   File 
> "/home/edvani/django-test/my_env/lib/python3.6/site-packages/django/utils/autoreload.py",
>  
> line 248, in raise_last_exception
> raise _exception[1]
>   File 
> "/home/edvani/django-test/my_env/lib/python3.6/site-packages/django/core/management/__init__.py",
>  
> line 337, in execute
> autoreload.check_errors(django.setup)()
>   File 
> "/home/edvani/django-test/my_env/lib/python3.6/site-packages/django/utils/autoreload.py",
>  
> line 225, in wrapper
> fn(*args, **kwargs)
>   File 
> "/home/edvani/django-test/my_env/lib/python3.6/site-packages/django/__init__.py",
>  
> line 24, in setup
> apps.populate(settings.INSTALLED_APPS)
>   File 
> "/home/edvani/django-test/my_env/lib/python3.6/site-packages/django/apps/registry.py",
>  
> line 112, in populate
> app_config.import_models()
>   File 
> "/home/edvani/django-test/my_env/lib/python3.6/site-packages/django/apps/config.py",
>  
> line 198, in import_models
> self.models_module = import_module(models_module_name)
>   File "/usr/lib/python3.6/importlib/__init__.py", line 126, in 
> import_module
> return _bootstrap._gcd_import(name[level:], package, level)
>   File "", line 994, in _gcd_import
>   File "", line 971, in _find_and_load
>   File "", line 955, in 
> _find_and_load_unlocked
>   File "", line 665, in _load_unlocked
>   File "", line 674, in exec_module
>   File "", line 781, in get_code
>   File "", line 741, in 
> source_to_code
>   File "", line 219, in 
> _call_with_frames_removed
>   File "/home/edvani/django-test/djangoproject/polls/models.py", line 5
> question_text = models.CharField(max_length=200)
> ^
> IndentationError: expected an indented block
>
>
> I need help how to solve this??
>

-- 
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/1a2cad82-cf7a-421a-88df-279955713233%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Problems with first program

2019-03-04 Thread sachin thakur
that is just a indentation error look just  back space
look into the indentation of python you need to understand the coding flow
in python and respective framework of python

*Thanks and Kind Regards*


*Sachin Thakur*
about.me/sachin.thakur

 *PG Student*
Dept. of Computer Applications,
*Christ ( Deemed to Be university) Main Campus Bangalore, India*
*UG (DSCASC under Bangalore University )* Bangalore, India.
Mob: *+91 8792560572*
*E-mail : sachin.thakur9...@gmail.com *
*E-mail : sachin.tha...@mca.christuniversity.in
*




On Fri, Mar 1, 2019 at 5:36 AM bob gailer  wrote:

> On 2/28/2019 6:08 PM, Edvani Pascoal wrote:
> > hey guys I'm beginner on django I never worked with this framework
> > before and then I've problems to started polls app this is the error:
> >
> deleting most of the traceback since in this case it is not relevant.
> >   File "/home/edvani/django-test/djangoproject/polls/models.py", line 5
> > question_text = models.CharField(max_length=200)
> > ^
> > IndentationError: expected an indented block
> >
> Here is the head of models.py, as copied from the tutorial
>
> from django.db import models
>
>
> class Question(models.Model):
>  question_text = models.CharField(max_length=200)
>
> Your copy of that file is different. Statement that end in : must be
> followed by at least one indented line. These are known as "compound
> statements" (if, elif, else, while, for, try, except, finally, with).
>
> --
> Bob Gailer
>
>
> ---
> This email has been checked for viruses by Avast antivirus software.
> https://www.avast.com/antivirus
>
> --
> 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/580f4cd8-1d87-56a0-7548-c20e26e3e446%40gmail.com
> .
> 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 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/CA%2BLmcYtzDMu_cTMwZJT-gzbC1UFsChVr3j%3D%2B6zZoxDAbL55zOQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Problems with first program

2019-03-04 Thread sachin thakur
that is just a indentation error look just  back space
look into the indentation of python you need to understand the coding flow
in python and respective framework of python

*Thanks and Kind Regards*


*Sachin Thakur*
about.me/sachin.thakur

 *PG Student*
Dept. of Computer Applications,
*Christ ( Deemed to Be university) Main Campus Bangalore, India*
*UG (DSCASC under Bangalore University )* Bangalore, India.
Mob: *+91 8792560572*
*E-mail : sachin.thakur9...@gmail.com *
*E-mail : sachin.tha...@mca.christuniversity.in
*




On Fri, Mar 1, 2019 at 5:36 AM bob gailer  wrote:

> On 2/28/2019 6:08 PM, Edvani Pascoal wrote:
> > hey guys I'm beginner on django I never worked with this framework
> > before and then I've problems to started polls app this is the error:
> >
> deleting most of the traceback since in this case it is not relevant.
> >   File "/home/edvani/django-test/djangoproject/polls/models.py", line 5
> > question_text = models.CharField(max_length=200)
> > ^
> > IndentationError: expected an indented block
> >
> Here is the head of models.py, as copied from the tutorial
>
> from django.db import models
>
>
> class Question(models.Model):
>  question_text = models.CharField(max_length=200)
>
> Your copy of that file is different. Statement that end in : must be
> followed by at least one indented line. These are known as "compound
> statements" (if, elif, else, while, for, try, except, finally, with).
>
> --
> Bob Gailer
>
>
> ---
> This email has been checked for viruses by Avast antivirus software.
> https://www.avast.com/antivirus
>
> --
> 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/580f4cd8-1d87-56a0-7548-c20e26e3e446%40gmail.com
> .
> 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 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/CA%2BLmcYtBR6qt0nnwf_-ZZUdc_BXx18-xMpYwCuF2_Pc6oNHQkA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Problems with first program

2019-03-01 Thread Julio Cojom
If you use sublime text, try this, right down corner, it says "Tab size" -> 
Convert Indentation to Tabs.

[image: Sin título.png]

El jueves, 28 de febrero de 2019, 17:14:33 (UTC-6), Edvani Pascoal escribió:
>
> hey guys I'm beginner on django I never worked with this framework before 
> and then I've problems to started polls app this is the error:
> (my_env) root@ubuntu:~/django-test/djangoproject# python manage.py 
> runserver 192.168.184.202:8000
>
>
> Unhandled exception in thread started by  check_errors..wrapper at 0x7fa7af08b9d8>
> Traceback (most recent call last):
>   File 
> "/home/edvani/django-test/my_env/lib/python3.6/site-packages/django/utils/autoreload.py",
>  
> line 225, in wrapper
> fn(*args, **kwargs)
>   File 
> "/home/edvani/django-test/my_env/lib/python3.6/site-packages/django/core/management/commands/runserver.py",
>  
> line 109, in inner_run
> autoreload.raise_last_exception()
>   File 
> "/home/edvani/django-test/my_env/lib/python3.6/site-packages/django/utils/autoreload.py",
>  
> line 248, in raise_last_exception
> raise _exception[1]
>   File 
> "/home/edvani/django-test/my_env/lib/python3.6/site-packages/django/core/management/__init__.py",
>  
> line 337, in execute
> autoreload.check_errors(django.setup)()
>   File 
> "/home/edvani/django-test/my_env/lib/python3.6/site-packages/django/utils/autoreload.py",
>  
> line 225, in wrapper
> fn(*args, **kwargs)
>   File 
> "/home/edvani/django-test/my_env/lib/python3.6/site-packages/django/__init__.py",
>  
> line 24, in setup
> apps.populate(settings.INSTALLED_APPS)
>   File 
> "/home/edvani/django-test/my_env/lib/python3.6/site-packages/django/apps/registry.py",
>  
> line 112, in populate
> app_config.import_models()
>   File 
> "/home/edvani/django-test/my_env/lib/python3.6/site-packages/django/apps/config.py",
>  
> line 198, in import_models
> self.models_module = import_module(models_module_name)
>   File "/usr/lib/python3.6/importlib/__init__.py", line 126, in 
> import_module
> return _bootstrap._gcd_import(name[level:], package, level)
>   File "", line 994, in _gcd_import
>   File "", line 971, in _find_and_load
>   File "", line 955, in 
> _find_and_load_unlocked
>   File "", line 665, in _load_unlocked
>   File "", line 674, in exec_module
>   File "", line 781, in get_code
>   File "", line 741, in 
> source_to_code
>   File "", line 219, in 
> _call_with_frames_removed
>   File "/home/edvani/django-test/djangoproject/polls/models.py", line 5
> question_text = models.CharField(max_length=200)
> ^
> IndentationError: expected an indented block
>
>
> I need help how to solve this??
>

-- 
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/834e5bba-48fb-4fbd-a007-22a66218e5dd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Problems with first program

2019-03-01 Thread gauravsrivastava2k17
Doing copy-paste always lead to indentation fault.Try to copy the code on 
any editor and then indent 2nd statement by 4 or 8 space indent .

On Friday, March 1, 2019 at 4:44:33 AM UTC+5:30, Edvani Pascoal wrote:
>
> hey guys I'm beginner on django I never worked with this framework before 
> and then I've problems to started polls app this is the error:
> (my_env) root@ubuntu:~/django-test/djangoproject# python manage.py 
> runserver 192.168.184.202:8000
>
>
> Unhandled exception in thread started by  check_errors..wrapper at 0x7fa7af08b9d8>
> Traceback (most recent call last):
>   File 
> "/home/edvani/django-test/my_env/lib/python3.6/site-packages/django/utils/autoreload.py",
>  
> line 225, in wrapper
> fn(*args, **kwargs)
>   File 
> "/home/edvani/django-test/my_env/lib/python3.6/site-packages/django/core/management/commands/runserver.py",
>  
> line 109, in inner_run
> autoreload.raise_last_exception()
>   File 
> "/home/edvani/django-test/my_env/lib/python3.6/site-packages/django/utils/autoreload.py",
>  
> line 248, in raise_last_exception
> raise _exception[1]
>   File 
> "/home/edvani/django-test/my_env/lib/python3.6/site-packages/django/core/management/__init__.py",
>  
> line 337, in execute
> autoreload.check_errors(django.setup)()
>   File 
> "/home/edvani/django-test/my_env/lib/python3.6/site-packages/django/utils/autoreload.py",
>  
> line 225, in wrapper
> fn(*args, **kwargs)
>   File 
> "/home/edvani/django-test/my_env/lib/python3.6/site-packages/django/__init__.py",
>  
> line 24, in setup
> apps.populate(settings.INSTALLED_APPS)
>   File 
> "/home/edvani/django-test/my_env/lib/python3.6/site-packages/django/apps/registry.py",
>  
> line 112, in populate
> app_config.import_models()
>   File 
> "/home/edvani/django-test/my_env/lib/python3.6/site-packages/django/apps/config.py",
>  
> line 198, in import_models
> self.models_module = import_module(models_module_name)
>   File "/usr/lib/python3.6/importlib/__init__.py", line 126, in 
> import_module
> return _bootstrap._gcd_import(name[level:], package, level)
>   File "", line 994, in _gcd_import
>   File "", line 971, in _find_and_load
>   File "", line 955, in 
> _find_and_load_unlocked
>   File "", line 665, in _load_unlocked
>   File "", line 674, in exec_module
>   File "", line 781, in get_code
>   File "", line 741, in 
> source_to_code
>   File "", line 219, in 
> _call_with_frames_removed
>   File "/home/edvani/django-test/djangoproject/polls/models.py", line 5
> question_text = models.CharField(max_length=200)
> ^
> IndentationError: expected an indented block
>
>
> I need help how to solve this??
>

-- 
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/1d1b8309-247d-4926-ab17-de6eb18b70a9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Problems with first program

2019-03-01 Thread Sam W
The error is very clear "IndentationError: expected an indented block" Use 
PyCharm IDE OR Visual Studio Code.
Also, never use Keyboard Spacebar for indentation , always use Tab for 
indentation. TO solve your problem take the question_text to the beginning 
of the line then hit the Tab once. 



On Thursday, February 28, 2019 at 5:14:33 PM UTC-6, Edvani Pascoal wrote:
>
> hey guys I'm beginner on django I never worked with this framework before 
> and then I've problems to started polls app this is the error:
> (my_env) root@ubuntu:~/django-test/djangoproject# python manage.py 
> runserver 192.168.184.202:8000
>
>
> Unhandled exception in thread started by  check_errors..wrapper at 0x7fa7af08b9d8>
> Traceback (most recent call last):
>   File 
> "/home/edvani/django-test/my_env/lib/python3.6/site-packages/django/utils/autoreload.py",
>  
> line 225, in wrapper
> fn(*args, **kwargs)
>   File 
> "/home/edvani/django-test/my_env/lib/python3.6/site-packages/django/core/management/commands/runserver.py",
>  
> line 109, in inner_run
> autoreload.raise_last_exception()
>   File 
> "/home/edvani/django-test/my_env/lib/python3.6/site-packages/django/utils/autoreload.py",
>  
> line 248, in raise_last_exception
> raise _exception[1]
>   File 
> "/home/edvani/django-test/my_env/lib/python3.6/site-packages/django/core/management/__init__.py",
>  
> line 337, in execute
> autoreload.check_errors(django.setup)()
>   File 
> "/home/edvani/django-test/my_env/lib/python3.6/site-packages/django/utils/autoreload.py",
>  
> line 225, in wrapper
> fn(*args, **kwargs)
>   File 
> "/home/edvani/django-test/my_env/lib/python3.6/site-packages/django/__init__.py",
>  
> line 24, in setup
> apps.populate(settings.INSTALLED_APPS)
>   File 
> "/home/edvani/django-test/my_env/lib/python3.6/site-packages/django/apps/registry.py",
>  
> line 112, in populate
> app_config.import_models()
>   File 
> "/home/edvani/django-test/my_env/lib/python3.6/site-packages/django/apps/config.py",
>  
> line 198, in import_models
> self.models_module = import_module(models_module_name)
>   File "/usr/lib/python3.6/importlib/__init__.py", line 126, in 
> import_module
> return _bootstrap._gcd_import(name[level:], package, level)
>   File "", line 994, in _gcd_import
>   File "", line 971, in _find_and_load
>   File "", line 955, in 
> _find_and_load_unlocked
>   File "", line 665, in _load_unlocked
>   File "", line 674, in exec_module
>   File "", line 781, in get_code
>   File "", line 741, in 
> source_to_code
>   File "", line 219, in 
> _call_with_frames_removed
>   File "/home/edvani/django-test/djangoproject/polls/models.py", line 5
> question_text = models.CharField(max_length=200)
> ^
> IndentationError: expected an indented block
>
>
> I need help how to solve this??
>

-- 
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/9d1cfb81-5305-4d3b-882b-8c99d8cae3f3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Problems with first program

2019-03-01 Thread Harryxon Ndegwa
The problem is with the indentation,the question_text field is wrongly
indented.ensure you have a python friendly IDE or text editor

On Fri, 1 Mar 2019 3:06 am bob gailer  On 2/28/2019 6:08 PM, Edvani Pascoal wrote:
> > hey guys I'm beginner on django I never worked with this framework
> > before and then I've problems to started polls app this is the error:
> >
> deleting most of the traceback since in this case it is not relevant.
> >   File "/home/edvani/django-test/djangoproject/polls/models.py", line 5
> > question_text = models.CharField(max_length=200)
> > ^
> > IndentationError: expected an indented block
> >
> Here is the head of models.py, as copied from the tutorial
>
> from django.db import models
>
>
> class Question(models.Model):
>  question_text = models.CharField(max_length=200)
>
> Your copy of that file is different. Statement that end in : must be
> followed by at least one indented line. These are known as "compound
> statements" (if, elif, else, while, for, try, except, finally, with).
>
> --
> Bob Gailer
>
>
> ---
> This email has been checked for viruses by Avast antivirus software.
> https://www.avast.com/antivirus
>
> --
> 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/580f4cd8-1d87-56a0-7548-c20e26e3e446%40gmail.com
> .
> 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 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/CAPqDb9NK6bLX80R1LXC6OCe5TM-bPB51u-6AwX1mhtSAPscgzw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Problems with first program

2019-02-28 Thread bob gailer

On 2/28/2019 6:08 PM, Edvani Pascoal wrote:
hey guys I'm beginner on django I never worked with this framework 
before and then I've problems to started polls app this is the error:



deleting most of the traceback since in this case it is not relevant.

  File "/home/edvani/django-test/djangoproject/polls/models.py", line 5
    question_text = models.CharField(max_length=200)
    ^
IndentationError: expected an indented block


Here is the head of models.py, as copied from the tutorial

from django.db import models


class Question(models.Model):
    question_text = models.CharField(max_length=200)

Your copy of that file is different. Statement that end in : must be 
followed by at least one indented line. These are known as "compound 
statements" (if, elif, else, while, for, try, except, finally, with).


--
Bob Gailer


---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus

--
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/580f4cd8-1d87-56a0-7548-c20e26e3e446%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


Problems with first program

2019-02-28 Thread Edvani Pascoal
hey guys I'm beginner on django I never worked with this framework before 
and then I've problems to started polls app this is the error:
(my_env) root@ubuntu:~/django-test/djangoproject# python manage.py 
runserver 192.168.184.202:8000


Unhandled exception in thread started by .wrapper at 0x7fa7af08b9d8>
Traceback (most recent call last):
  File 
"/home/edvani/django-test/my_env/lib/python3.6/site-packages/django/utils/autoreload.py",
 
line 225, in wrapper
fn(*args, **kwargs)
  File 
"/home/edvani/django-test/my_env/lib/python3.6/site-packages/django/core/management/commands/runserver.py",
 
line 109, in inner_run
autoreload.raise_last_exception()
  File 
"/home/edvani/django-test/my_env/lib/python3.6/site-packages/django/utils/autoreload.py",
 
line 248, in raise_last_exception
raise _exception[1]
  File 
"/home/edvani/django-test/my_env/lib/python3.6/site-packages/django/core/management/__init__.py",
 
line 337, in execute
autoreload.check_errors(django.setup)()
  File 
"/home/edvani/django-test/my_env/lib/python3.6/site-packages/django/utils/autoreload.py",
 
line 225, in wrapper
fn(*args, **kwargs)
  File 
"/home/edvani/django-test/my_env/lib/python3.6/site-packages/django/__init__.py",
 
line 24, in setup
apps.populate(settings.INSTALLED_APPS)
  File 
"/home/edvani/django-test/my_env/lib/python3.6/site-packages/django/apps/registry.py",
 
line 112, in populate
app_config.import_models()
  File 
"/home/edvani/django-test/my_env/lib/python3.6/site-packages/django/apps/config.py",
 
line 198, in import_models
self.models_module = import_module(models_module_name)
  File "/usr/lib/python3.6/importlib/__init__.py", line 126, in 
import_module
return _bootstrap._gcd_import(name[level:], package, level)
  File "", line 994, in _gcd_import
  File "", line 971, in _find_and_load
  File "", line 955, in _find_and_load_unlocked
  File "", line 665, in _load_unlocked
  File "", line 674, in exec_module
  File "", line 781, in get_code
  File "", line 741, in source_to_code
  File "", line 219, in 
_call_with_frames_removed
  File "/home/edvani/django-test/djangoproject/polls/models.py", line 5
question_text = models.CharField(max_length=200)
^
IndentationError: expected an indented block


I need help how to solve this??

-- 
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/5df4e07d-d178-45c5-b58f-c34d8d6fb7cd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.