Make sure your settings.py INSTALLED_APPS looks like this:

INSTALLED_APPS = [
    ...
    'rest_framework',
    'snippets',
]


On Tuesday, December 29, 2015 at 6:07:19 AM UTC-8, Oliver Cera wrote:
>
> Hi Guys!
>
> I'm new to python / django, but I'm trying to learn this framework you have.. 
>
> So as suggested on main page, I took the road for detailed tutorial.. however 
> I just take first steps and the code gives me problems..
>
> I wonder if is something with django version (1.9), something outdated on 
> that doc?
>
>
> http://www.django-rest-framework.org/tutorial/1-serialization/
>
> this is how far I can get
>
> Create the project (tutorial) ..OK
> Create the app (snippets) ..OK
> Add rest_framework and snippets to INSTALLED_APPS   ..OK
> add this to tutorial/urls.py file
>
> urlpatterns = [ url(r'^', include('snippets.urls')), ]
>
> .. OK ?
>
>
> Creating Model ..OK 
>
> the problem is shown when I try to run
>
> python manage.py makemigrations snippets
>
>
>
> My environments:
>
> MAC OS & Win 7 (no luck on both os)
> Python 2.7
> Django 1.9
>
> my tutorial/urls.py (where I think it may be the problem)
>
> from django.conf.urls import url, include
> from django.contrib import admin
>
> urlpatterns = [
>     url(r'^', include('snippets.urls')),
> ]
>
>
> any hint or link to read will be helpfull... I guess someone else is dealing 
> with this..
>
>
> I'm writing this on win7, this is the error it gave -> 
> http://pastebin.com/nxKw0i1h
>
> thanks for reading ;)
>
>
>
>
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django REST framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to