Re: os module import error

2021-05-31 Thread Avi shah
you could just add "import os" in settings.py file On Mon, May 31, 2021 at 8:32 PM James Ndubuisi wrote: > Good afternoon. > It seems on creating the Django project using django-admin startproject > command , the os module isn't imported by default, causing an error. > > -- > You received this

Re: os module import error

2021-05-31 Thread Antonis Christofides
Hi! Could you show exactly which command(s) you are running, and the exact error message? Regards, Antonis Christofides +30-6979924665 (mobile) On 31/05/2021 17.57, James Ndubuisi wrote: Good afternoon. It seems on creating the Django project using django-admin startproject command , the

os module import error

2021-05-31 Thread James Ndubuisi
Good afternoon. It seems on creating the Django project using django-admin startproject command , the os module isn't imported by default, causing an error. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop

Re: How to trace circular import error Django never solved!! Please sort this out.

2020-07-22 Thread Chaitanya Sai
ch/600+University+Ave,+Toronto,+Ontario+Canada?entry=gmail=g> >> http://individual.utoronto.ca/sandeepkumar/ >> >> >> On Wed, Jul 22, 2020 at 10:12 AM Chaitanya Sai >> wrote: >> >>> Hello Django users, >>> Is there not even single person who can s

Re: How to trace circular import error Django never solved!! Please sort this out.

2020-07-22 Thread Liu Zheng
pkumar/ > > > On Wed, Jul 22, 2020 at 10:12 AM Chaitanya Sai > wrote: > >> Hello Django users, >> Is there not even single person who can solve this issue?? >> >> >> On Tue, Jul 21, 2020 at 8:09 PM Sai wrote: >> >>> I am workin

Re: How to trace circular import error Django never solved!! Please sort this out.

2020-07-22 Thread sandeep kumar
>> in the project. I got a circular import error when I am adding the app URLs >> to the main URLs. I Tried everything checked spellings, checked app >> structure but no use. Its been really frustrating with issue..please help >> to solve the problem. The app is working fine

Re: How to trace circular import error Django never solved!! Please sort this out.

2020-07-22 Thread Chaitanya Sai
Hello Django users, Is there not even single person who can solve this issue?? On Tue, Jul 21, 2020 at 8:09 PM Sai wrote: > I am working Django rest framework api project, where I had multiple apps > in the project. I got a circular import error when I am adding the ap

Re: How to trace circular import error Django never solved!! Please sort this out.

2020-07-21 Thread Chaitanya Sai
Can any one Look into this thing ?? On Tue, Jul 21, 2020 at 8:09 PM Sai wrote: > I am working Django rest framework api project, where I had multiple apps > in the project. I got a circular import error when I am adding the app URLs > to the main URLs. I Tried everything checked

Re: How to trace circular import error Django never solved!! Please sort this out.

2020-07-21 Thread Mike Dewhirst
On 22/07/2020 10:08 am, Sai wrote: > I am working Django rest framework api project, where I had multiple > apps in the project. I got a circular import error when I am adding > the app URLs to the main URLs. I Tried everything checked spellings, > checked app structure but no use. Its

How to trace circular import error Django never solved!! Please sort this out.

2020-07-21 Thread Sai
I am working Django rest framework api project, where I had multiple apps in the project. I got a circular import error when I am adding the app URLs to the main URLs. I Tried everything checked spellings, checked app structure but no use. Its been really frustrating with issue..please help

Import error on version 3.1a1

2020-06-08 Thread Jules Capacilllo
Hi guys, Am getting the below error when we I tried updating to 3.1a1 from 3.0.6 from rest_framework import filters as rest_filters File "/home/jules/.cache/pypoetry/virtualenvs/plum-TXT4_AUl-py3.8/lib/python3.8/site-packages/rest_framework/filters.py", line 11, in from

Import error on version 3.1a1

2020-06-08 Thread Jules Capacilllo
Hi guys, Am getting the below error when we I tried updating to 3.1a1 from 3.0.6 from .router import router File "/home/jules/plum/plum/router.py", line 4, in from plum.plum_task.views_api import TaskViewSet, TaskStatusViewSet File "/home/jules/plum/plum/plum_task/views_api.py",

