Re: ImportError:

2022-12-23 Thread Raeesh Rayeen
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 Fri, 23 Dec 2022 at

Re: ImportError:

2022-12-23 Thread 'Kasper Laudrup' via Django users
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

Re: ImportError: cannot import name 'employees' from 'rest_framework'

2022-09-01 Thread Luqman Lawal
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

Re: ImportError: cannot import name 'employees' from 'rest_framework'

2022-09-01 Thread M Adnan
>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,

Re: ImportError: cannot import name 'employees' from 'rest_framework'

2022-09-01 Thread Shams Ulhaq
>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

Re: ImportError: cannot import name 'employees' from 'rest_framework'

2022-09-01 Thread Pooja Kumari
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

Re: ImportError: cannot import name 'employees' from 'rest_framework'

2022-09-01 Thread subin
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? >> >> -- >>

Re: ImportError: cannot import name 'employees' from 'rest_framework'

2022-09-01 Thread Ashish Rawat
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"

Re: ImportError: cannot import name 'employees' from 'rest_framework'

2022-09-01 Thread Akash Kundoo
>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

Re: ImportError: cannot import name 'employees' from 'rest_framework'

2022-09-01 Thread MAHESH KUMAR
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

Re: ImportError: cannot import name 'ProductDetails' from 'pages.views'

2020-10-16 Thread Salima Begum
Thank you for your reply I did that again I am getting this error ___ TestViews.test_product_detail_authenticated klass = , args = (), kwargs = {'pk': 22}, queryset = ]> def

Re: ImportError: cannot import name 'ProductDetails' from 'pages.views'

2020-10-16 Thread Shahprogrammer
You have created a class named onClickSearch with method ProductDetails . So you can't import a method of a class. To use the method you need to import class. So in place of importing from pages.views import ProductDetails in test_views.py do from pages.views import onClickSearch & then

Re: ImportError: cannot import name 'ProductDetails' from 'pages.views'

2020-10-16 Thread Salima Begum
Inside pages folder I already have views.py Thanks ~salima On Fri, Oct 16, 2020 at 1:28 PM Akinfolarin Stephen < akinfolarinsteph...@gmail.com> wrote: > The problem is you are trying to import views from where you have not > created it I guess the page is a folder then create the views.py

Re: ImportError: cannot import name 'ProductDetails' from 'pages.views'

