t;
>> Hello,
>>
>> I hope this message finds you well. I wanted to let you know that I've
>> taken a look at the error message you shared:
>>
>> ```
>> Aug 25 12:28:30 AM ImportError: Couldn't import Django. Are you sure
>> it's inst
I wanted to let you know that I've
> taken a look at the error message you shared:
>
> ```
> Aug 25 12:28:30 AM ImportError: Couldn't import Django. Are you sure it's
> installed and available on your PYTHONPATH environment variable? Did you
> forget to acti
Hello,
I hope this message finds you well. I wanted to let you know that I've
taken a look at the error message you shared:
```
Aug 25 12:28:30 AM ImportError: Couldn't import Django. Are you sure it's
installed and available on your PYTHONPATH environment variable? Did you
forge
ImportError: cannot import name 'views' from 'it_training_platform'
for the above error please write like that:
import app_name from views
note:
we have two things project name and app_name when we are creating
Django project
That app_name import.
Thanks
On
On 23/12/2022 12.36, JOSEPH OCHELEBE O. wrote:
Am getting this errors bellow when i tried to run my Django project
from . import views
ImportError: cannot import name 'views' from 'it_training_platform'
(C:\Users\Dreams
Reality\Desktop\Django-project\
Am getting this errors bellow when i tried to run my Django project
from . import views
ImportError: cannot import name 'views' from 'it_training_platform'
(C:\Users\Dreams
Reality\Desktop\Django-project\it_training_platform\it_training_platform\__init__.py)
--
You r
Okay
On Thu, Sep 1, 2022, 4:21 PM Ashish Rawat
wrote:
> There is error in line number 3 you are importing the module from restapi
> but you should take that from model
>
> On Thu, Sep 1, 2022, 7:30 PM Pooja Kumari wrote:
>
>> Can anyone explain this error?
>>
>> --
>> You received this message
>From webapp.models import employee
On Thu, 1 Sep 2022, 7:02 pm Pooja Kumari, wrote:
> Can anyone explain this error?
>
> --
> 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, sen
>From . models import employees
Then use in serializer
On Thu, 1 Sep 2022, 19:02 Pooja Kumari, wrote:
> Can anyone explain this error?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving em
Understood.
Thank you very much
On Thu, Sep 1, 2022, 7:45 PM MAHESH KUMAR
wrote:
> You can write your serializers in 3rd line
>
> From .models import employees
>
> Thanks,
> Mahesh
>
> On Thu, Sep 1, 2022, 19:30 Pooja Kumari wrote:
>
>> Can anyone explain this error?
>>
>> --
>> You received t
Thanks again for the info.
On Thu, Sep 1, 2022 at 4:21 PM Ashish Rawat
wrote:
> There is error in line number 3 you are importing the module from restapi
> but you should take that from model
>
> On Thu, Sep 1, 2022, 7:30 PM Pooja Kumari wrote:
>
>> Can anyone explain this error?
>>
>> --
>> Yo
There is error in line number 3 you are importing the module from restapi
but you should take that from model
On Thu, Sep 1, 2022, 7:30 PM Pooja Kumari wrote:
> Can anyone explain this error?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" grou
>From where you're importing employees? Check that?
On Thu, 1 Sep, 2022, 7:31 pm Pooja Kumari, wrote:
> Can anyone explain this error?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving em
You can write your serializers in 3rd line
>From .models import employees
Thanks,
Mahesh
On Thu, Sep 1, 2022, 19:30 Pooja Kumari wrote:
> Can anyone explain this error?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe
at I get in the command prompt
>>
>> !*<<<(env) C:\Users\Documents\Learn
>> Python\django\my_django_work\my_django_work\urls.py", line 19, in
>> from hello.views import index
>> ImportError: cannot import name 'index' from 'hello.v
wser.
> This is the error message that I get in the command prompt
>
> !*<<<(env) C:\Users\Documents\Learn
> Python\django\my_django_work\my_django_work\urls.py", line 19, in
> from hello.views import index
> ImportError: cannot import name 'index
mes up in my browser.
> This is the error message that I get in the command prompt
>
> !*<<<(env) C:\Users\Documents\Learn
> Python\django\my_django_work\my_django_work\urls.py", line 19, in
> from hello.views import index
> ImportError: cannot import name &
k\urls.py", line 19, in
from hello.views import index
ImportError: cannot import name 'index' from 'hello.views'>>>!!
Thank you
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from
;>>>> admin.py
>>>>>> apps.py
>>>>>> cron.py
>>>>>> Forms.py
>>>>>>functions.py
>>>>>>models.py
>>>>>> urls.py
>>>>>>
0 AM Akinfolarin Stephen <
>>>>>> akinfolar...@gmail.com> wrote:
>>>>>>
>>>>>>> First I will like you to tell me the folder where test.py is and
>>>>>>> views.py
>>>>>>>
>>>>>>> On Fri, Oct 16,
20, 06:27 Salima Begum <
>>>>>> salim...@rohteksolutions.com> wrote:
>>>>>>
>>>>>>> Hi all,
>>>>>>>
>>>>>>> I have written test case for views for details page. Here is below
>>>>>>> code I have written
>>>>>>&
>>>>>
>>>>>> Hi all,
>>>>>>
>>>>>> I have written test case for views for details page. Here is below
>>>>>> code I have written
>>>>>>
>>>>>> ```
>>>>>> from django.te
t;>> from django.contrib.auth.models import User
>>>>> from pages.models import vk_customer
>>>>> from mixer.backend.django import mixer
>>>>> import pytest
>>>>>
>>>>> from pages.views import ProductDetails
>>
end('pages.vk_master_table')
>>>> path = reverse('detail', kwargs={'pk': 1516})
>>>> request = RequestFactory().get(path)
>>>> request.user = mixer.blend(vk_customer)
>>>>
>>>> response = P
es.vk_master_table')
>>>> path = reverse('detail', kwargs={'pk': 1516})
>>>> request = RequestFactory().get(path)
>>>> request.user = mixer.blend(vk_customer)
>>>>
>>>> response =
: 1516})
>>> request = RequestFactory().get(path)
>>> request.user = mixer.blend(vk_customer)
>>>
>>> response = ProductDetails(request, pk=1516)
>>> print(response)
>>> assert response.status_code == 200
>>> ```
27;pk': 1516})
>>> request = RequestFactory().get(path)
>>> request.user = mixer.blend(vk_customer)
>>>
>>> response = ProductDetails(request, pk=1516)
>>> print(response)
>>> assert response.status_
s(request, pk=1516)
>> print(response)
>> assert response.status_code == 200
>> ```
>> *This the error i am getting.*
>> ERROR
>> collecting pages/tests/test_views.py
>> __
er)
>
> response = ProductDetails(request, pk=1516)
> print(response)
> assert response.status_code == 200
> ```
> *This the error i am getting.*
> ____ ERROR
> collecting pages/tests/test_v
ting pages/tests/test_views.py
________
ImportError while importing test module
'H:\vikreya\mysite\pages\tests\test_views.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
c:\users\user\appdata\local\programs\p
init__.py", line 127, in
import_module
return _bootstrap._gcd_import(name[level:], package, level)
File
"E:\DjanjoWeb\acumen\env\lib\site-packages\django\db\backends\sqlite3\base.py",
line 14, in
from sqlite3 import dbapi2 as Database
File "C:\Users\kalag\A
Hello guys,
I am very new in the Django and python and I am trying to write a
barcode-reader code.
my requirements.txt file is as follows
Django>=2.2,<3.0
psycopg2>=2.7,<3.0
Pillow>=6.1.0
pyzbar==0.1.8
numpy==1.16.4
django-sslserver==0.20
but when I try to import the prybar it raises an error
Hi Dave,
This is the django users mailing list - not the django dev. I think you
would get better help in the django dev mailing list.
Also - are you sure you want to work on developing django, and not just use
django?
Regards,
Andréas
Den ons 3 juli 2019 kl 16:20 skrev Dave Ladeji :
> Pleas
gt;
>>> urlpatterns = [
>>> path('boadts/', include ('boadts.urls')),
>>> path('admin/',admin.site.urls),
>>> ]
>>> File "/home/myproject/myproject/myproject/urls.py", line 2, in
>>> from
#x27;admin/',admin.site.urls),
>> ]
>> File "/home/myproject/myproject/myproject/urls.py", line 2, in
>> from django.conf.urls import include, path
>> ImportError: cannot import name path
>>
>> please tell.
>>
>> On Tue, 4 Dec 2018
ts/', include ('boadts.urls')),
> path('admin/',admin.site.urls),
> ]
> File "/home/myproject/myproject/myproject/urls.py", line 2, in
> from django.conf.urls import include, path
> ImportError: cannot import name path
>
> please tell.
ject/myproject/urls.py", line 2, in
from django.conf.urls import include, path
ImportError: cannot import name path
please tell.
On Tue, 4 Dec 2018 at 19:40, C. Kirby wrote:
> from django.conf.urls import include
>
>
> you are missing conf
>
> On Tuesday, December 4, 2018 at
from django.conf.urls import include
you are missing conf
On Tuesday, December 4, 2018 at 8:21:39 AM UTC-5, tal...@gmail.com wrote:
>
> plz advise...
>
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and stop re
plz advise...
--
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@google
del Leon
>> fi...@flm.cat
>> Phone: +34 622 26 44 92
>> GPG: 2585 30C2 E3C7 7151 0864 946B 7423 F94B 5753 5FC7
>>
>> El 17 de mayo de 2018 a las 20:56:56, Tristan Demot (
>> cont...@journal-immo.com) escribió:
>>
>> Hello,
>>
>> I use
13
Gjango 1.11.13
Creating the Polls app OK
Write your first view OK
But python manage runserver don't work
With : python -Wall manage.py test
ImportError : cannot import name include
If you want to see something, ask me
Many thanks
--
You received th
manage runserver don't work
With : python -Wall manage.py test
ImportError : cannot import name include
If you want to see something, ask me
Many thanks
--
You received this message because you are subscribed to the
Google Groups "Django users" group.
5FC7
>
> El 17 de mayo de 2018 a las 20:56:56, Tristan Demot (
> cont...@journal-immo.com) escribió:
>
> Hello,
>
> I use docs.djangoproject.co/en/2.0
> Python 2 7 13
> Gjango 1.11.13
>
> Creating the Polls app OK
> Write your first view OK
> But python manage runserver d
.djangoproject.co/en/2.0
> Python 2 7 13
> Gjango 1.11.13
>
> Creating the Polls app OK
> Write your first view OK
> But python manage runserver don't work
> With : python -Wall manage.py test
> ImportError : cannot import name include
> If you want to see something
Hello,
I use docs.djangoproject.co/en/2.0 <http://docs.djangoproject.co/en/2.0>
Python 2 7 13
Gjango 1.11.13
Creating the Polls app OK
Write your first view OK
But python manage runserver don't work
With : python -Wall manage.py test
ImportError : cannot import name inc
smartphone.From: Tristan DemotSent: Friday 18 May 2018 00:27To: Django usersReply To: django-users@googlegroups.comSubject: ImportError : cannot import name includeHello, I use docs.djangopro
tan Demot :
>
> Hello,
>
> I use docs.djangoproject.co/en/2.0
> Python 2 7 13
> Gjango 1.11.13
>
> Creating the Polls app OK
>
> Write your first view OK
>
> But python manage runserver don't work
> With : python -Wall manage.py test
>
> Impo
(
cont...@journal-immo.com) escribió:
Hello,
I use docs.djangoproject.co/en/2.0
Python 2 7 13
Gjango 1.11.13
Creating the Polls app OK
Write your first view OK
But python manage runserver don't work
With : python -Wall manage.py test
ImportError : cannot import name include
If you want t
Hello,
I use docs.djangoproject.co/en/2.0
Python 2 7 13
Gjango 1.11.13
Creating the Polls app OK
Write your first view OK
But python manage runserver don't work
With : python -Wall manage.py test
ImportError : cannot import name include
If you want to see something, ask me
Many t
path
>>>
*[No error]*
And this is an example with Django v1.11
>>> from django import get_version
>>> get_version()
*'1.11.13' *
>>> from django.urls import include, urls
Traceback (most recent call last):
File "", line 1, in
*ImportError: ca
__import__(name)
File "C:\Users\gkfka\PycharmProjects\django\cafe\mysite\mysite\urls.py",
line 17, in
from django.urls import include, path
ImportError: cannot import name include
--
You received this message because you are subscribed to the Google Groups
"Django use
Hi,
I agree with Samuel Muiruri, your app definition in settings.py is
incorrect.
try this:
INSTALLED_APPS = [ ... #'DjangoRestfulServer', #remove there is no need
toimport the main project 'main', #no need for substantiating an app ]
On Friday, April 13, 2018 at 8:04:51 PM UTC+5:30, Артём Ор
try this
INSTALLED_APPS = [
...
#'DjangoRestfulServer', #remove you don't import the main project
'main', #no need for substanciating an app
]
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and stop r
Hello!
Django does not see application created with *django-admin startapp main*.
./DjangoRestfulServer/
├── __init__.py
├── main
│ ├── admin.py
│ ├── apps.py
│ ├── __init__.py
│ ├── models.py
│ ├── __pycache__
│ │ ├── admin.cpython-35.pyc
│ │ ├── __init__.cpython-35.pyc
│
: PASCUAL Eric
Cc: django-users@googlegroups.com
Subject: Re: importError: Count Not import Django inside Virtualenv
Hi Eric,
Le 2018-02-14 à 03:44, PASCUAL Eric a écrit :
Hi,
Hard to say without knowing the exact context, but my gut feeling is that
you've modified a system wide library
From: django-users@googlegroups.com on behalf
of tango ward
Sent: Wednesday, February 14, 2018 10:09:51 AM
To: django-users@googlegroups.com
Subject: Re: importError: Count Not import Django inside Virtualenv
that's odd. Whenever I test a pacakge, it's always installe
like this... ;-)
Cheers,
Etienne
*From:* django-users@googlegroups.com
on behalf of tango ward
*Sent:* Wednesday, February 14, 2018 3:40:04 AM
*To:* django-users@googlegroups.com
*Subject:* Re: importError: Count Not imp
for projects
> related libs, for the same reasons.
>
>
> Eric
> --
> *From:* django-users@googlegroups.com on
> behalf of tango ward
> *Sent:* Wednesday, February 14, 2018 3:40:04 AM
> *To:* django-users@googlegroups.com
> *Subject:* Re: importError: Count Not impor
_
From: django-users@googlegroups.com on behalf
of tango ward
Sent: Wednesday, February 14, 2018 3:40:04 AM
To: django-users@googlegroups.com
Subject: Re: importError: Count Not import Django inside Virtualenv
Hi Eric,
I tried what you suggested and it works! I was just wondering why my exi
quot;manage.py", line 8, in
> from django.core.management import execute_from_command_line
> ModuleNotFoundError: No module named 'django'
>
> The above exception was the direct cause of the following exception:
>
> Traceback (most recent call last):
> Fi
following exception:
Traceback (most recent call last):
File "manage.py", line 14, in
) from exc
ImportError: Couldn't import Django. Are you sure it's installed and
available on your PYTHONPATH environment variable? Did you forget to
activate a virtual environment?
@Jaso
ated then.
Best.
Eric
From: django-users@googlegroups.com on behalf
of tango ward
Sent: Tuesday, February 13, 2018 9:43:45 PM
To: django-users@googlegroups.com
Subject: importError: Count Not import Django inside Virtualenv
Hi,
I want to seek some advice about the error.
if pip freeze doesn't include django in the output, then the django package
is not installed in the virtualenv. are you sure the virtualenv was active
when you installed django?
also, remember that if you installed latest django, eg *pip install django*,
it won't install for python2 venvs.
On
Hi,
I want to seek some advice about the error. All of my pet projects in my
desktop are getting the same error even though virtualenv is activated. I
can confirm that when I started playing around with the projects, I have
installed Django inside virtualenv without using "sudo". Now, I can't run
the error, and the whole stack trace is further below.
File
"/home/ec2-user/green-here/www.oxfamamerica.org/venv/www/local/lib/python2.7/dist-packages/imagekit/__init__.py"
, line 2, in
from . import conf
ImportError: cannot import name conf
This doesn't make any sense, b
Is it possible you create your virtual environments
with global site-packages?
>From what I'm seeing this is caused primarily by
version mismatches of the six library and using
OS site-packages with virtualenv would certainly
do it as setuptools and pip both use six.
The difference with 1.10/1.11
Hi Melvyn,
Renaming MIDDELWARE_CLASSES doesn't help either.
These are the requirements I have:
django==1.10.5
djangorestframework
markdown
django-filter
django-jinja
pytest
factory_boy
fabric3
pytest-django
feedparser==5.2.1
pytz
PyYAML
lxml
requests
django-extensions
Werkzeug
django-cors-he
Rename MIDDLEWARE_CLASSES to
MIDDLEWARE in settings to see if that changes anything.
If not, remove one by one (except static). There are some changes to
the static files middleware [1], but I can't really relate that to
your error.
Is there anything in your project requirements that also uses six
If I turn off debug mode, it gives me 500 error and showing the same stack
trace in the console.
I also tried 1.11.4, still the same error.
On Mon, Sep 4, 2017 at 2:33 AM, Raffaele Salmaso
wrote:
> On Sun, Sep 3, 2017 at 4:26 PM, Derek Zeng wrote:
>>
>> When I use django==1.10.7, this does not
On Sun, Sep 3, 2017 at 4:26 PM, Derek Zeng wrote:
>
> When I use django==1.10.7, this does not happen.
> When I use django==1.11a1 this happens.
>
Why 1.11a1? Current is 1.11.4
--
| Raffaele Salmaso
| https://salmaso.org
| https://bitbucket.org/rsalmaso
| https://github.com/rsalmaso
--
You rec
ptured when i
> was just debugging it in 3.5.
>
> On Sun, Sep 3, 2017 at 2:55 PM, James Schneider
> wrote:
>>
>>
>>
>> File
>> "/Users/coderek/Documents/projects/py3.5/lib/python3.5/site-packages/django/contrib/staticfiles/storage.py",
>> line
torage.py",
> line 21, in
> from django.utils.six.moves import range
> ImportError: cannot import name 'range'
>
>
> Are you sure you're using 3.6.2? Do you have another virtualenv with 3.5
> and no Django installed?
>
> -James
>
> --
> Y
File
"/Users/coderek/Documents/projects/py3.5/lib/python3.5/site-packages/django/contrib/staticfiles/storage.py",
line 21, in
from django.utils.six.moves import range
ImportError: cannot import name 'range'
Are you sure you're using 3.6.2? Do you have another v
l = self.url(context)
File
"/Users/coderek/Documents/projects/py3.5/lib/python3.5/site-packages/django/templatetags/static.py",
line 102, in url
return self.handle_simple(path)
File
"/Users/coderek/Documents/projects/py3.5/lib/python3.5/site-packages/django/templatetags/static.py",
x.moves import range, ImportError: cannot import name
> 'range'
Really not sure why it has this weird error. I'm using python 3.6.2
Any help is appreciated!
Is the referenced error coming from code that you wrote?
There's a comma at the end of the import line, which
Hi,
Today I tried to install my django project on a new mac computer. I used
virutalenv to setup the packages.
After I start the app by running './mange.py runserver' and access the home
page I got the error
from django.utils.six.moves import range, ImportError: cannot import name
b/__init__.py", line
> 126, in import_module
> return _bootstrap._gcd_import(name[level:], package, level)
> File "", line 986, in _gcd_import
> File "", line 969, in _find_and_load
> File "", line 956, in _find_and_load_unlocked
> ImportError:
File "", line 969, in _find_and_load
File "", line 956, in _find_and_load_unlocked
ImportError: No module named 'archive.settings'
If I had to guess, you're missing the settings.py file in the root of your
Django project. That should have been created b
mod = importlib.import_module(self.SETTINGS_MODULE)
File "/var/www/project/venv/lib64/python3.5/importlib/__init__.py", line
126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 986, in _gcd_import
File "", line 969
I WENT ALMOST CRAZY thanx a lot !!! ;)
Τη Τρίτη, 12 Αυγούστου 2014 - 12:19:34 μ.μ. UTC+3, ο χρήστης ngangsia
akumbo έγραψε:
>
> i have had this same erroe too but it happed that i include instead the
> module class name in the settings.py file
>
> make sure u are having the name of the app in th
, in execute*
>
> *django.setup()*
>
> * File "/Library/Python/2.7/site-packages/django/__init__.py", line 22,
> in setup*
>
> * configure_logging(settings.LOGGING_CONFIG, settings.LOGGING)*
>
> * File "/Library/Python/2.7/site-packages/django/uti
gement/__init__.py", line
> 341, in execute*
>
> *django.setup()*
>
> * File "/Library/Python/2.7/site-packages/django/__init__.py", line 22, in
> setup*
>
> *configure_logging(settings.LOGGING_CONFIG, settings.LOGGING)*
>
> * File "/Library/Pytho
G)*
* File "/Library/Python/2.7/site-packages/django/utils/log.py", line 69,
in configure_logging*
*logging_config_func = import_string(logging_config)*
* File "/Library/Python/2.7/site-packages/django/utils/module_loading.py",
line 27, in import_string*
*six.reraise(Impor
Check this post
<http://stackoverflow.com/questions/22011791/importerror-no-module-named-views>
On Thursday, December 20, 2012 at 6:57:42 PM UTC+5:30, djangobie wrote:
>
> Hi, I have just started practicing a tutorial for buidling a basic blog (
> http://www.djangorocks.com/t
jango 1.10.
> I have run into a few libraries that needed patterns() removing which I've
> done and raised issues with the appropriate owners, but now have run into
> this:
>
> django.template.library.InvalidTemplateLibrary: Invalid template library
>> spe
into
this:
django.template.library.InvalidTemplateLibrary: Invalid template library
> specified. ImportError raised when trying to load
> 'treebeard.templatetags.admin_tree_list': cannot import name 'patterns'
>
I've been through treebeard and the django backend but can't seem to find
any refe
ine
> 90, in create
> module = import_module(entry)
> File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
> __import__(name)
> ImportError: No module named south
>
> --
> You received this message because you are subscribed to th
", line
90, in create
module = import_module(entry)
File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
__import__(name)
ImportError: No module named south
--
You received this message because you are subscribed to the Google Groups
"Django use
On Sunday, August 11, 2013 at 5:00:54 PM UTC+5:30, alekto.a...@gmail.com
wrote:
>
> Hi,
> am using django==1.5.1 and south==0.8.2, as well as pip-1.1-py2.7.egg
> (python 2.7)
> I keep getting this error: ImportError: No module named south, when I run:
> sudo python manage.p
jango/utils/module_loading.py", line
74, in autodiscover_modules import_module('%s.%s' % (app_config.name,
module_to_search)) File "/usr/lib/python2.7/importlib/__init__.py", line 37, in
import_module __import__(name) ImportError: No module named admin
Using print_st
jango/utils/module_loading.py",
line 74, in autodiscover_modules
import_module('%s.%s' % (app_config.name, module_to_search))
File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
__import__(name)
ImportError: No module named admin
Using print_st
On Jan 25, 2016 1:05 PM, "moon jo" wrote:
>
> Using django 1.6.10
> I finished the polls tutorial and tried to create my own project.
> I tried to runserver and it gives me the import error. But it's a blank
project, haven't added anything in the settings.
> When I do import settings form django.c
if its a blank project you don't have a polls app yet,so... why you put
your polls app there?
Rafael E. Ferrero
2016-01-25 16:14 GMT-03:00 moon jo :
> Using django 1.6.10
> I finished the polls tutorial and tried to create my own project.
> I tried to runserver and it gives me the import error.
Using django 1.6.10
I finished the polls tutorial and tried to create my own project.
I tried to runserver and it gives me the import error. But it's a blank
project, haven't added anything in the settings.
When I do import settings form django.conf and print
settings.INSTALLED_APPS, it prints th
ome/gary/workspace/TangoWithDjango/local/lib/python2.7/site-packages/django/utils/module_loading.py",
line 26, in import_string
module = import_module(module_path)
File "/usr/lib/python2.7/importlib/__init__.py", line 37, in
import_module
__import__(name)
oWithDjango/local/lib/python2.7/site-packages/django/core/handlers/base.py",
>
>
> line 44, in load_middleware
> mw_class = import_string(middleware_path)
>File
> "/home/gary/workspace/TangoWithDjango/local/lib/python2.7/site-packages/django/utils/module_loading.p
/python2.7/site-packages/django/utils/module_loading.py",
line 26, in import_string
module = import_module(module_path)
File "/usr/lib/python2.7/importlib/__init__.py", line 37, in
import_module
__import__(name)
ImportError: No module named security
[05/Jan/2016 00:21:51] &quo
012 05:27:42 UTC-8, djangobie wrote:
>>
>> Hi, I have just started practicing a tutorial for buidling a basic blog
>> (
>> http://www.djangorocks.com/tutorials/how-to-create-a-basic-blog-in-django/starting-your-application.html
>> )
>>
>> Did exactly the same (e
pdates. Out of sudden the
commands "python manage.py ..." stopped working (to be precise I was trying
to use python manage.py runserver command), and I was getting ImportError
(a long stack trace with info Import by filename is not supported).
So I moved my project to trash and trie
00:33:29 UTC-4, Neto a écrit :
I'm trying to use form wizard but when I put
'django.contrib.formtools', in INSTALLED_APPS appear on my
terminal 'ImportError: No module named formtools'
--
You received this message because you are subscribed to the Go
1 - 100 of 606 matches
Mail list logo