Re: import error

2018-02-05 Thread Matemática A3K
On Mon, Feb 5, 2018 at 10:59 AM, sarvit sarvit wrote: > is not app > views.py > from django.http import HttpRequest > > def index(request): >return HttpRequest("Hello World.") > > urls.py > > from django.shortcuts import render > from django.conf.urls import url >

Re: import error

2018-02-05 Thread sarvit sarvit
is not app views.py from django.http import HttpRequest def index(request): return HttpRequest("Hello World.") urls.py from django.shortcuts import render from django.conf.urls import url from django.contrib import admin from django.urls import path from views.py import views urlpatterns =

Re: import error

2018-02-05 Thread pradam
Bro, do it like this: from *your_app_name* import views On Mon, Feb 5, 2018 at 6:54 PM, sarvit sarvit wrote: > Hello > I importing error > Please help me > from django.shortcuts import render > from django.conf.urls import url > from django.contrib import admin >

import error

2018-02-05 Thread sarvit sarvit
Hello I importing error Please help me from django.shortcuts import render from django.conf.urls import url from django.contrib import admin from django.urls import path from . import views Traceback (most recent call last): File "c:\Users\saeid\Desktop\sade\env\Post\Post\urls.py", line 20,

Re: import error

2017-12-11 Thread Dylan Reinhold
For your other error, are you are using passing the literal string Home, then enclose it in quotes. On Mon, Dec 11, 2017 at 8:03 PM, Dylan Reinhold wrote: > It does not look like you have created an app yet in your project. > > You should create one say web [ manage.py

Re: import error

2017-12-11 Thread Dylan Reinhold
It does not look like you have created an app yet in your project. You should create one say web [ manage.py startapp web ] Then move that views.py and the templates folder into that app folder web/ Then in your urls.py change the from .views import index to from web.views import index. In your

import error

2017-12-11 Thread Rabin BK
Please help me with

Re: Django Gunicorn Import Error: no module name wsgi

2017-09-04 Thread Melvyn Sopacua
Your Django project really is "weather_station", but you treat "myproject" as the project. Revisit: https://docs.djangoproject.com/en/1.11/intro/tutorial01/#creating-a-project And follow instructions to the tee and look at the directory structure. On Sun, Sep 3, 2017 at 6:04 PM, Jonathan Cheng

Re: Django Gunicorn Import Error: no module name wsgi

2017-09-03 Thread M Hashmi
Try: gunicorn --bind ip:port wsgi:application Make sure you run it from the directory where manage.py is located. Regards, M On Sun, Sep 3, 2017 at 9:04 AM, Jonathan Cheng wrote: > I use Python3.5.2 Django1.9 > > I use `python -m venv venv/weather_station` to create

Django Gunicorn Import Error: no module name wsgi

2017-09-03 Thread Jonathan Cheng
I use Python3.5.2 Django1.9 I use `python -m venv venv/weather_station` to create virtual evnironment (/home/user/venv) This is my project tree in Ubuntu /home/user/myproject: (`export project=/home/user/myproject`) myproject | ├── gunicorn.conf.py ├── static │ ├── admin

Re: Setting up an App and getting an import error

2017-04-07 Thread Nate Granatir
I may be speaking a bit out of my depth here, but I wonder if it's maybe because you haven't created __init__.py files in the directories? I believe Django (well, Python), requires an empty __init__.py file in directories when loading them as modules:

Setting up an App and getting an import error

2017-04-05 Thread jjanderson52000
Hi, I'm setting up a Django app using Django 1.10.3 and python 3.5.2. When I run the following command in my 3.5.2 virtual environment: *python manage.py runserver*prior to entering the app in INSTALLED_APPS in settings.py, my webpage comes up fine. When I add the following line to

Re: import error: no module named viewflow.frontend

2017-02-24 Thread Михаил Подгурский
angelachakupa.at написал: > > hie guys > m getting this error * Import error: no module named viewflow.frontend * yet > i followed the procedures on how to apply the view flow module what could > be the problem. > > > > > Flow.py > > > > > > from

Re: import error: no module named viewflow.frontend

2017-02-23 Thread chris rose
did you add 'viewflow.frontend' to installed_apps? -- 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

import error: no module named viewflow.frontend

2017-02-23 Thread angelachakupa.at
hie guys m getting this error * Import error: no module named viewflow.frontend * yet i followed the procedures on how to apply the view flow module what could be the problem. Flow.py from viewflow import flow,lock from viewflow.base import this, Flow from viewflow.contrib import

Import Error Running script to populate database using models

2016-09-20 Thread miguel vfx
Good day, I'm getting import errors when I try to run a script to populate a database using models. I'm new to django so it means I haven't done anything special than follow djangobook and other beginner tutorials. The script I would like to run is in the same folder as the models.py. I

Re: WeakMethod import error in Django 1.9 with python 3.3

2016-02-09 Thread Tim Graham
As noted in the Django 1.9 release notes, "Django 1.9 requires Python 2.7, 3.4, or 3.5." On Tuesday, February 9, 2016 at 5:49:41 AM UTC-5, Mohammad Asif wrote: > > Hello, > > I'm using django 1.9.1 with python 3.3. > Whenever I'm running manage.py runserver, I'm getting following error. > > *

WeakMethod import error in Django 1.9 with python 3.3

2016-02-09 Thread Mohammad Asif
Hello, I'm using django 1.9.1 with python 3.3. Whenever I'm running manage.py runserver, I'm getting following error. * File "/home/travis/virtualenv/python3.3.5/lib/python3.3/site-packages/django/dispatch/__init__.py", line 9, in * * from django.dispatch.dispatcher import Signal, receiver #

Re: Timezone import error

2015-11-30 Thread ahmed . abdullah . bh
unday, 29 November 2015 19:38:41 UTC+3, monoBOT monoBOT wrote: > > Hello Ahmed > > you are using the get method, get can only return 1 item and its returning > more than 1 in your case 2, thats the second error, but there is an import > error also somewhere in your code, but th

Re: Timezone import error

2015-11-29 Thread monoBOT
Hello Ahmed you are using the get method, get can only return 1 item and its returning more than 1 in your case 2, thats the second error, but there is an import error also somewhere in your code, but the traceback you are sending is not concluyent. 2015-11-29 15:11 GMT+00:00 <ahmed.abdul

Re: Timezone import error

2015-11-29 Thread knbk
Hi Ahmed, When an error happens in an expect: block, python 3 shows the original error caught by the try/expect block, as well as the new error. In this case, the ImportError is the original error, and it's nothing you should worry about: Django catches it and handles it accordingly.

Timezone import error

2015-11-29 Thread ahmed . abdullah . bh
Hi, I'm practicing Django v 1.8.6 (Writing your first Django app, part 1) and getting error when trying to import timezone, also I have installed pytz, when I try to use the import timezone package I'm getting ImportError. My settings.py has USE_TZ set to true by default, also, I had to

Re: [newbie] import error after restart (virtualenv)

2015-09-20 Thread Vijay Khemlani
Aren't tests supposed to run with "python manage.py test lists"? On Fri, Sep 18, 2015 at 8:55 PM, David wrote: > Dear Django experts, > > I am reading through Harry Percival's "Test-Driven Development with > Python". > > As I finished chapter 3 yesterday, I was fully on track,

[newbie] import error after restart (virtualenv)

2015-09-18 Thread David
Dear Django experts, I am reading through Harry Percival's "Test-Driven Development with Python". As I finished chapter 3 yesterday, I was fully on track, perfectly aligned with the book. Today I restarted my computer, activated the virtualenv in question -- and get an error message that was

Re: Import error - No module named http

2015-03-18 Thread Mario Gudelj
And you should probably use suds for soap based apis. On 19/03/2015 4:24 am, "Andrew Farrell" wrote: > Actually, please listen to Guilherme over me; He seems to have correctly > spotted the omission. > > On Wed, Mar 18, 2015 at 11:45 AM, Andrew Farrell

Re: Import error - No module named http

2015-03-18 Thread Andrew Farrell
Actually, please listen to Guilherme over me; He seems to have correctly spotted the omission. On Wed, Mar 18, 2015 at 11:45 AM, Andrew Farrell wrote: > So it seems like the problem is that you are doing `import http` on line > 24 of

Re: Import error - No module named http

2015-03-18 Thread Andrew Farrell
So it seems like the problem is that you are doing `import http` on line 24 of /home/akhil/Documents/NIVIN/NIVIN/svn/CrossFraudet/ branches/V2.1.0/crossfraudet/cdrimport/views/fraud_summary_view.py rather than `import httplib`. Python2 doesn't have a module in the standard library named `http`,

Re: Import error - No module named http

2015-03-18 Thread Guilherme Leal
Nivin and Shinto, You are forgetting to instantiate the HTTPConnection object: Exemple: *import httplib* *from xml.dom import minidom* *http = httplib.HTTPConnection("http://mydomain.com ")* *http.request("POST", "/path/to/my/webservice", body=xml, headers = {* *

Re: Import error - No module named http

2015-03-18 Thread Nivin Paul
ImportError at /cdrimport/settings/fraudsummary/disconnect/ No module named http Request Method: GET Request URL: http://192.168.12.59:8080/cdrimport/settings/fraudsummary/disconnect/?id=3 Django Version: 1.6.4 Exception Type: ImportError Exception Value: No module named http

Re: Import error - No module named http

2015-03-18 Thread SHINTO PETER
iam to getting same error Traceback (most recent call last): File "test_soap.py", line 4, in http.request("POST", "/path/to/my/webservice", body=xml, headers = {

Re: Import error - No module named http

2015-03-18 Thread Andrew Farrell
Hello Nivin, Could you please hit the "switch to copy-and-paste view" link at the top of the tradeback and copy that? The bottom of a traceback is often the most useful for debugging. Feel free to paste it or relevant code at github gist and send the link if you want to

Re: Import error - No module named http

2015-03-18 Thread Guilherme Leal
you didnt instanciated the HttpConnection Object Check the docs. https://docs.python.org/2/library/httplib.html#httpconnection-objects Em qua, 18 de mar de 2015 às 13:24, Nivin Paul escreveu: > I need to call a web service that written using SOAP from a django >

Re: Import Error Module

2014-11-12 Thread Erik Cederstrand
> Den 12/11/2014 kl. 01.39 skrev Niall : > > Hi Erik, yes it is installed but it comes up with the following error when I > try to run the server again. > > I know that it is something simple like changing the PYTHONPATH so if you > could advise on why it is happening

Re: Import Error Module

2014-11-11 Thread Niall
le) File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/django/conf/__init__.py", line 98, in __init__ % (self.SETTINGS_MODULE, e) ImportError: Could not import settings 'configs.settings' (Is it on sys.path? Is there an import error in the sett

Re: Import Error Module

2014-11-11 Thread Erik Cederstrand
> Den 11/11/2014 kl. 15.48 skrev Niall <conwayni...@gmail.com>: > > Hello, I was hoping that anyone could please advise me on a very simple issue > which I am having regarding running the dev server (see attachments). I am > receiving the following import error w

Re: Import error in settings.py

2014-10-23 Thread Collin Anderson
You can also do this: import importlib module_name, name = path.rsplit('.', 1) return getattr(importlib.import_module(module_name), name) -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails

Re: Import error in settings.py

2014-10-22 Thread Felix Unchained
Just thought you might get a kick out of the fact that I just found this very useful – 4 years later. Thanks. On Tuesday, February 12, 2008 7:27:45 PM UTC-8, Julien wrote: > > Great! Thanks a lot, it worked! > > Here's a little function that I made and that is quite helpful: > > def

Strange import error with GeoIP

2013-11-18 Thread Karim
Hi all, I have one website that suddenly and often show me an import error. Django Version: 1.5.5 Exception Type: ImportError Exception Value : cannot import name GeoIP The GeoIP works if I start a python manage.py shell and in fact the problem is not always present, it's enough for me reload

Re: Import Error: cannot import name timezone

2013-08-25 Thread Robin Lery
Good to hear that! On Sun, Aug 25, 2013 at 7:19 AM, Patrick Larmann wrote: > Thanks fixed it? > > > On Saturday, August 24, 2013 5:45:47 PM UTC-4, Robin Lery wrote: > >> It should be >> 'from django.utils import timezone' >> and not >> 'from django.db.utils import

Re: Import Error: cannot import name timezone

2013-08-24 Thread Patrick Larmann
Thanks fixed it? On Saturday, August 24, 2013 5:45:47 PM UTC-4, Robin Lery wrote: > > It should be > 'from django.utils import timezone' > and not > 'from django.db.utils import timezone' > > > On Sun, Aug 25, 2013 at 2:58 AM, Patrick Larmann > > wrote: > >> He Guys, >>

Re: Import Error: cannot import name timezone

2013-08-24 Thread Robin Lery
It should be 'from django.utils import timezone' and not 'from django.db.utils import timezone' On Sun, Aug 25, 2013 at 2:58 AM, Patrick Larmann wrote: > He Guys, > I am currently completing part 1 of the django tutorial and having trouble > with getting on of the

Re: Django import error (Please reply soon)

2013-06-20 Thread Jacky Tian
Add 'myapp' to your INSTALLED_APPS in settings.py, right now Django doesn't know that myapp is an existing package. On Thursday, June 20, 2013 3:06:12 AM UTC-4, sanju wrote: > > > > Hi I have problems with import error in django. Tried looking > > into all possible s

Re: Django import error (Please reply soon)

2013-06-20 Thread abhijeet shete
Hi Sanju, Whenever you create any app in django you need to add that app's name under INSTALLED_APPS in settings.py file. It looks like you commented that line on which you added the name of app(myapp) under INSTALLED_APPS in your settings file. Uncomment that line and then try again hope it

Re: Django import error (Please reply soon)

2013-06-20 Thread Gabriel
What is the command you're trying to run, and where in the file tree are you when you do it? - Gabe On Thu, Jun 20, 2013 at 4:06 AM, sanju <sayhellosa...@yahoo.com> wrote: > > > Hi I have problems with import error in django. Tried looking > > into all possibl

Django import error (Please reply soon)

2013-06-20 Thread sanju
Hi I have problems with import error in django. Tried looking into all possible solutions in Google, but in vain.I am posting my files here.Please look into it and correct it as soon as possible.Thanks in Advance! This is my hierarchy: c:/Users/Sanju/ mysite -myapp -> _init_

Re: django 1.4.3 to 1.4.4 upgrade fails - Bad magic number Import Error

2013-02-21 Thread Martin J. Laubach
> > return getpass.getuser().decode(locale.getdefaultlocale()[1]) > TypeError: decode() argument 1 must be string, not None > It needs a valid locale to be set in the environment. Try setting LC_ALL=en_US before running syncdb. mjl -- You received this message because you are

Re: django 1.4.3 to 1.4.4 upgrade fails - Bad magic number Import Error

2013-02-21 Thread lucien
Hi, I have done that: python ./manage.py shell >>> from django.contrib.auth.models import User >>> user = User.objects.create_user(username='foo', email="", password="") >>> user.is_superuser=True >>> user.save >>> user.get_all_permissions() Thanks, Lucien Le

Re: django 1.4.3 to 1.4.4 upgrade fails - Bad magic number Import Error

2013-02-21 Thread Bill Freeman
One workaround would be to forgo creation at syncdb time and use the manage.py shell to create a user, set its superuser boolean, and save it. On Thu, Feb 21, 2013 at 9:40 AM, lucien wrote: > Hi, > > Thanks for your quick answer, I removed the 1.4.4 version and it works

Re: django 1.4.3 to 1.4.4 upgrade fails - Bad magic number Import Error

2013-02-21 Thread lucien
Hi, Thanks for your quick answer, I removed the 1.4.4 version and it works but when I answer yes to define sperusers I got an error, is there any workaround to create a superuser ? You just installed Django's auth system, which means you don't have any superusers defined. Would you like to

Re: django 1.4.3 to 1.4.4 upgrade fails - Bad magic number Import Error

2013-02-21 Thread Karen Tracey
On Thu, Feb 21, 2013 at 9:09 AM, lucien wrote: > Hi, > > I tried the 1.4.5 because I got the same error with ubuntu and postgres > Do you have any idea? > Did you remove the 1.4.4 install before installing 1.4.5? -- You received this message because you are subscribed

Re: django 1.4.3 to 1.4.4 upgrade fails - Bad magic number Import Error

2013-02-21 Thread lucien
Hi, I tried the 1.4.5 because I got the same error with ubuntu and postgres Do you have any idea? Regards, Lucien python -c "import django; print(django.get_version())" 1.4.5 python manage.py syncdb Traceback (most recent call last): File "manage.py", line 10, in

Re: django 1.4.3 to 1.4.4 upgrade fails - Bad magic number Import Error

2013-02-21 Thread Xavier Ordoquy
Hi, You should consider upgrading to 1.4.5 which fixes that issue. Best regards, Xavier Le 21 févr. 2013 à 09:00, Frank Bieniek a écrit : > Hi, > we are using jenkins to build our django stack, > we changed the django version from 1.4.3 to 1.4.4. > this

django 1.4.3 to 1.4.4 upgrade fails - Bad magic number Import Error

2013-02-21 Thread Frank Bieniek
Hi, we are using jenkins to build our django stack, we changed the django version from 1.4.3 to 1.4.4. this results in a ImportError: Bad magic number in /x86build/dpp/opt/django-auth-venv/lib/python2.5/site-packages/django/contrib/sessions/management/__init__.pyc Even deleting all pyc files

Re: Coffin import error while starting django

2013-01-29 Thread nickfarm
We have narrowed this issue down to supervisor. See the updated info: http://pastebin.ca/2308575 supervisor is installed from the repositories and uses python 2.6 The django app is using a manually compiled version of python 2.7 It seems supervisor interferes with environment variables in some

Coffin import error while starting django

2013-01-29 Thread nickfarm
We have python / django on the server, using supervisor and gunicorn. Using gunicorn we have an import error while starting django: from django.test import signals (a line in coffin). If we import from ipython or use import django.test.signals we have no problem. See http://pastebin.ca/2308541

Re: Import error

2012-06-25 Thread Derek
Emily If you are starting a new topic, please start a new thread - and again, as per the guidelines for using the mailing list that Cal referred to, the more specific your question, the more chance of getting a reply. :) On Friday, 22 June 2012 17:14:34 UTC+2, Emily N wrote: > > Kurtis, Adrian

Re: Import error

2012-06-22 Thread Emily
Kurtis, Adrian and Daniel, thank you so much for your help, it actually worked I have programmed in java 70% of my life Now I want to send sms to my users when they sign up in the website. There is some package I have seen which looks like it is from an email to the phone. Does it work with

Re: Import error

2012-06-22 Thread Kurtis Mullins
+1 on pulling the "random_password()" method out of the Class and setting it up as a module object. I'd still suggest using this sort of an import statement on it, though: from myproject.myapp.helpers import random_password Where in this example you'd substitute your Project name with

Re: Import error

2012-06-22 Thread Daniel Roseman
On Friday, 22 June 2012 15:49:31 UTC+1, aid wrote: > > > Hi Emily, > > On 22 Jun 2012, at 15:46, Emily wrote: > > > This is the class I created... > > > > import string > > import random > > > > class Helpers: > > > > def random_password(): > > Take random_password outside of the

Re: Import error

2012-06-22 Thread Adrian Bool
Hi Emily, On 22 Jun 2012, at 15:46, Emily wrote: > This is the class I created... > > import string > import random > > class Helpers: > > def random_password(): Take random_password outside of the Helpers class and you should be OK. On the import statement you need to refer to a 'top

Re: Import error

2012-06-22 Thread Emily
This is the class I created... import string import random class Helpers: def random_password(): '''a method to generate random password''' lengthOfPassword = random.randint(6,10) password_len = lengthOfPassword password = [] for group in

Re: Import error

2012-06-22 Thread Emily
This is the views.py file from helpers import random_password from django.views.generic.edit import CreateView from django.views.generic.list import ListView from Prototype.forms import StudentForm, LecturerForm, PaymentForm from Prototype.models import Guideline, Student, Lecturer, Payment from

Re: Import error

2012-06-22 Thread Kurtis Mullins
Hey emily, I think the other guys were just wanting to see your import statement that's broken. It should be something along these lines if you want to give it a try: from myproject.myapp.myhelpers import random_password Of course you'd substitute your project name, the application name, and

Re: Import error

2012-06-22 Thread Emily
so your point is that I should post my code. When I did that some time, I was told that the people who were trying to help me did not want to know what is in my code so I should just explain what I want them to help me with. But thank you any way, you point has been driven home. On Fri, Jun 22,

Re: Import error

2012-06-22 Thread Cal Leeming [Simplicity Media Ltd]
Hi Emily, Here is a really good article (written by the very people who contribute to this list) on how to ask questions on the mailing list: https://code.djangoproject.com/wiki/UsingTheMailingList It tells you what you can do to try and resolve the issue yourself, and what sort of information

Re: Import error

2012-06-22 Thread Marcin Tustin
Dear Emily, Do you expect us to already have a copy of your code? If not, we need to have a short, self-contained, and correct example demonstrating your issue. Marcin On Fri, Jun 22, 2012 at 8:43 AM, Emily wrote: > Dear Marcin, > > I do not understand. > I think I have

Re: Import error

2012-06-22 Thread Emily
Dear Marcin, I do not understand. I think I have done everything right and I am trying to find the source of the error where if there is someone who has experienced it they might be knowing where it is coming from.. Emily On Fri, Jun 22, 2012 at 3:27 PM, Marcin Tustin

Re: Import error

2012-06-22 Thread Marcin Tustin
Please take a look at: Short, Self Contained, Correct Example There's also some good advice at: What have you tried? - Matt Gemmell On Fri, Jun 22, 2012 at 8:10 AM, Emily N wrote: > Hi django users, > I seem to have gotten a

Import error

2012-06-22 Thread Emily N
Hi django users, I seem to have gotten a problem. I created a helper class in my project and I have failed to import the methods in it. Please help... This is the error I get... ImportError at /admin/ cannot import name random_password Request Method: GET Request URL:

Re: import error: no model named .....

2012-05-18 Thread doniyor
try this urlpattern = patterns(' ', url('^hello/$,hello), ) Am Donnerstag, 17. Mai 2012 20:58:23 UTC+2 schrieb Ali Shaikh: > > Hey... > > > I am practicing to implement simple examples in django... > > started project with > 1.django-admin.py startproject wikicamp > 2.python manage.py

Re: import error: no model named .....

2012-05-17 Thread Apokalyptica Painkiller
Hello i'm not sure but did you edited your module.py? I'm watching your urls.py and i found this: ('^hello/$,hello), I'm guessing that there is a syntax mistake, it should be " ('^hello/$', hello) why don't you try that. See you 2012/5/17 Tanveer Ali Sha > Hi

Re: import error: no model named .....

2012-05-17 Thread Nick Legotte
urls.py should look like this from django.conf.urls.defaults import* from wikicamp.views import hello urlpattern = patterns(' ', ('^hello/$',hello), ) On Thu, May 17, 2012 at 12:23 PM, Tanveer Ali Sha wrote: > Hi Apokalyptica Painkiller , > > Here is my urls.py and

Re: import error: no model named .....

2012-05-17 Thread Tanveer Ali Sha
Hi Apokalyptica Painkiller , Here is my urls.py and views.py *URLS.PY* from django.conf.urls.defaults import* from wikicamp.views import hello urlpattern = patterns(' ', ('^hello/$,hello), ) *VIEWS.py* * * *from django.http import HttpResponse* * * *def hello(request):* * return

Re: import error: no model named .....

2012-05-17 Thread Andre Terra
Everyone, please follow these guidelines before asking other questions: https://code.djangoproject.com/wiki/UsingTheMailingList Cheers, AT On Thu, May 17, 2012 at 4:14 PM, Tanveer Ali Sha wrote: > even am getting *page not found* error > > 1.^notes/ > the current

Re: import error: no model named .....

2012-05-17 Thread Tanveer Ali Sha
even am getting *page not found* error 1.^notes/ the current URL,didnt match any of these for that wikicamp example which is available in showmedo.com.. I donno why I getting these error ...??:( On Fri, May 18, 2012 at 12:32 AM, Halit Alptekin wrote: >

Re: import error: no model named .....

2012-05-17 Thread Halit Alptekin
You should import models into views.py. For Example; from hdyazi.models import * from hdmakale.models import * from hdsayfalar.models import * My models' names are hdyazi,mdmakale,hdsayfalar ... -- *www.halitalptekin.com | Halit Alptekin* -- You received this message because you are

Re: import error: no model named .....

2012-05-17 Thread Apokalyptica Painkiller
Hello, can you show us your views.py and urls.py? See you 2012/5/17 Ali Shaikh > Hey... > > > I am practicing to implement simple examples in django... > > started project with > 1.django-admin.py startproject wikicamp > 2.python manage.py startapp wiki > 3.editing

Re: import error: no model named .....

2012-05-17 Thread Nick Legotte
Copy and paste the stacktrace On May 17, 2012 11:58 AM, "Ali Shaikh" wrote: > Hey... > > > I am practicing to implement simple examples in django... > > started project with > 1.django-admin.py startproject wikicamp > 2.python manage.py startapp wiki > 3.editing the

import error: no model named .....

2012-05-17 Thread Ali Shaikh
Hey... I am practicing to implement simple examples in django... started project with 1.django-admin.py startproject wikicamp 2.python manage.py startapp wiki 3.editing the setting 4.python manage.py syncdb 5.python mange.py runserver till this stage its working fine:) But after

jython django install - django import error

2012-02-29 Thread andzsinszan
Hi, I have problems installing django for jyhton. I followed instructions on the django / django-jython site, but can't import django from jython. Jython 2.5.3b1 django_jython-1.3.0b2 ### INSTALLATION # after # - installing jython # - adding JYTHON_DIR/bin to path: > jython pip install

Re: import error

2012-02-22 Thread Sébastien Billion
Hi, I didn't know this tip! Shame on me. Thanks for this 2012/2/22 dummyman dummyman > Hi i fixed the error . I didnt add the parent directory of project to > sys.path.append in the standalone script thanks > > > On Wed, Feb 22, 2012 at 10:35 AM, kalyani ram

Re: import error

2012-02-21 Thread dummyman dummyman
Hi i fixed the error . I didnt add the parent directory of project to sys.path.append in the standalone script thanks On Wed, Feb 22, 2012 at 10:35 AM, kalyani ram wrote: > every time you import something, plz done forget to include that in > installed_apps. this mostly

Re: import error

2012-02-21 Thread kalyani ram
every time you import something, plz done forget to include that in installed_apps. this mostly solves the import errors and templatedoesnotexist errors problem On Feb 21, 2:28 pm, dummyman dummyman wrote: > Hi , > > I have a django project and a standalone python script .

Re: import error

2012-02-21 Thread Sébastien Billion
Hi, You must add 'mysite'' in your INSTALLED_APP list in settings.py 2012/2/21 dummyman dummyman > Hi , > > I have a django project and a standalone python script . From the view > function, i have invoked the standalone script. I am getting the error ." > No module named

import error

2012-02-21 Thread dummyman dummyman
Hi , I have a django project and a standalone python script . From the view function, i have invoked the standalone script. I am getting the error ." No module named this is my code for standalone script import os os.environ['DJANGO_SETTINGS_MODULE'] = 'myproject.settings' from django.conf

Re: import error

2012-02-03 Thread Thorsten Sanders
to login page it errors out on import error. I think its some thing to do with setup since created new app for registration. I have shown my setup and setting and traceback at http://dpaste.com/697051/ http://dpaste.com/697053/ http://dpaste.com/697144/ please take a look and advice. I am able

import error

2012-02-03 Thread Miten
hi guys, I am doing simple app for learning. I created page and then auth protected but as I added register link to login page it errors out on import error. I think its some thing to do with setup since created new app for registration. I have shown my setup and setting and traceback at http

Re: Import error when unit testing with django.test.client on django 1.1.1

2011-11-24 Thread Erlendur Hákonarson
Thanks Xavier I will research this better but the path for the settings file is wrong in this error, it should be 'bo.settings' not 'DER.settings' but that might be because the tests do not have my project in their path Thanks again Erlendur -- You received this message because you are

  1   2   >