Re: Django restful project standalone

2018-09-20 Thread Jani Tiainen
Hi.

Could you also describe what are you trying to achieve? People might have
good solutions for you if you provide more detailed information.

to 20. syysk. 2018 klo 14.10 Peter Mudoko  kirjoitti:

> Hi guys am experimenting how i can use django restful framework in a
> standalone python project , i am trying to import from rest_framework
> import status
> from rest_framework.generics import GenericAPIView, from
> rest_framework.response import Response but this error is propping always
> how can i handle it considering its not a djangle project how can i hack it
>
>   File
> "/home/peter/.local/lib/python3.6/site-packages/django/conf/__init__.py",
> line 42, in _setup
> % (desc, ENVIRONMENT_VARIABLE))
> django.core.exceptions.ImproperlyConfigured: Requested setting
> INSTALLED_APPS, but settings are not configured. You must either define the
> environment variable DJANGO_SETTINGS_MODULE or call settings.configure()
> before accessing settings.
>
> --
> 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/db3f868d-81d3-4b94-9909-6e456ef5b6a5%40googlegroups.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/CAHn91of0KM7F%2B7OAQ71%2B57Qa3t315xo_q2%2BsOntJao5GDwNh7A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Django restful project standalone

2018-09-20 Thread farmankhan977


On Thursday, September 20, 2018 at 4:40:57 PM UTC+5:30, Peter Mudoko wrote:
>
> Hi guys am experimenting how i can use django restful framework in a 
> standalone python project , i am trying to import from rest_framework 
> import status
> from rest_framework.generics import GenericAPIView, from 
> rest_framework.response import Response but this error is propping always 
> how can i handle it considering its not a djangle project how can i hack it
>
>   File 
> "/home/peter/.local/lib/python3.6/site-packages/django/conf/__init__.py", 
> line 42, in _setup
> % (desc, ENVIRONMENT_VARIABLE))
> django.core.exceptions.ImproperlyConfigured: Requested setting 
> INSTALLED_APPS, but settings are not configured. You must either define the 
> environment variable DJANGO_SETTINGS_MODULE or call settings.configure() 
> before accessing settings.
>
>
https://stackoverflow.com/questions/15556499/django-db-settings-improperly-configured-error

please check link 

-- 
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/4a4e49d5-c225-4b5b-aaa4-64687699448d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.