Use Subversion to Download the Latest Django Version
I just got new computer Win7 64-bit and I downloaded: 64 Bit TortoiseSVN-1.6.6.17493-x64-svn-1.6.6.msi After finished download >Restart >Start >Run >cmd -- C:\Users\Mike>svn co http://code.djangoproject.com/svn/django/trunk/ 'svn' is not recognized as an internal or external command, operable program or batch file. C:\Users\Mike> -- What should I do? Thanks, Mikey3D -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=.
Re: Use Subversion to Download the Latest Django Version
I can't find svn.exe. Can you tell me howto? Steps... Thanks, Mikey3D On Nov 17, 12:00 pm, Angel Cruz wrote: > Add to the PATH variable the location of your svn.exe > > On Tue, Nov 17, 2009 at 8:58 AM, Mikey3D wrote: > > I just got new computer Win7 64-bit and I downloaded: > > > 64 Bit TortoiseSVN-1.6.6.17493-x64-svn-1.6.6.msi > > > After finished download >Restart >Start >Run >cmd > > > -- > > C:\Users\Mike>svn cohttp://code.djangoproject.com/svn/django/trunk/ > > 'svn' is not recognized as an internal or external command, operable > > program or batch file. > > > C:\Users\Mike> > > -- > > > What should I do? > > > Thanks, Mikey3D > > > -- > > > You received this message because you are subscribed to the Google Groups > > "Django users" group. > > To post to this group, send email to django-us...@googlegroups.com. > > To unsubscribe from this group, send email to > > django-users+unsubscr...@googlegroups.com > > . > > For more options, visit this group at > >http://groups.google.com/group/django-users?hl=. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=.
Re: Use Subversion to Download the Latest Django Version
I can't find it. I have Windows 7 64-bit and what you have said is completely difference all together. Last year, my 11 years old computer can do: run >command. I haven't setup what you were talking about. Am I missing something? Mikey3D On Nov 17, 12:17 pm, Angel Cruz wrote: > Your svn.exe is where you installed it. > > If you can find it, do a search on the c: drive. > > On Tue, Nov 17, 2009 at 9:16 AM, Angel Cruz wrote: > >http://www.computerhope.com/issues/ch000549.htm > > > On Tue, Nov 17, 2009 at 9:11 AM, Mikey3D wrote: > > >> I can't find svn.exe. > > >> Can you tell me howto? Steps... > > >> Thanks, Mikey3D > > >> On Nov 17, 12:00 pm, Angel Cruz wrote: > >> > Add to the PATH variable the location of your svn.exe > > >> > On Tue, Nov 17, 2009 at 8:58 AM, Mikey3D wrote: > >> > > I just got new computer Win7 64-bit and I downloaded: > > >> > > 64 Bit TortoiseSVN-1.6.6.17493-x64-svn-1.6.6.msi > > >> > > After finished download >Restart >Start >Run >cmd > > >> > > -- > >> > > C:\Users\Mike>svn cohttp://code.djangoproject.com/svn/django/trunk/ > >> > > 'svn' is not recognized as an internal or external command, operable > >> > > program or batch file. > > >> > > C:\Users\Mike> > >> > > -- > > >> > > What should I do? > > >> > > Thanks, Mikey3D > > >> > > -- > > >> > > You received this message because you are subscribed to the Google > >> Groups > >> > > "Django users" group. > >> > > To post to this group, send email to django-us...@googlegroups.com. > >> > > To unsubscribe from this group, send email to > >> > > django-users+unsubscr...@googlegroups.com > >> > > >> > > . > >> > > For more options, visit this group at > >> > >http://groups.google.com/group/django-users?hl=. > > >> -- > > >> You received this message because you are subscribed to the Google Groups > >> "Django users" group. > >> To post to this group, send email to django-us...@googlegroups.com. > >> To unsubscribe from this group, send email to > >> django-users+unsubscr...@googlegroups.com > >> . > >> For more options, visit this group at > >>http://groups.google.com/group/django-users?hl=. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=.
Re: Use Subversion to Download the Latest Django Version
Windows 98 On Nov 17, 12:41 pm, Mikey3D wrote: > I can't find it. I have Windows 7 64-bit and what you have said is > completely difference all together. > > Last year, my 11 years old computer can do: run >command. I haven't > setup what you were talking about. Am I missing something? > > Mikey3D > > On Nov 17, 12:17 pm, Angel Cruz wrote: > > > Your svn.exe is where you installed it. > > > If you can find it, do a search on the c: drive. > > > On Tue, Nov 17, 2009 at 9:16 AM, Angel Cruz wrote: > > >http://www.computerhope.com/issues/ch000549.htm > > > > On Tue, Nov 17, 2009 at 9:11 AM, Mikey3D wrote: > > > >> I can't find svn.exe. > > > >> Can you tell me howto? Steps... > > > >> Thanks, Mikey3D > > > >> On Nov 17, 12:00 pm, Angel Cruz wrote: > > >> > Add to the PATH variable the location of your svn.exe > > > >> > On Tue, Nov 17, 2009 at 8:58 AM, Mikey3D wrote: > > >> > > I just got new computer Win7 64-bit and I downloaded: > > > >> > > 64 Bit TortoiseSVN-1.6.6.17493-x64-svn-1.6.6.msi > > > >> > > After finished download >Restart >Start >Run >cmd > > > >> > > -- > > >> > > C:\Users\Mike>svn cohttp://code.djangoproject.com/svn/django/trunk/ > > >> > > 'svn' is not recognized as an internal or external command, operable > > >> > > program or batch file. > > > >> > > C:\Users\Mike> > > >> > > -- > > > >> > > What should I do? > > > >> > > Thanks, Mikey3D > > > >> > > -- > > > >> > > You received this message because you are subscribed to the Google > > >> Groups > > >> > > "Django users" group. > > >> > > To post to this group, send email to django-us...@googlegroups.com. > > >> > > To unsubscribe from this group, send email to > > >> > > django-users+unsubscr...@googlegroups.com > > >> > > > >> > > . > > >> > > For more options, visit this group at > > >> > >http://groups.google.com/group/django-users?hl=. > > > >> -- > > > >> You received this message because you are subscribed to the Google Groups > > >> "Django users" group. > > >> To post to this group, send email to django-us...@googlegroups.com. > > >> To unsubscribe from this group, send email to > > >> django-users+unsubscr...@googlegroups.com > > >> . > > >> For more options, visit this group at > > >>http://groups.google.com/group/django-users?hl=. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=.
Re: Use Subversion to Download the Latest Django Version
Tony, I right-clicked on desktop wallpaper and see SVN Checkout >URL of repository >http://code.djangoproject.com/svn/django/trunk/ >OK It download 10,83M Bytes Django of 13 files in 2 minutes and 19 seconds. Angel, I installed 64-bit Subversion from http://tortoisesvn.net/downloads Is that wrong Subversion but Tony explained that works. Do I still need cygwin? Thanks for your helps, Angel and Tony Mikey3D On Nov 17, 1:05 pm, Angel Cruz wrote: > So it seems TortoiseSVN does not include svn.exe? > > You need to install Subversion packaging then: > > http://subversion.tigris.org/getting.html#windows > (I have use VisualSVN in the past, but it seems like they don't have a > 64-bit version yet) > > Or you can use cygwin (which comes with svn.exe) for your shell. > > On Tue, Nov 17, 2009 at 9:48 AM, Tony Czeh wrote: > > TortoiseSVN is a graphical SVN client. If you right-click you should > > see an option for Tortoise that, when expanded, contains a check out > > option. From there, just follow the wizard. > > > Mikey3D wrote: > > > I just got new computer Win7 64-bit and I downloaded: > > > > 64 Bit TortoiseSVN-1.6.6.17493-x64-svn-1.6.6.msi > > > > After finished download >Restart >Start >Run >cmd > > > > -- > > > C:\Users\Mike>svn cohttp://code.djangoproject.com/svn/django/trunk/ > > > 'svn' is not recognized as an internal or external command, operable > > > program or batch file. > > > > C:\Users\Mike> > > > -- > > > > What should I do? > > > > Thanks, Mikey3D > > > > -- > > > > You received this message because you are subscribed to the Google Groups > > "Django users" group. > > > To post to this group, send email to django-us...@googlegroups.com. > > > To unsubscribe from this group, send email to > > django-users+unsubscr...@googlegroups.com > > . > > > For more options, visit this group at > >http://groups.google.com/group/django-users?hl=. > > > -- > > > You received this message because you are subscribed to the Google Groups > > "Django users" group. > > To post to this group, send email to django-us...@googlegroups.com. > > To unsubscribe from this group, send email to > > django-users+unsubscr...@googlegroups.com > > . > > For more options, visit this group at > >http://groups.google.com/group/django-users?hl=. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=.
Re: Use Subversion to Download the Latest Django Version
Tony, I right-clicked on desktop wallpaper and see SVN Checkout >URL of repository >http://code.djangoproject.com/svn/django/trunk/ >OK It download 10,83M Bytes Django of 13 files in 2 minutes and 19 seconds. Angel, I installed 64-bit Subversion from http://tortoisesvn.net/downloads Is that wrong Subversion but Tony explained that works. Do I still need cygwin? Thanks for your helps, Angel and Tony Mikey3D On Nov 17, 1:05 pm, Angel Cruz wrote: > So it seems TortoiseSVN does not include svn.exe? > > You need to install Subversion packaging then: > > http://subversion.tigris.org/getting.html#windows > (I have use VisualSVN in the past, but it seems like they don't have a > 64-bit version yet) > > Or you can use cygwin (which comes with svn.exe) for your shell. > > On Tue, Nov 17, 2009 at 9:48 AM, Tony Czeh wrote: > > TortoiseSVN is a graphical SVN client. If you right-click you should > > see an option for Tortoise that, when expanded, contains a check out > > option. From there, just follow the wizard. > > > Mikey3D wrote: > > > I just got new computer Win7 64-bit and I downloaded: > > > > 64 Bit TortoiseSVN-1.6.6.17493-x64-svn-1.6.6.msi > > > > After finished download >Restart >Start >Run >cmd > > > > -- > > > C:\Users\Mike>svn cohttp://code.djangoproject.com/svn/django/trunk/ > > > 'svn' is not recognized as an internal or external command, operable > > > program or batch file. > > > > C:\Users\Mike> > > > -- > > > > What should I do? > > > > Thanks, Mikey3D > > > > -- > > > > You received this message because you are subscribed to the Google Groups > > "Django users" group. > > > To post to this group, send email to django-us...@googlegroups.com. > > > To unsubscribe from this group, send email to > > django-users+unsubscr...@googlegroups.com > > . > > > For more options, visit this group at > >http://groups.google.com/group/django-users?hl=. > > > -- > > > You received this message because you are subscribed to the Google Groups > > "Django users" group. > > To post to this group, send email to django-us...@googlegroups.com. > > To unsubscribe from this group, send email to > > django-users+unsubscr...@googlegroups.com > > . > > For more options, visit this group at > >http://groups.google.com/group/django-users?hl=. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=.
Command (Windows+R >cmd) Python
I have new Windows 7 64-bit instead the old Windows 98. I'm going through setup before starting Django project. I downloaded Windows x86 MSI Installer (2.6.4) - http://www.python.org/download/ and I clicked Start >All Program >Python 2.6 >IDLE (Python GUI) I get: - Python 2.6.4 (r264:75708, Oct 26 2009, 08:23:19) [MSC v.1500 32 bit (Intel)] on win32 Type "copyright", "credits" or "license()" for more information. Personal firewall software may warn about the connection IDLE makes to its subprocess using this computer's internal loopback interface. This connection is not visible on any external interface and no data is sent to or received from the Internet. IDLE 2.6.4 >>> - So far, good but the problem is when I go to Windows+R >cmd >OK - C:\Users\Mike>python 'python' is not recognized as an internal or external command, operable program or batch file. C:\Users\Mike> - I don't know why it didn't work. Thanks, Mikey3D -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=.
Re: Command (Windows+R >cmd) Python
Thanks Steve, it works beautiful. ;) On Nov 20, 9:14 am, Steve Holden wrote: > The Python install isn't adding the directory containing the Python > executable to your windows PATH. You just need to add > ";C:\Python26;C:\Python26\Scripts" to the end of your path (which you can do > in My Computer | Properties | Advanced | Environment Variables. > > regards > Steve > > > > > > On Fri, Nov 20, 2009 at 9:10 AM, Mikey3D wrote: > > I have new Windows 7 64-bit instead the old Windows 98. I'm going > > through setup before starting Django project. > > > I downloaded Windows x86 MSI Installer (2.6.4) - > >http://www.python.org/download/ > > and I clicked Start >All Program >Python 2.6 >IDLE (Python GUI) > > > I get: > > > ----- > > Python 2.6.4 (r264:75708, Oct 26 2009, 08:23:19) [MSC v.1500 32 bit > > (Intel)] on win32 > > Type "copyright", "credits" or "license()" for more information. > > > > > Personal firewall software may warn about the connection IDLE > > makes to its subprocess using this computer's internal loopback > > interface. This connection is not visible on any external > > interface and no data is sent to or received from the Internet. > > > > > IDLE 2.6.4 > > > ----- > > > So far, good but the problem is when I go to Windows+R >cmd >OK > > > ----- > > C:\Users\Mike>python > > 'python' is not recognized as an internal or external command, > > operable program or batch file. > > > C:\Users\Mike> > > - > > > I don't know why it didn't work. > > > Thanks, Mikey3D > > > -- > > > You received this message because you are subscribed to the Google Groups > > "Django users" group. > > To post to this group, send email to django-us...@googlegroups.com. > > To unsubscribe from this group, send email to > > django-users+unsubscr...@googlegroups.com > > . > > For more options, visit this group at > >http://groups.google.com/group/django-users?hl=. > > -- > Steve Holden +1 571 484 6266 +1 800 494 3119 > Holden Web LLC http://www.holdenweb.com/- Hide quoted text - > > - Show quoted text - -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=.
IDLE (Python GUI)
Windows 7: My project is in: C:\Python26\Lib\site-packages\mysite I'm working on this section: Playing with the API http://docs.djangoproject.com/en/dev/intro/tutorial01/#playing-with-the-api When I do (Windows+R >cmd >OK) to do python shell (python manage.py shell) it works. But I have try other tool that come with Python26 is IDLE (Python GUI) and I get an error: Python 2.6.4 (r264:75708, Oct 26 2009, 08:23:19) [MSC v.1500 32 bit (Intel)] on win32 Type "copyright", "credits" or "license()" for more information. Personal firewall software may warn about the connection IDLE makes to its subprocess using this computer's internal loopback interface. This connection is not visible on any external interface and no data is sent to or received from the Internet. IDLE 2.6.4 No Subprocess >>> import mysite >>> from mysite.polls.models import Poll, Choice Traceback (most recent call last): File "", line 1, in from mysite.polls.models import Poll, Choice File "C:\Python26\Lib\site-packages\mysite\polls\models.py", line 1, in from django.db import models File "C:\Python26\Lib\site-packages\django\db\__init__.py", line 10, in if not settings.DATABASE_ENGINE: File "C:\Python26\Lib\site-packages\django\utils\functional.py", line 269, in __getattr__ self._setup() File "C:\Python26\Lib\site-packages\django\conf\__init__.py", line 38, in _setup raise ImportError("Settings cannot be imported, because environment variable %s is undefined." % ENVIRONMENT_VARIABLE) ImportError: Settings cannot be imported, because environment variable DJANGO_SETTINGS_MODULE is undefined. >>> ======== I don't understand how and where to settings DJANGO_SETTINGS_MODULE? Thanks, Mikey3D -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: IDLE (Python GUI)
templates". # Always use forward slashes, even on Windows. # Don't forget to use absolute paths, not relative paths. ) INSTALLED_APPS = ( 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites', 'mysite.polls' ) == I try this but get an error: Python 2.6.4 (r264:75708, Oct 26 2009, 08:23:19) [MSC v.1500 32 bit (Intel)] on win32 Type "copyright", "credits" or "license()" for more information. Personal firewall software may warn about the connection IDLE makes to its subprocess using this computer's internal loopback interface. This connection is not visible on any external interface and no data is sent to or received from the Internet. IDLE 2.6.4 >>> import mysite >>> from mysite.polls.models import Poll, Choice Traceback (most recent call last): File "", line 1, in from mysite.polls.models import Poll, Choice File "C:\Python26\Lib\site-packages\mysite\polls\models.py", line 1, in from django.db import models File "C:\Python26\Lib\site-packages\django\db\__init__.py", line 10, in if not settings.DATABASE_ENGINE: File "C:\Python26\Lib\site-packages\django\utils\functional.py", line 269, in __getattr__ self._setup() File "C:\Python26\Lib\site-packages\django\conf\__init__.py", line 40, in _setup self._wrapped = Settings(settings_module) File "C:\Python26\Lib\site-packages\django\conf\__init__.py", line 75, in __init__ raise ImportError, "Could not import settings '%s' (Is it on sys.path? Does it have syntax errors?): %s" % (self.SETTINGS_MODULE, e) ImportError: Could not import settings 'settings' (Is it on sys.path? Does it have syntax errors?): No module named settings >>> == The third task it does works: >>> import os >>> os.environ['DJANGO_SETTINGS_MODULE'] = "mysite.settings" >>> import mysite >>> from mysite.polls.models import Poll, Choice >>> Poll.objects.all() [] >>> import datetime >>> p = Poll(question="What's up?", pub_date=datetime.datetime.now()) >>> p.save() >>> p.id 1 >>> p.question "What's up?" >>> I have trying 3 difference tasks but the last one it works. Thanks, Nick On Nov 28, 7:06 pm, Nick Arnett wrote: > On Sat, Nov 28, 2009 at 3:21 PM, Mikey3D wrote: > > Windows 7: > > > My project is in: C:\Python26\Lib\site-packages\mysite > > > I'm working on this section: Playing with the API > >http://docs.djangoproject.com/en/dev/intro/tutorial01/#playing-with-t... > > > When I do (Windows+R >cmd >OK) to do python shell (python manage.py > > shell) it works. But I have try other tool that come with Python26 is > > IDLE (Python GUI) and I get an error: > > I think what you need is the following before you import anything from > Django: (or any module that imports from Django): > > import os > os.environ['DJANGO_SETTINGS_MODULE'] = "settings" > > (The absolute or relative path to your settings file.) > > Nick -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Django Book: The Django Administration Site
Hi, I'm reading thoroughly the new django book and on page 86, the figure 6-2, why didn't the Django Administration Site showing Ch6 except only Auth and Sites showing? I have trying all morning to figure it out but can't. Here are my files: # Django settings for mysite project. DEBUG = True TEMPLATE_DEBUG = DEBUG ADMINS = ( # ('Your Name', '[EMAIL PROTECTED]'), ) MANAGERS = ADMINS DATABASE_ENGINE = 'sqlite3' DATABASE_NAME = 'databook.db' DATABASE_USER = '' DATABASE_PASSWORD = '' DATABASE_HOST = '' DATABASE_PORT = '' TIME_ZONE = 'America/New_York' LANGUAGE_CODE = 'en-us' SITE_ID = 1 USE_I18N = True MEDIA_ROOT = '' MEDIA_URL = '' ADMIN_MEDIA_PREFIX = '/media/' # Make this unique, and don't share it with anybody. SECRET_KEY = 'm+e&w_07)j!y_$sw%)[EMAIL PROTECTED](d$mm3a88oeyx82mf==m-6ud7^' # List of callables that know how to import templates from various sources. TEMPLATE_LOADERS = ( 'django.template.loaders.filesystem.load_template_source', 'django.template.loaders.app_directories.load_template_source', # 'django.template.loaders.eggs.load_template_source', ) MIDDLEWARE_CLASSES = ( 'django.middleware.common.CommonMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.middleware.doc.XViewMiddleware', ) ROOT_URLCONF = 'mysite.urls' TEMPLATE_DIRS = ('C:/djcode/mysite/templates', ) INSTALLED_APPS = ( 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites', 'django.contrib.admin', 'mysite.books', ) --- urls.py from django.conf.urls.defaults import * from mysite.views import current_datetime, hours_ahead urlpatterns = patterns('', (r'^time/$', current_datetime), (r'^time/plus/(\d{1,2})/$', hours_ahead), # Uncomment this for admin: (r'^admin/', include('django.contrib.admin.urls')), ) -- models.py from django.db import models class Publisher(models.Model): name = models.CharField(max_length=30) address = models.CharField(max_length=50) city = models.CharField(max_length=60) state_province = models.CharField(max_length=30) country = models.CharField(max_length=50) website = models.URLField() class Admin: pass def __str__(self): return self.name class Meta: ordering = ["name"] class Author(models.Model): salutation = models.CharField(max_length=10) first_name = models.CharField(max_length=30) last_name = models.CharField(max_length=40) email = models.EmailField() headshot = models.ImageField(upload_to='/tmp') class Admin: pass def __str__(self): return '%s %s' % (self.first_name, self.last_name) class Book(models.Model): title = models.CharField(max_length=100) author = models.ManyToManyField(Author) publisher = models.ForeignKey(Publisher) publication_date = models.DateField() class Admin: pass def __str__(self): return self.title Thanks, Mikey3D PS: Windows 98 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
Re: Django Book: The Django Administration Site
Hi goober, I have done your suggestions before or I won't be able to create a superuser, right? I could login and there is no Ch6 but only Auth and Sites in Admin Interface. So I try again your suggestions: In command: python manage.py sql books "OR" python manage.py sqlall books > the same difference. Then python manage.py syncdb Then python manage.py runserver There is no Ch6. Thanks, Mikey3D --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
Re: Django Book: The Django Administration Site
Hi Elgringo, Thank you so much it works. :-) One question, why is that I have Auth and Sites are showing up when my "class Admin: pass" were wrong way of coding still works? Hi Ramiro, I wasn't sure what you mean by copy/paste error and inner class but Elgringo clearly what you were saying. Thank you. You know I can't copy/paste the text from new django book. I look over again on page 84 it was my mistakes. I using ActiveState Python IDE editor when I press enter twice it was way off. Cheer, Mikey3D --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
Chapter 7: Form Processing
I have an error: Exception Type: ImproperlyConfigured at /search/ Exception Value: Error while importing URLconf 'mysite.urls': 'tuple' object is not callable Here're the files: Module: mysite.books.views --- from django.db.models import Q from django.shortcuts import render_to_response from mysite.books.models import Book def search(request): query = request.GET.get('q', '') if query: qset = ( Q(title__icontains=query) | Q(authors__first_name__icontains=query) | Q(authors__last_name__icontains=query) ) results = Book.objects.filter(qset).distinct() else: results = [] return render_to_response("books/search.html", { "results": results, "query": query }) Module: mysite.url - from django.conf.urls.defaults import * from mysite.views import current_datetime, hours_ahead urlpatterns = patterns('', (r'^time/$', current_datetime), (r'^time/plus/(\d{1,2})/$', hours_ahead), (r'^search/$', 'mysite.books.views.search') # Uncomment this for admin: (r'^admin/', include('django.contrib.admin.urls')), ) What's the solution? Thanks, Mikey3D --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
Re: Chapter 7: Form Processing
FrankW, I have tried remove the quotes but it didn't work. Rajesh Dhawan, I have just add comma, it works. Thanks Rajesh but I get an error: - Exception Type: TemplateDoesNotExist at /search/ Exception Value: books/search.html Windows, I have put search.html file in: C:\djcode\mysite\books\templates\admin C:\djcode\mysite\books\templates C:\djcode\mysite\books None of them are working. Where should I put search.html file in? Thanks, Mikey3D --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
Re: Chapter 7: Form Processing
Hi Rajesh, The book chapter 7 doesn't say new sub-dir called books in your application's templates directory. For the beginners who are reading the Django book will get confusing. http://www.djangobook.com/en/1.0/chapter07/ Thank for the loading templates link, I have done chapter 4 with no problem. :-) Rajesh, you are very helpful. Thank you! Cheers, Mikey3D --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---