Re: Tutorial Part 1

2020-05-10 Thread maninder singh Kumar
the polls URL needs to be added to urls.py. [image: --] Maninder Kumar [image: http://]about.me/maninder.s.kumar On Sun, May 10, 2020 at 1:15 AM Randy Zeitvogel wrote: > This is from my mysite/settings.py file: > > # Application definition

RE: Tutorial Part 1

2020-05-09 Thread ngallen4
Where is your polls/views.py??? It should at least return HttpResponse From: django-users@googlegroups.com On Behalf Of tejasri mamidi Sent: Sunday, 10 May 2020 08:13 To: django-users@googlegroups.com Subject: Re: Tutorial Part 1 Change mysite.urls , Path(' ',include(

Re: Tutorial Part 1

2020-05-09 Thread tejasri mamidi
Change mysite.urls , Path(' ',include('polls.url'))... You were not created any polls function your view and and not import any polls view in your mysite.urls On Sun, May 10, 2020, 01:15 Randy Zeitvogel wrote: > This is from my mysite/settings.py file: > > # Application definition > > INSTALLED

Re: Tutorial Part 1

2020-05-09 Thread Randy Zeitvogel
This is from my mysite/settings.py file: # Application definition INSTALLED_APPS = [ 'polls.apps.PollsConfig', 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfile

Re: Tutorial Part 1

2020-05-09 Thread Nagaraju Singothu
Dear Sir, First add your app in settings.py,then after URLs.py from django.urls import path,include from ur(appname) import views On Sat 9 May, 2020, 5:42 AM Randy Zeitvogel, wrote: > I just started working with Django in the last couple of days. > First environment is Ubuntu 1

Re: Tutorial Part 1

2020-05-09 Thread tejasri mamidi
Did ,you place ur appname in installed app in settings On Sat, May 9, 2020, 05:42 Randy Zeitvogel wrote: > I just started working with Django in the last couple of days. > First environment is Ubuntu 19.10, python 3.7.5 and Django 3.1. Second > environment is Fedora 31, python 3.7.5, and Django

Re: Tutorial Part 1

2020-05-09 Thread ola neat
Check your app url, does the url match with wath u have on your browser, On Sat, May 9, 2020, 01:59 Luqman Jr wrote: > Hello > Did you create urls.py under polls app? > You should have urls.py under polls app which will list all urls fall > under this app. > Then share with us polls/urls.py and

Re: Tutorial Part 1

2020-05-08 Thread Luqman Jr
Hello Did you create urls.py under polls app? You should have urls.py under polls app which will list all urls fall under this app. Then share with us polls/urls.py and polls/views.py so that we can help more on this. On 9 May 2020, 03:11 +0300, Randy Zeitvogel , wrote: > I just started working w

Re: Tutorial part 1 Parent module not loaded

2016-02-01 Thread sum abiut
Yes it could be how you have set up your directories. You could try from django.conf.urls import include, url from django.contrib import admin from myproject.polls import views urlpatterns = [ url(r'^polls/', include('polls.urls')), url(r'^admin/', admin.site.urls), ] On Mon, Feb 1, 2

Re: Tutorial part 1 Parent module not loaded

2016-02-01 Thread jfragos via Django users
Is it possible that that the way the sys and user paths are set up can cause this problem. When I used the command prompt of python from the python directory I received the error, however, when I changed the directory to c:\djangoprojects\mysite\polls and then imported views it worked fine.

Re: Tutorial part 1 Parent module not loaded

2016-01-31 Thread sum abiut
What is your app name? are you sure the name is polls??. The solution i mention works. On Mon, Feb 1, 2016 at 9:32 AM, jfragos via Django users < django-users@googlegroups.com> wrote: > I tried your solution and had the same results > > from django.conf.urls import include, url > from django.cont

Re: Tutorial part 1 Parent module not loaded

2016-01-31 Thread jfragos via Django users
I tried your solution and had the same results from django.conf.urls import include, url from django.contrib import admin from polls import views urlpatterns = [ url(r'^polls/', include('polls.urls')), url(r'^admin/', admin.site.urls), ] RESULTS Traceback (most recent call last): File

Re: Tutorial part 1 Parent module not loaded

2016-01-31 Thread sum abiut
The problem is how you import your views form your urls.py you have to import also your poll views from mysite urls.py you should try this: mysite--->mysite--->urls.py from django.conf.urls import patterns, include, url from django.contrib import admin from poll import views urlpatterns = patt

Re: Tutorial part 1 Parent module not loaded

2016-01-31 Thread jfragos via Django users
That is something I have tried. When I do it that way and run the program there is no error. However, when I attempt to start the server from the command prompt I am presented with the following meesages which ends with 'Import error: No module named views' c:\djangoprojects\mysite>python mana

Re: Tutorial part 1 Parent module not loaded

2016-01-31 Thread Avraham Serour
please try: from polls import views or import views On Sun, Jan 31, 2016 at 6:59 PM, jfragos via Django users < django-users@googlegroups.com> wrote: > Thank you for the response. Since there are 2 of them I have posted > both. I have highlighted in yellow the places where they reside. I have

Re: Tutorial part 1 Parent module not loaded

2016-01-31 Thread jfragos via Django users
Thank you for the response. Since there are 2 of them I have posted both. I have highlighted in yellow the places where they reside. I have also attached the outer directory structure showing c:\djangoprojects and also a shot of the mysite structure. I set this up as per the tutorial instru

Re: Tutorial part 1 Parent module not loaded

2016-01-31 Thread Avraham Serour
can you post your urls.py On Sun, Jan 31, 2016 at 5:04 PM, jfragos via Django users < django-users@googlegroups.com> wrote: > Hi, > I am very new to Python and Django but not to programming. I have > been programming for 30 years. That said I am trying to work my way thru > the Django tutorial pa

Re: tutorial part 1...syncing db

2012-04-12 Thread Brandy
FINALLY! I used your modifications and adjusted the security settings of the directory (twice). And now it works. Thank you everyone for taking the time to look at my code! Brandy On Thursday, April 12, 2012 3:13:58 PM UTC-5, William Ratcliff wrote: > Hi Brandy, > > I downloaded your project

Re: tutorial part 1...syncing db

2012-04-12 Thread william ratcliff
Hi Brandy, I downloaded your project modified the beginning to the following: # Django settings for mysite project. import os,sys HOMEDIR=os.path.dirname(__file__) DEBUG = True TEMPLATE_DEBUG = DEBUG ADMINS = ( # ('Your Name', 'your_em...@example.com'), ) MANAGERS = ADMINS DATABASES = {

Re: tutorial part 1...syncing db

2012-04-12 Thread william ratcliff
Can you post your full code somewhere as a zip? On Thu, Apr 12, 2012 at 2:33 PM, Leonid Toshchev wrote: > Hello. > Try to escape spaces. I don`t check how django work when path have > spaces inside, but i meet same problems in my practice. > > p.s. sorry for my bad english. > > 12 апреля 2012 г

Re: tutorial part 1...syncing db

2012-04-12 Thread Leonid Toshchev
Hello. Try to escape spaces. I don`t check how django work when path have spaces inside, but i meet same problems in my practice. p.s. sorry for my bad english. 12 апреля 2012 г. 21:32 пользователь victoria написал: > On Thu, Apr 12, 2012 at 7:09 PM, Brandy wrote: >> I am working (again) throug

Re: tutorial part 1...syncing db

2012-04-12 Thread Brandy
I am in version 1.4. I feel like this is what is happening: I open the file to edit it in either Emacs or BlueFish. The file seems to save properly (I have verified that the files are being saved to the correct directory), but those changes don't seem to be reflected in the files when I access t

Re: tutorial part 1...syncing db

2012-04-12 Thread victoria
On Thu, Apr 12, 2012 at 7:09 PM, Brandy wrote: > I am working (again) through the tutorial part 1. I have made changes to > Engine and Name as specified in the instructions. However, running "python > manage.py syncdb" continues to return "Please supply the ENGINE value." I > did not encounter thi