2020-10-16 Thread Akinfolarin Stephen
The problem is you are trying to import views from where you have not created it I guess the page is a folder then create the views.py inside of it On Fri, Oct 16, 2020, 08:10 Salima Begum wrote: > urls.py > > path('ProductDetails/', views.onClickSearch.ProductDetails, >

Re: ImportError: cannot import name 'ProductDetails' from 'pages.views'

2020-10-16 Thread Salima Begum
urls.py path('ProductDetails/', views.onClickSearch.ProductDetails, name='ProductDetails'), views.py class onClickSearch(): def ProductDetails(request, id): try: email = request.session.get('email') proddtls = vk_master_table.objects.filter(id=id).first()

Re: ImportError: cannot import name 'ProductDetails' from 'pages.views'

2020-10-16 Thread Shahprogrammer
Can you post your code of views.py On Friday, 16 October, 2020 at 12:27:19 pm UTC+5:30 sali...@rohteksolutions.com wrote: > Hi all, > vikreya > mysite > .cache > .idea >.pytest_cache > logs > media > mysite > > __init__.py >

Re: ImportError: cannot import name 'ProductDetails' from 'pages.views'

2020-10-16 Thread Dhwanil Shah
Can you post your views.py code On Fri, 16 Oct 2020 at 12:26, Salima Begum wrote: > Hi all, > vikreya > mysite > .cache > .idea >.pytest_cache > logs > media > mysite > __init__.py >manage.py >settings.py >

Re: ImportError: cannot import name 'ProductDetails' from 'pages.views'

2020-10-16 Thread Salima Begum
Hi all, vikreya mysite .cache .idea .pytest_cache logs media mysite __init__.py manage.py settings.py urls.py wsgi.py pages .cache migrations static

Re: ImportError: cannot import name 'ProductDetails' from 'pages.views'

2020-10-16 Thread Salima Begum
Hi all, my project structure vikreya mysite .cache .idea .pytest_cache logs media mysute __init__.py manage.py settings.py urls.py wsgi.py pages .cache migrations static templates tests test_views.py __init__.py admin.py apps.py cron.py Forms.py functions.py models.py urls.py views.py On Fri,

Re: ImportError: cannot import name 'ProductDetails' from 'pages.views'

2020-10-16 Thread Salima Begum
Hi @Akinfolarin Stephen, On Fri, Oct 16, 2020 at 11:10 AM Akinfolarin Stephen < akinfolarinsteph...@gmail.com> wrote: > First I will like you to tell me the folder where test.py is and views.py > > On Fri, Oct 16, 2020, 06:27 Salima Begum > wrote: > >> Hi all, >> >> I have written test case

Re: ImportError: cannot import name 'ProductDetails' from 'pages.views'

2020-10-15 Thread Akinfolarin Stephen
First I will like you to tell me the folder where test.py is and views.py On Fri, Oct 16, 2020, 06:27 Salima Begum wrote: > Hi all, > > I have written test case for views for details page. Here is below code I > have written > > ``` > from django.test import RequestFactory > from django.urls

Re: ImportError: cannot import name 'RemovedInDjango40Warning'

2019-07-04 Thread Andréas Kühne
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 : >

Re: ImportError : cannot import name include

2018-05-18 Thread James Farris
If you are not using a virtual env, did you install pip3? If so, since you are using puthon3 -V to get that python version, try running $ pip3 install django And see if you get a different result I think what is happening is when you run pip install it’s referencing another python version, not

Re: ImportError : cannot import name include

2018-05-18 Thread Journal-Immo
Thank you for all your answers I know my problem with version So for me it's very strange... python3 -V Python 3.5.3 pip install Django==2.0.5 Collecting Django==2.0.5... Could nt find a version... 1.2.1, 1.2.2 etc and the last one 1.11.13 No matching distribution found fot Django==2.0.5

Re: ImportError : cannot import name include

2018-05-18 Thread Gerald Brown
Another option to get the current version of Django is to create a file called requirements.txt.  In this file enter django on a line, and other requirements on other lines.  You can also specify a specific version with django==1.11 or any other version by changing the number after the ==. If

Re: ImportError : cannot import name include

2018-05-18 Thread Fidel Leon
You need to follow the CORRECT tutorial: https://docs.djangoproject.com/en/1.11/ In the urls.py file, instead of: from django.contrib import adminfrom django.urls import include, path urlpatterns = [ path('polls/', include('polls.urls')), path('admin/', admin.site.urls),] you need

Re: ImportError : cannot import name include

2018-05-18 Thread Daniel Hepper
Your problem is right here: > django-admin --version 1.11.13 You are using Django 1.11. The documentation you are using refers to a newer version of Django, version 2.0. Use the right documentation for your version of Django: https://docs.djangoproject.com/en/1.11/ You are seeing this specific

Re: ImportError : cannot import name include

2018-05-18 Thread Journal-Immo
Thank But (I use debian 9) Apt-get update Apt-get install python python3 python-django django-admin --version 1.11.13 Where is the problem ? Le 17/05/2018 à 21:01, Fidel Leon a écrit : You are using the wrong combination of Django and tutorial: “include” is available in Django 2 and up,

Re: ImportError : cannot import name include

2018-05-18 Thread Pranay reddy
From which package you have imported "include "

Re: ImportError : cannot import name include

2018-05-17 Thread Daniel Hepper
You are using Django 1.11 with the tutorial written for Django 2.0. Therr should be a version picker on the bottom right of the tutorial. You are seeing this error because the way to import ‚include’ has changed from 1.11 to 2.0 Hope that helps, Daniel > Am 17.05.2018 um 19:34 schrieb Tristan

Re: ImportError : cannot import name include

2018-05-17 Thread Fidel Leon
You are using the wrong combination of Django and tutorial: “include” is available in Django 2 and up, but you’re using Django 1.11. Fidel 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 (

Re: importError

2018-05-04 Thread Fidel Leon
>From the look of things, it seems: -You're following the Django v2.0 tutorial. -You have installed a Django v1 version. This is an example with Django v2: >>> import django >>> django.get_version() *'2.0.5' * >>> from django.urls import include, path >>> *[No error]* And this is an example

Re: ImportError: No module named 'main'

2018-04-14 Thread shubham jhandei
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, Артём

Re: ImportError: No module named 'main'

2018-04-14 Thread Samuel Muiruri
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

Re: importError: Count Not import Django inside Virtualenv

2018-02-14 Thread PASCUAL Eric
ary 14, 2018 11:07:07 AM To: 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

Re: importError: Count Not import Django inside Virtualenv

2018-02-14 Thread PASCUAL Eric
From: django-users@googlegroups.com <django-users@googlegroups.com> on behalf of tango ward <tangowar...@gmail.com> 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

Re: importError: Count Not import Django inside Virtualenv

2018-02-14 Thread Etienne Robillard
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 existing pet projects have the same problem? On Wed, Feb 14, 2018 at 10:13 AM, tango ward <tangowar...@gmail.com <mailto:tan

Re: importError: Count Not import Django inside Virtualenv

2018-02-14 Thread tango ward
> related libs, for the same reasons. > > > Eric > -- > *From:* django-users@googlegroups.com <django-users@googlegroups.com> on > behalf of tango ward <tangowar...@gmail.com> > *Sent:* Wednesday, February 14, 2018 3:40:04 AM > *To:* dja

Re: importError: Count Not import Django inside Virtualenv

2018-02-14 Thread PASCUAL Eric
: django-users@googlegroups.com <django-users@googlegroups.com> on behalf of tango ward <tangowar...@gmail.com> 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 y

Re: importError: Count Not import Django inside Virtualenv

2018-02-13 Thread tango ward
Hi Eric, I tried what you suggested and it works! I was just wondering why my existing pet projects have the same problem? On Wed, Feb 14, 2018 at 10:13 AM, tango ward wrote: > Hi, > > The error message that I am getting is: > > Traceback (most recent call last): >

Re: importError: Count Not import Django inside Virtualenv

2018-02-13 Thread tango ward
Hi, The error message that I am getting is: Traceback (most recent call last): File "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:

Re: importError: Count Not import Django inside Virtualenv

2018-02-13 Thread PASCUAL Eric
Hi Jarvis, Can you provide the error messages trace ? It can greatly help understanding what's happening. If you haven't already done this, try to restart from a fresh new virtualenv inside which you'll install Django and the additional packages you've added (if any). Then restore a copy of

Re: importError: Count Not import Django inside Virtualenv

2018-02-13 Thread Jason
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.

Re: ImportError while starting django server

2017-02-02 Thread Tim Graham
It seems like your Python install might be broken. Does this import work in a Python shell: >>> from logging.config import dictConfig On Thursday, February 2, 2017 at 7:12:38 AM UTC-5, Parth Shah wrote: > > *Folks,* > > *I was following the tutorial here >

Re: ImportError while starting django server

2017-02-02 Thread Antonis Christofides
Hi, the --version option of the "python" command shows you the version of Python, not of Django. The -m option doesn't merely import the module you specify, it imports it and executes it, and Django isn't designed to do this. So the way to check its version the one you showed first. If you want

Re: ImportError at/ No module name

2016-10-01 Thread Aravind S
Check this post 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 ( >

Re: ImportError: No module named south

2016-05-20 Thread Frank Wiles
>From the looks of it, you need to install the requirements for RatticDB. There are 2 setups for MySQL or PostgreSQL listed here https://github.com/tildaslash/RatticWeb For the PG option you'd just run: pip intall -r requirements-pgsql.txt And it will install all of the necessary PIP

Re: ImportError: no module named polls

2016-01-25 Thread James Schneider
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

Re: ImportError: no module named polls

2016-01-25 Thread Rafael E. Ferrero
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

Re: ImportError: No module named security(SOLVED)

2016-01-04 Thread Gary Roach
Dead On knbk. I commented out the security line and the problem when poof. Thank you. Gary R. On 01/04/2016 06:29 PM, knbk wrote: Seems like you have SecurityMiddleware in your middleware settings, which wasn't added until 1.8. If you started your project on 1.8+. your default settings file

Re: ImportError: No module named security

2016-01-04 Thread knbk
Seems like you have SecurityMiddleware in your middleware settings, which wasn't added until 1.8. If you started your project on 1.8+. your default settings file would include the new middleware and cause this error on 1.7. On Tuesday, January 5, 2016 at 2:56:51 AM UTC+1, Gary Roach wrote: > >

Re: ImportError at/ No module name

2015-11-07 Thread Scott Anderson
We just tripped across something similar here as well. The person doing the tutorial had flipped the 'startup' and 'put "blog" in the INSTALLED_APPS' steps of the tutorial. She commented out 'blog' from INSTALLED_APPS and startapp worked as intended. -scott On Sunday, August 11, 2013 at

Re: ImportError

2015-02-18 Thread Petar Pilipovic
Ok, I will work on it as soon as posible, tnx for your help. On Wednesday, February 18, 2015, aRkadeFR wrote: > > On 02/18/2015 07:17 AM, Petar Pilipovic wrote: > > aRkadeFR I have one other question regarding urls.py. I got this error when I am trying to go from contact or

Re: ImportError

2015-02-18 Thread aRkadeFR
On 02/18/2015 07:17 AM, Petar Pilipovic wrote: aRkadeFR I have one other question regarding urls.py. I got this error when I am trying to go from contact or about to home page. Using the URLconf defined in |tryDjango.urls|, Django tried these URL patterns, in this order: 1. ^$

Re: ImportError

2015-02-17 Thread Petar Pilipovic
aRkadeFR I have one other question regarding urls.py. I got this error when I am trying to go from contact or about to home page. Using the URLconf defined in tryDjango.urls, Django tried these URL patterns, in this order: 1. ^$ [name='home'] 2. ^about/$ [name='about'] 3. ^contact/$

Re: ImportError

2015-02-17 Thread Petar Pilipovic
Hello aRkadeFR. I have solved mine problem, I was working whit Python 2.X here, and like you recommended I have done some absolute import. from forms import contactForm , and that solved it. There was one other error, mine base.html did not render mine block content, because I did not defined

Re: ImportError

2015-02-17 Thread aRkadeFR
Two different problems here. For your import of contactForm, please try the relative import like: from contact.forms import contactForm > contact is your app name try the (absolute_import)[1] too if you're python2. [1] https://docs.python.org/2/library/__future__.html Let us know if this

Re: ImportError

2015-02-17 Thread Petar Pilipovic
Maybea this can help you, a bref info : I made a contact app, I have defined app url in mine url root project, then i made a forms.py file, i have defined form in it, then i have made contact.html where I have defined contact.html form which mine app will render, I have then go to views.py an

Re: ImportError

2015-02-17 Thread Petar Pilipovic
Hello, I can not do it wright now I am not at home. As for mine forms.py, it is in mine contact app. I have two apps in mine root project, one off them is contact. I will send you more info as soon as posible. Tank you. On Tuesday, February 17, 2015, aRkadeFR wrote: > Hello

Re: ImportError

2015-02-17 Thread aRkadeFR
Hello :) Can you dump us the layout of your files? Where is your forms.py? Thanks On 02/17/2015 06:36 AM, Petar Pilipovic wrote: Hello all, I am trying to build and e_commerc django app, but I have encounter an confusing error. Mine Error is: | Environment: Request Method: GET Request URL:

Re: ImportError: No module named check_constraints

2015-01-14 Thread Collin Anderson
Hi, Yes, a full traceback would be helpful, if you can get it. If it's a manage.py commany, you may need to use --traceback. Collin On Tuesday, January 13, 2015 at 5:38:47 AM UTC-5, Jenefa Jeyaraj wrote: > > ImportError: No module named check_constraints > > -- You received this message

Re: ImportError: No module named check_constraints

2015-01-13 Thread Babatunde Akinyanmi
I don't think you are going to get any helpful replies with that kind of statement? On 13 Jan 2015 13:04, "Jenefa Jeyaraj" wrote: > ImportError: No module named check_constraints > > -- > You received this message because you are subscribed to the Google Groups > "Django

Re: ImportError: cannot import name 'GEOSException'

2014-11-21 Thread jogaserbia
Hi All, Thanks very much for the help. I managed to figure it out with tips for both of you. I am not sure exactly what helped finally fix it but: 1) I changed my python version from 64 bit to 32 bit 2) The script in that updated the path variables were pretty messed up, so I manually

Re: ImportError: cannot import name 'GEOSException'

2014-11-20 Thread Tom Lockhart
> Thanks for the reply. Yes, I am using a virtualenv for this project. I’ll > try to stick it out with GeoDjango, but I really do not know what to do now > to try to continue on with the install. I would probably stop “continuing”, and go back to the start. afaict the installation

Re: ImportError: cannot import name 'GEOSException'

2014-11-20 Thread jogaserbia
Hi Thomas, Thanks for the reply. Yes, I am using a virtualenv for this project. I'll try to stick it out with GeoDjango, but I really do not know what to do now to try to continue on with the install. At this point in my Django career, I am pretty much a monkey banking on a keyboard when

Re: ImportError: cannot import name 'GEOSException'

2014-11-20 Thread Tom Lockhart
On Nov 19, 2014, at 2:24 PM, jogaserbia wrote: > Thanks for the help Carl. Also, thanks for filing the ticket. > > Every bit of info helps. I really do like Python and Django so far. > > I am just wondering whether I should just quit trying to make GeoDjango work >

Re: ImportError: cannot import name 'GEOSException'

2014-11-19 Thread jogaserbia
Thanks for the help Carl. Also, thanks for filing the ticket. Every bit of info helps. I really do like Python and Django so far. I am just wondering whether I should just quit trying to make GeoDjango work on my windows machine (at work). I will be setting up a linux machine at home in

Re: ImportError: cannot import name 'GEOSException'

2014-11-19 Thread Carl Meyer
Hi Ivan, On 11/19/2014 02:58 PM, jogaserbia wrote: > Hi Carl, > > Thanks very much for the response. > > I am trying to get GeoDjango up and running (for a couple of days now) > and am having a really hard time. Sorry about that :/ I know the dependencies for GeoDjango can be hard to set

Re: ImportError: cannot import name 'GEOSException'

2014-11-19 Thread jogaserbia
Hi Carl, Thanks very much for the response. I am trying to get GeoDjango up and running (for a couple of days now) and am having a really hard time. I came across another question on the internet (that does not specifically have to do with my issue) that suggested putting this path

Re: ImportError: cannot import name 'GEOSException'

2014-11-19 Thread Carl Meyer
Hello, On 11/18/2014 09:53 AM, jogaserbia wrote: > I just realized something. > > > This are all the files in django.contrib.gis.geos: > > Notice there is no GEOSException, nor is there GEOSGeometry. There is > however geometry.py (which as the class GEOSGeometry in it) and error.py

Re: ImportError: cannot import name 'GEOSException'

2014-11-18 Thread jogaserbia
> > I just realized something. > This are all the files in django.contrib.gis.geos: Notice there is no GEOSException, nor is there GEOSGeometry. There is however geometry.py (which as the class GEOSGeometry in it) and error.py (which has the class GEOSException in it). I am not sure

Re: ImportError: cannot import name 'GEOSException'

2014-11-18 Thread jogaserbia
I got the same error when I run the following command in the Python Shell: from django.contrib.gis.db import models -- 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

Re: ImportError: cannot import name 'GEOSException'

2014-11-18 Thread jogaserbia
Python 3.4 On Tuesday, November 18, 2014 9:15:29 AM UTC-5, jogaserbia wrote: > > Forgot to mention Django 1.7. > > Thanks, > > Ivan > -- 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

Re: ImportError: cannot import name 'GEOSException'

2014-11-18 Thread jogaserbia
Forgot to mention Django 1.7. Thanks, Ivan -- 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,

Re: ImportError failure

2014-10-22 Thread Juan Carlos
Hi Serdar, Sure, you're right. Thanks, thank you very much! Regards, Juan El miércoles, 22 de octubre de 2014 06:53:06 UTC-5, Serdar Dalgic escribió: > > Hi Juan, > > I believe you might have a problem while importing "example". Can you > check the line you're importing example and where did

Re: ImportError cannot import name

2014-10-22 Thread Sabine Maennel
Hello Juan, I think your settings file should look like this: In *settings.py* I have: INSTALLED_APPS = ( 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles',

Re: ImportError failure

2014-10-22 Thread Serdar Dalgic
Hi Juan, I believe you might have a problem while importing "example". Can you check the line you're importing example and where did you put this "exsite.example" module? Your directory structure should be like this: mysite/ manage.py mysite/ __init__.py settings.py

Re: ImportError cannot import name

2014-10-22 Thread Sabine Maennel
Hello Juan, if your project is "exsite" and your app is "example" then you should probably just add "example" to the list of installed apps. Try it, hope it works. with kind regards Sabine Am Mittwoch, 22. Oktober 2014 06:16:25 UTC+2 schrieb Juan Carlos: > > Hi everyone, > >

Re: ImportError: No module named core in django 1.5.5

2014-03-19 Thread Alex Scoble
Never mind on this one. Ended up creating a virtual environment and running django in that and it's working now. Thanks, Alex On Tuesday, March 18, 2014 10:32:01 AM UTC-7, Alex Scoble wrote: > > Hi All, > > Running CentOS 6.4 with python 2.6.6 and django 1.5.5 > > Doing this at prompt works:

Re: ImportError: cannot import name execute_manager

2014-02-07 Thread Larry Martell
On Fri, Feb 7, 2014 at 10:53 AM, felix kimutai wrote: > I get the following error > > " Traceback (most recent call last): > File "manage.py", line 2, in > from django.core.management import execute_manager > ImportError: cannot import name execute_manager " > >

Re: ImportError: No module named django.core

2014-01-13 Thread Mrinmoy Das
activate your virtualenv. Mrinmoy Das http://goromlagche.in/ On Mon, Jan 13, 2014 at 5:47 PM, wrote: > I get this error while creating New Project. > > radhika$ django-admin.py startproject housing > > Traceback (most recent call last): > > File

Re: ImportError at /admin/

2013-11-14 Thread Claudio Filho
Último Zhô LoSs ihoodizincluding ds sozorsoazolWhizoOaozi i Em 14 de Nov de 2013 10:27, "Swastik Acharya" escreveu: > I m trying to read the html pages > but it shows the folowiing error:: > mportError at /admin/ > > No module named views > > Request Method:GETRequest

Re: ImportError at /admin/

2013-11-14 Thread Avraham Serour
somewhere you are trying to do a 'import views' and python can't find nothing with this name, try using from appname import views On Thu, Nov 14, 2013 at 12:25 PM, Swastik Acharya wrote: > I m trying to read the html pages > but it shows the folowiing error:: > mportError

Re: ImportError: No module named filestorage

2013-11-13 Thread tim
I did a Google search for "from filestorage import DatabaseStorage" and came up with this link: https://bitbucket.org/david/django-storages/issue/132/name-databasestorage-is-not-defined On Tuesday, November 12, 2013 1:15:13 AM UTC-5, ckg...@gmail.com wrote: > > i was doing this on the python

Re: ImportError: No module named django.core.wsgi even if sys.path contains my virtualenv

2013-10-28 Thread Timothy W. Cook
Al I know is that I can run Django from a virtualenv using the development server. I have to disable SELinux to get Apache to run my Django app via WSGI. I am sure there are settings that you can make (have made) to SELinux to allow access but I have not studied it to find out what they are.

Re: ImportError: No module named django.core.wsgi even if sys.path contains my virtualenv

2013-10-28 Thread G. Allegri
Hi Timothy, I'm on a managed server, so I cannot do system changes that would require reboot. Anyway, setenforce says that SELinux is disabled (even setenforce 1). Do you think it is SELinux to block Python module loading? If I activate my virtualenv from shell I can load Django. giovanni

Re: ImportError: No module named django.core.wsgi even if sys.path contains my virtualenv

2013-10-28 Thread Timothy W. Cook
CentOS is a bit of a PITA. Because it is so secure. Try turning off SELinux http://www.centos.org/docs/5/html/5.2/Deployment_Guide/sec-sel-enable-disable.html To test this out from the commandline: $setenforce 0 How to actually make it work WITH SELinux? I haven't figured that out yet. HTH,

Re: ImportError: cannot import name actions

2013-10-17 Thread y venkatesh
On Tuesday, October 15, 2013 10:38:35 PM UTC+5:30, rok wrote: > > I have recently been testing the 1.6b4 tag with a new app we are writing, > using apache and wsgi. However, I could not get rid of the following issue > happening on every request: > > ... > [Tue Oct 15 12:50:36 2013] [error]

Re: ImportError: cannot import name actions

2013-10-16 Thread the . paper . men
Hi, Tom and rok! I didn't mean to start http server flame war, Apache obviously has it's upsides and we also use it. What I've proposed is a simple, albeit dirty, workaround to run non-forked Django 1.6 in production. For Django devs to be able to address the root of the issue and solve it

Re: ImportError: cannot import name actions

2013-10-16 Thread Tom Evans
On Wed, Oct 16, 2013 at 3:20 PM, wrote: > Ouch! I should have read your post more carefully! If you don't have any > other options than to use Apache, you could run it as proxy to gunicorn. Or > you could use Nginx instead of Apache... What, precisely, is wrong with

Re: ImportError: cannot import name actions

2013-10-16 Thread rok
Hi, I am not a particular evangelist of one or the other but since we use apache+mod_wsgi for several apps throughout the company, we obviously want to stick with one, easier for deployment and maintenance. On Wednesday, October 16, 2013 5:17:35 PM UTC+2, Tom Evans wrote: > > On Wed, Oct 16,

Re: ImportError: cannot import name actions

2013-10-16 Thread the . paper . men
l no luck. > > Rok > > On Wednesday, October 16, 2013 9:39:28 AM UTC+2, the.pa...@gmail.comwrote: >> >> Hi! >> >> Original Message >> Subject: Re: ImportError: cannot import name actions >> Date: Wed, 16 Oct 2013 11:26:33 +0400 >> From:

Re: ImportError: cannot import name actions

2013-10-16 Thread rok
gt; Hi! > > Original Message > Subject: Re: ImportError: cannot import name actions > Date: Wed, 16 Oct 2013 11:26:33 +0400 > From: Ivan Kharlamov <the.pa...@gmail.com > > To: django-d...@googlegroups.com > > On 10/15/2013 04:56 PM, rok wrote: > >

Re: ImportError: cannot import name actions

2013-10-16 Thread the . paper . men
Hi! Original Message Subject: Re: ImportError: cannot import name actions Date: Wed, 16 Oct 2013 11:26:33 +0400 From: Ivan Kharlamov <the.paper@gmail.com> To: django-develop...@googlegroups.com On 10/15/2013 04:56 PM, rok wrote: > I have recently been testing the

Re: ImportError No module named django.core

2013-09-07 Thread voger
Hi, I am as noob as you so maybe this is a case of blind leading blind. From what I hear it is considered best practice to first create a virtualenv and then install django and any other packages inside that virtualenv. Read here for virtualenv

Re: ImportError: No module named 'exceptions' - Python3

2013-08-12 Thread Mike Dewhirst
On 12/08/2013 3:21pm, abhijeet shete wrote: Hi Folks, I ported my project from python2.7 to python3 using 2to3 module. One of my class is inherited from Exception class, but after porting to python3 i am getting *No module named 'exceptions' *error. My class looks something like this

Re: ImportError: No module named 'exceptions' - Python3

2013-08-12 Thread Jani Tiainen
Hi, In Python 3 exceptions module was removed and all standard exceptions were moved to builtin module. Thus meaning that there is no more need to do explicit import of any standard exceptions. On Mon, 12 Aug 2013 10:51:32 +0530 abhijeet shete wrote: > Hi Folks,

Re: ImportError at/ No module name

2013-08-11 Thread Pranay Shah
I just want to thank everyone. I had an error "no module name image" since yesterday nite. I googled and found out that I need to install python image library. I did that. I still continued getting error. Just then I came across this post where someone was getting "no module... blog". I read it

Re: ImportError: No module named django.core.management

2013-07-28 Thread vinoth job
after cleared the above problem getting new error .when i run this command : python manage.py syncdb TypeError: __init__() got an unexpected keyword argument 'verify_exists' and this is the problem i got in my terminal and i installed all the packages needed to run the application in

Re: ImportError: No module named django.core.management

2013-07-28 Thread vinoth job
i installed inside lib/python2.7/site-packages/django .now it is running. -- 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

  1   2   3   4   >