Import Error On appache

2008-12-11 Thread Lee
/') else: form = RegistrationForm() variables = RequestContext(request, { 'form': form }) return render_to_response('registration/register.html', variables) -

Re: Import Error On appache

2008-12-11 Thread Lee
Hi, Malcolm Thanks a lot. It works! cheers Lee On Dec 12, 12:30 pm, Malcolm Tredinnick wrote: > I've trimmed all but the pertinent bits below. > > On Thu, 2008-12-11 at 15:16 -0800, Lee wrote: > > [...] > > > The django Project folder is IntelligentNotesS

How to return a specified column from database

2008-12-13 Thread Lee
ere x = 1. If I want to return a specified column in this situation without using SQL query (select y from table where x =1), how to do it? Thanks Lee --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django

Re: How to return a specified column from database

2008-12-13 Thread Lee
Hi, James Bennett Thanks for you reply. Howerver, I have already read the database API documentation, and I can't find this method. On Dec 13, 11:13 pm, "James Bennett" wrote: > On Sat, Dec 13, 2008 at 5:55 AM, Lee wrote: > >    If I want to return a specified

Re: How to return a specified column from database

2008-12-13 Thread Lee
Hi, Antoni Aloy Thanks a lot. I got it. cheers Lee On Dec 13, 11:46 pm, "Antoni Aloy" wrote: > http://docs.djangoproject.com/en/dev/ref/models/querysets/ > > Check for values for exmple. Has a fields property that will allow you > to specify the fields you want to retu

Is there a bug in http://docs.djangoproject.com/en/dev/topics/db/models/ ?

2008-12-14 Thread lee
I create following with MySQL & phpmyadmin : CREATE TABLE `os_platform` ( `id` int NOT NULL auto_increment, `op_name` varchar(64) NOT NULL, PRIMARY KEY (`opid`) ) CREATE TABLE `product` ( `id` int NOT NULL auto_increment, `name` varchar(64) NOT NULL, `os_platform_id` int NOT NULL,

How to send custom value to the SelectMultiple Widget

2009-01-21 Thread Lee
Hi, everyone. I have some trouble in SelectMultiple Widget. The detailed information is that: In the form.py, I have defined a TestForm which contain a SelectMultiple Widget called selection #form.py class TestForm(forms.Form): selection = forms.CharField( widget=forms.SelectMultiple() ) How

Re: How to send custom value to the SelectMultiple Widget

2009-01-22 Thread Lee
x27;selection':{'1':'a','2':'b'}}) print f I want output like: a b However, the real output is: Title: Selection: regards Lee On Jan 22, 7:32 pm, Malcolm Tredinnick wrote: > On Wed, 2009-01-21 at 21:41 -0800, Lee wrote: > > Hi, ev

Re: How to send custom value to the SelectMultiple Widget

2009-01-22 Thread Lee
Thanks a lot. I'd like to pass the dynamic value to the choices, like what you said in the last situation. Could you please give me some more instructions, I'm new in python and django. regards Lee On Jan 22, 11:21 pm, Malcolm Tredinnick wrote: > On Thu, 2009-01-22 at 03:

Re: Mod_wsgi and Apache Problems - Unhandled request return Internal Server Error / Premature end of script headers

2009-08-08 Thread Lee
Interesting timing-- I have the same problem. My basic testing django app loads and works fine, but trying to access the admin causes the seg fault. Unfortunately I'll have to wait until my sys admin is available on Monday to try Graham's vhost config suggestions... I'm hoping that fixes it. O

Re: Mod_wsgi and Apache Problems - Unhandled request return Internal Server Error / Premature end of script headers

2009-08-08 Thread Lee
On Aug 8, 5:55 pm, Lee wrote: > Interesting timing-- I have the same problem.  My basic testing django > app loads and works fine, but trying to access the admin causes the > seg fault.  Unfortunately I'll have to wait until my sys admin is > available on Monday to try Grah

Re: Can I limit the choices in a ContentType field in admin?

2009-04-01 Thread Lee
You're close... change your method in CHOICES to get_for_model( _model_ ) So it should be CHOICES = ( (ContentType.objects.get_for_model(My_Model), "Model 1"), (ContentType.objects.get_for_model(My_Other_Model), "Model 2"), ) Obviously, make sure you import your model before

Re: Can I limit the choices in a ContentType field in admin?

2009-04-01 Thread Lee
gnKey(ContentType, limit_choices_to= {'id__in': CONTENT_TYPE_CHOICES}) On Apr 1, 11:48 am, Lee wrote: > You're close... > > change your method in CHOICES to get_for_model( _model_ ) > > So it should be > CHOICES = ( >         (ContentType.

進入參觀-XYZ軟體小站

2007-07-09 Thread lee
進入參觀-XYZ軟體小站 http://xyz22.com CQC0103 Sisulizer Enterprise v1.5.12 繁體中文正式版(視化編輯工具翻譯文本) CQC0102 Compuware DevPartner for Visual C Plus Plus BoundsChecker Suite v8.2 英文正式版(程 式調試工具) CQC0101 TestLog v3.0.1008 英文正式版(綜合測試案例的關係系統軟體) CQC0100 NuSphere PhpED v5.0 英文正式版(編程開發軟體) CQC0099 Heaventools PE Explor

進入參觀-XYZ軟體小站

2007-07-09 Thread lee
進入參觀-XYZ軟體小站 http://xyz22.com CQC0103 Sisulizer Enterprise v1.5.12 繁體中文正式版(視化編輯工具翻譯文本) CQC0102 Compuware DevPartner for Visual C Plus Plus BoundsChecker Suite v8.2 英文正式版(程 式調試工具) CQC0101 TestLog v3.0.1008 英文正式版(綜合測試案例的關係系統軟體) CQC0100 NuSphere PhpED v5.0 英文正式版(編程開發軟體) CQC0099 Heaventools PE Explor

討論 django-developer-position-in-tampa

2007-07-09 Thread lee
進入參觀-XYZ軟體小站 --~--~-~--~~~---~--~~ 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

討論 django-developer-position-in-tampa

2007-07-09 Thread lee
進入參觀-XYZ軟體小站 http://xyz22.com CQC0103 Sisulizer Enterprise v1.5.12 繁體中文正式版(視化編輯工具翻譯文本) CQC0102 Compuware DevPartner for Visual C Plus Plus BoundsChecker Suite v8.2 英文正式版(程 式調試工具) CQC0101 TestLog v3.0.1008 英文正式版(綜合測試案例的關係系統軟體) CQC0100 NuSphere PhpED v5.0 英文正式版(編程開發軟體) CQC0099 Heaventools PE Explor

討論 django-developer-position-in-tampa

2007-07-09 Thread lee
進入參觀-XYZ軟體小站 http://xyz22.com CQC0103 Sisulizer Enterprise v1.5.12 繁體中文正式版(視化編輯工具翻譯文本) CQC0102 Compuware DevPartner for Visual C Plus Plus BoundsChecker Suite v8.2 英文正式版(程 式調試工具) CQC0101 TestLog v3.0.1008 英文正式版(綜合測試案例的關係系統軟體) CQC0100 NuSphere PhpED v5.0 英文正式版(編程開發軟體) CQC0099 Heaventools PE Explor

how do designers create content

2008-04-19 Thread lee
forms, or editors or graphic packages? Lee --~--~-~--~~~---~--~~ 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

Re: how do designers create content

2008-04-22 Thread lee
oswd.org) http://www.oswd.org/design/preview/id/3465/ In the django world of template coding would the artist be the one who added content to this layout or the programmer? Would he use a text editor to add the django template code for dynamic content or something like dreamweaver? Lee On Apr 21, 2

Break mobile phone brand fashion trend

2008-05-13 Thread lee
http://www.brandedsite.com/ [EMAIL PROTECTED] Nike Air Jordan 1 ,Nike Air Jordan 2 Shoes,Nike Air Jordan 3,Nike Air Jordan 4 Shoes ,Nike Air Jordan 5 Chaussure Shoes,Nike Air Jordan 6 Catalog ,Nike Air Jordan 7 Shoes Catalog , Nike Air Jordan 8 Customized ,Nike Air Jordan 9 Shoes Customized ,Nik

We have a lot of good things here! ~ ~ Come and see

2008-05-13 Thread lee
HOMEPAGE: http://www.brandedsite.com CONTACT: [EMAIL PROTECTED] PAYMENT: Western Union / Bank of china / paypal We are a proffesional asian wholesaler of --wholesale cheap Nike Sneakers: Air Force One,Air Jordans1-22, Jordan2.2,Jordan2.5,3.5,4.5, 6.5,7.5,13.5,15.5,21.5

a href links on multi select box

2008-05-22 Thread lee
hat object. I'm not sure if this is possible as it is, or whether I would need add this in. If so, could you point me in the right direction. Cheers. - Lee. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "

many to many filter_interface on both sides of the relationship in admin

2008-05-30 Thread lee
Guys, I have a many to many relationship and have the filter_interface in the edit page of one end of the relationship and want the same for the other. Is this possible? - Lee. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

show reverse relationship on admin pages

2008-06-03 Thread lee
I need to make this modification? Many thanks. - Lee. --~--~-~--~~~---~--~~ 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 f

default value for filter in admin pages

2008-06-26 Thread lee
the admin page, I want the default value for the 'isClosed' field to be 'no', not 'All'. Thanks. - Lee. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group.

how to user generic views (object_list) to show dynamic list ?

2007-03-02 Thread lee
Hi I have a problem how to use generic views (object_list) to show dynamic list ? for exaple, my model is a movie with a category , I want to accomplish this : when I access http://.../action , in which action is a category name, then it display all the movie objects in the a

Re: how to user generic views (object_list) to show dynamic list ?

2007-03-03 Thread lee
thank you for your help! works well now :) 2007/3/3, Henrik Lied <[EMAIL PROTECTED]>: > > > Yeah, just pass an extra argument in the urls.py, like /files/(? > P[-\w]+), and filter your queryset. Take a look at > > http://www.b-list.org/weblog/2006/11/16/django-tips-get-most-out-generic-views > >

use newforms in regestration problem

2007-02-11 Thread lee
hi all, I am a newbie to django, I want to use 'newforms' module to generate a regestration page, because it can validate the data automatically, but there is a problem: As usual, web site always let people input password twice when regestering , so how could I check whether the two pass

Re: use newforms in regestration problem

2007-02-11 Thread lee
2007/2/11, Honza Král <[EMAIL PROTECTED]>: > > > you can just add a clean_password method to your Form class that would > compare the two fields values and raise a ValidationError if they > don't match Thank you for your reply ,but I can't very understand your meaning , this is what I write : c

Re: use newforms in regestration problem

2007-02-11 Thread lee
Thank you ! That's exactly what I want. and I found http://code.djangoproject.com/browser/django/trunk/tests/regressiontests/forms/tests.py#L2243 is better Thank you again ! 2007/2/12, Matt H <[EMAIL PROTECTED]>: > > Here's an example from the documentation for newforms. > >

manytomany not working

2005-12-03 Thread Lee
Using revision 1526: I define two model classes, one with a manytomany field to the other. The expected convenience functions for looking up related objects are only created for one of the classes. Reverting to revision 1039 and making no other changes, everything works. (I reverted to that becau

Re: manytomany not working

2005-12-05 Thread Lee
Never mind. I followed the advice given in another thread from today and deleted all the .pyc files, re-upped to the current version, and everything works. I also had to quit and restart my ipython session: although I thought I was reloading, not everything was getting reloaded.

changelist link in change_form.html

2012-03-30 Thread Lee
A 1.3-compatible solution would be best. Thanks for any help or ideas. Lee -- 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 t

Django graphical query interface?

2012-05-19 Thread Lee
I'm in need of a graphical query interface for my Django app, similar to what OpenOffice Base and MS Access provide. Ideally it would allow the user to select a Django Admin action to perform on the returned results, or drill into the related records. I struck out with google and Django Packages. A

Admin site - search by related ManyToMany

2012-05-27 Thread Lee
What I would like is a basic Item Search by Characteristic page, that displays a text box for each defined Characteristic, labeled with the Characteristic name, and filters the Items changelist to show only Items that are assigned the chosen Characteristics, with the entered Characteristic valu

Re: Django Not Populating AutoField

2011-08-19 Thread Lee
<> Did so -- no effect. I even disabled my overridden save_model so I'm back to out-of-the-box Admin setup -- no effect. This is with Postgres and the psycopg2 driver. Is no one else seeing this problem? On Aug 18, 5:32 pm, Shawn Milochik wrote: > As defined your id field doesn't differ from Dja

Re: Django Not Populating AutoField

2011-08-19 Thread Lee
DBMSes, and the sequence/nextval syntax is Postgres-specific so I have not been using dbsync. I was hoping AutoField caused the *application* to manage the auto- incrementing primary key, not the database -- is there an easy way to do this in Django/Admin? Thanks very much for the help. Lee

Admin TabularInline collapsed fieldset missing expand button

2011-08-20 Thread Lee
d for hours and see related posts but no solution. Thanks for any help. Lee -- 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, se

Admin Stopped Saving Record Changes!

2011-08-21 Thread Lee
cord is not affected, and editing the supposedly saved record in Admin shows the old version without changes. I'm using Apache not the development server. Backend is Postgres. Any help would be greatly appreciated. Lee -- You received this message because you are subscribed to the Google Gr

Re: Admin Stopped Saving Record Changes!

2011-08-21 Thread Lee
Solved: in the process of fixing indentation errors I accidentally indented "obj.save()" so that it only fired on inserts not updates. Interesting that Admin still generated the "Successful" message when no save occurred. -- You received this message because you are subscribed to the Google Group

Re: Admin TabularInline collapsed fieldset missing expand button

2011-08-22 Thread Lee
Is no one else having problems with collapsed TabularInlines? Seems like this would be a very popular widget, and very important for any serious database app. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to d

TabularInline save_model()?

2011-08-22 Thread Lee
aving an existing record through a TabularInline? Thanks very much for any help. Lee -- 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, s

Re: TabularInline save_model()?

2011-08-23 Thread Lee
Jeez what an easy solution, but I sure with InlineModelAdmin would just do it for us and save us the code. In models.py (genericized and not tested, sorry for any syntax errors): class MyJoinTable(model.Model): parent_table = models.ForeignKey(ParentTable) ... def save(self,*args,**kw

Admin TabularInline add-another icon wraps onto another line

2011-09-04 Thread Lee
e right of the select list instead of below it? Thanks for any help. Lee -- 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 em

Admin TabularInline Edit Parent Record?

2011-09-05 Thread Lee
ve an edit icon (often a pencil) that would edit the related parent record. Any easy way to to do that? Thanks for any help or ideas. Lee -- 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

TabularInline ordering ignored

2011-09-15 Thread Lee
The ordering option of TabularInline is ignored on my Django 1.3 installation. It just orders by the default ascending Id. Any ideas on how to activate this option? -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send emai

Admin WCAG Conformance

2011-09-26 Thread Lee
The only reference I see to WCAG in this forum is from 2007. What is the current level of conformance to WCAG for the Admin interface? Thanks- Lee -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email

Re: Admin TabularInline Edit Parent Record?

2011-09-27 Thread Lee
Found this snippet, have not tried it yet: http://djangosnippets.org/snippets/431/ -- 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

How to access model class for a ModelAdmin?

2011-10-18 Thread Lee
This must be easy but I'm not finding it in the docs. I need to access the model class corresponding to the current ModelAdmin instance, so that I can iterate through its objects. I need to do this generically so that I can use the routine in all ModelAdmins. Thanks for any help. Lee --

How to do string operations in Templates?

2011-10-22 Thread Lee
New to template language. I've perused the docs but can't find how to do basic string operations like regex match/replace on {{ string variables }} within a template. Can someone please steer me to the right docs? Thanks much- Lee -- You received this message because you are subscri

TabularInline "Add another" link not clickable

2011-10-30 Thread Lee
I checked CSS and I haven't changed anything that affects these links. Any ideas? Thanks- Lee -- 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 fr

Re: TabularInline "Add another" link not clickable

2011-10-30 Thread Lee
More info: actually the *last* "Add another" link on the page is clickable (I have multiple TabularInlines, one for each related table), the others are not. Lee -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to th

Re: TabularInline "Add another" link not clickable

2011-10-31 Thread Lee
This CSS tweak fixed it: div.inline-group { display: inline-block; } -- 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 django-u

Admin Change List: Display Foreign Keys as Links to Related Change Form

2011-11-13 Thread Lee
This has gotta be easy but I'm not finding a solution in this list or snippets: how do I make Admin display foreign keys on change lists as links to the related record's change form? The displayed value is correct I just need it to be a hyperlink. Thanks for any help- Lee -- You rec

Accessing Model Property from Admin Index Page

2011-11-21 Thread Lee
erty(get_my_property) Now I want to display this property on the index page in a {{ }} variable tag. What is the correct syntax, and where can I find this in the docs? Thanks very much for any help. Lee -- You received this message because you are subscribed to the Google Groups "Django

Re: Accessing Model Property from Admin Index Page

2011-11-22 Thread Lee
ay to show the results of model methods on the same page so that we can provide a dashboard of statistics from the database. I appreciate your help. Lee -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email

Re: Admin Change List: Display Foreign Keys as Links to Related Change Form

2011-12-15 Thread Lee
model/change_list to display foreign keys as hyperlinks? Thanks for all help. Lee On Nov 13, 8:10 pm, Sumii L wrote: > Perhaps you have a foreignkey, Assumption is that person > just like this:( in your models) > def go_person(self): > return mark_safe(u'%s' % >

Freeze changelist ?

2012-01-15 Thread Lee
ated posts involving javascript, browser-specific hacks, etc. I'm looking for an elegant Django/Python solution that doesn't involve a lot of code and that will affect all changelists in an application. Any help greatly appreciated, and fee-based development proposals are welcome. Thanks- L

Re: how to start learning Django in Windows Platform

2013-10-01 Thread Lee
You know Python already? If not, personally I'd recommend looking at that a little first before jumping feet first into Django. The python docs are pretty good and I liked Learn Python the Hard Way. Thanks On Tuesday, 1 October 2013 16:42:59 UTC+1, Ahsan Ahmad wrote: > > Hi, > This is Ahsan. an

Python 3

2013-10-23 Thread Lee
Is there any particular advantage of using Python 3 at this point specifically in regards to Django projects? I'm starting to build a new application and I am wondering whether its really worth considering the move to Python 3. I've only really read about the disadvantages (3rd party libs mainl

Re: Tango with Django Chapter 7 (Add_page)

2013-11-14 Thread Lee
Noob here so I may be way wrong but it looks to me like your problem is probably in link in category page when generating the link to add_page, given the url in the error is missing the category name in the URL. Have you passed category_name_url from your view function to the category template?

Re: Tango with Django Chapter 7 (Add_page)

2013-11-14 Thread Lee
No problem at all, glad it worked out for you :-) Good luck with the rest of the tutorial Cheers On Thursday, 14 November 2013 12:16:06 UTC, Amimo Benja wrote: > > Thanks Lee, it worked. The problem was I had not passed category_name_url > from my view function to the category temp

Overridden Admin Template Not Recognized

2011-05-26 Thread Lee
ecked TEMPLATE_DIRS in settings.py and it includes the myproject/templates directory. Thanks for any help or ideas. Lee -- 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.

Re: Django Model Designer - UML

2011-05-27 Thread Lee
If you can generate the DDL with your tools, build the new database and point inspectdb at it to generate Django models: https://docs.djangoproject.com/en/dev/howto/legacy-databases/?from=olddocs?from=olddocs On May 27, 8:06 am, Mateusz Harasymczuk wrote: > I am looking for a GUI tool for modeli

Django Admin static base.css ignored

2011-05-27 Thread Lee
Any ideas? Thanks for any help. Lee -- 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 django-users+unsubscr...@googlegroups.c

Re: Django Admin static base.css ignored

2011-05-27 Thread Lee
> How are you telling Django about your overridden CSS? Are you specifying it > in the ModelAdmin class, or in an overridden template? > > I hope you're not expecting it to be picked up automatically, as there's > nothing in the documentation to imply that is the case. > -- > DR. Well, collectstat

Auditing Record Changes in All Admin Tables

2011-05-27 Thread Lee
All of my tables have 4 audit fields: created (timestamp) created_by (user name) updated (timestamp) updated_by (user name) I'd like to define a subclass of models.Model that sets these fields on create/update, and then make all my models of that subclass -- but all the related posts I see imply

Multiple inheritance from models.Model and admin.ModelAdmin

2011-05-31 Thread Lee
ass of the metaclasses of all its bases". I've googled on the error message and tried a couple of the suggestions but with no luck. Anyone know the correct way of doing this? Thanks for any help. Lee -- You received this message because you are subscribed to the Google Groups &quo

Re: Multiple inheritance from models.Model and admin.ModelAdmin

2011-05-31 Thread Lee
Discovered that save_model() is still available even if I don't inherit admin.ModelAdmin, which avoids the metaclass conflict. On May 31, 10:36 am, Lee wrote: > I'm trying to create a class that inherits from both models.Model and > admin.ModelAdmin, so that I can use models.Man

Re: Auditing Record Changes in All Admin Tables

2011-05-31 Thread Lee
Thanks for that tip Ryan. Here's the relevant models.py code I used to get this to _almost_ work: - class AuditedTable(models.Model): created = models.DateTimeField(auto_now_add=True) created_by = models.CharField(blank=True,max_length=20) updated = models.DateTimeField(auto_n

Re: Auditing Record Changes in All Admin Tables

2011-05-31 Thread Lee
Moved it to admin.py but it ignores the auto_now parameters (leaving timestamps blank) and doesn't populate the created_by/updated_by fields either: class AuditAdmin(admin.ModelAdmin): created = models.DateTimeField(auto_now_add=True) created_by = models.CharField(blank=True,max_length=20) u

Re: Auditing Record Changes in All Admin Tables

2011-06-01 Thread Lee
as on those 2 issues? I think this thread will help a lot of struggling newbies like me. Thanks, Lee On Jun 1, 12:08 am, Ryan wrote: > The model code still needs to stay in the model, it is just the save_model > method had to be moved to the admin.py.  I think the following is what you &g

Re: Auditing Record Changes in All Admin Tables

2011-06-01 Thread Lee
Found the solution to display the audit fields in the change list and change form -- add these lines in admin.py: class Entity1Admin(AuditAdmin): list_display = ('title','created','created_by','updated','updated_by') readonly_fields = ('created','created_by','updated','updated_by') So now I j

Re: Auditing Record Changes in All Admin Tables

2011-06-01 Thread Lee
Bingo! Everything's working. Here's the complete solution for others: models.py - from django.db import models from django.contrib import admin class AuditedTable(models.Model): created = models.DateTimeField(auto_now_add=True) created_by = models.CharField(blank=True,max_length=2

Re: Overridden Admin Template Not Recognized

2011-06-01 Thread Lee
TEMPLATE_LOADERS has that line out of the box in 1.3 I moved my app before admin in INSTALLED_APPS but no help. Finally found the answer in this post: http://stackoverflow.com/questions/2263808/how-to-override-django-edit-inline-tabular-html-for-only-1-app Put tabular.html in myproject/templates

Re: Django Admin static base.css ignored

2011-06-01 Thread Lee
This worked for me: settings.py -- STATIC_ROOT = '/path_to_my_project/static/' STATIC_URL = '/static/' STATICFILES_DIRS = ('/path_to_my_project/css/',) STATICFILES_FINDERS = ( 'django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.AppDirecto

Changing App/Model Names and Sort Order in index.html

2011-08-14 Thread Lee
Is there an easy way to change "Auth" to "My Authentication App Name" in index.html? I tried changing {{ name }} to {{ string.replace(name,'Auth','My Authentication App Name') }} but it just kills the label completely -- hopefully just a syntax problem. How about changing the order that the models

Re: Beginning with a feature flag system

2014-07-09 Thread Lee
Godjango has a short video on waffle. Might be enough to give you an idea on how to use it https://godjango.com/31-django-waffle/ I've not watched it myself yet though -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this g

django admin

2014-07-10 Thread Lee
I don't want to come across as unhelpful but people will really appreciate it if you at least try the following: 1) Properly and clearly describe your problem 2) At least show what you've done so far to try to resolve it 3) Accept and action guidance those here have been kind enough to provide it

Community blog posts

2014-08-01 Thread Lee
Am I the only one who gets irritated by the periodic mass re-posting of strings of old blog articles to the community feed on djangoproject? I want to see fresh stuff I've not seen before, not the same rubbish I ignored the first three times it was posted. Seems like a pretty cheap shot to keep

Re: admin site not available after modifying base_site.html

2014-08-07 Thread Lee
You shouldn't need to run runserver.py directly. You should change into your project directory (where manage.py lives) and use: python manage.py runserver On Thursday, 7 August 2014 03:10:44 UTC+1, Eric G wrote: > > Yeah, I tried running the runserver.py script from the django-trunk file, > an

Re: mixing python , php and django

2014-08-14 Thread Lee
If its just the two of you creating small web site projects then I doubt its worth the cost in time, effort and money for the added complexity that would be present with using two different server side languages. I'd suggest working out some common ground personally, rather than going that rout

Re: cms web buyilding

2014-08-16 Thread Lee
Most cms' of that ilk fits a very specific set of needs. Once you need to move outside the mould they give you and need to customise it for a specific business requirement, without some level of understanding of coding and the chosen cms' underpinnings he'll find it very difficult to proceed any

Re: cms web buyilding

2014-08-18 Thread Lee
Did you even read the replies you already received? I can't help but think you are trolling this board and on that basis, this'll be the last time I respond to any of your questions. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscri

develeopment servers stops at syntax error.

2014-09-12 Thread Lee
Providing the actual error and traceback would be the only way we can really help you. Could you paste that here? Thanks -- 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: Config: DB or git?

2014-10-02 Thread Lee
Isnt convenience vs flexibility the difference between choosing to use a full CMS and choosing to use a web development framework? Id look for that in the former, but not the latter - though Im sure .net "programmers" would disagree ;-) On Thursday, 2 October 2014 12:23:15 UTC+1, guettli wrote:

Re: djangoproject.com tutorial part 3

2014-10-20 Thread Lee
When you say nothing changes, how are you calling the page? And what do you see in your browser - any error message or stack trace or is it just a blank page? Also I assume the below were copied from the tutorial. Can you post the contents of the three files as you typed them in your code? On

Re: djangoproject.com tutorial part 3

2014-10-21 Thread Lee
Im not sure I understand so maybe I am stating the obvious here... but "python manage.py runserver" shouldnt call the page. It should start your dev server. Then you call http://localhost:8000/polls as Daniel mentioned when the server is started. On Tuesday, 21 October 2014 18:14:34 UTC+1, Tri

Re: Finished and Published Tango with Rango Tutorials

2013-11-30 Thread Lee
Presumably you are talking about the left menu being broken and the 'Find a category' not working? For the first, looks like you are missing a closing div for the top nav bar. Regarding the Find a category not working, I had the same issue and there was a problem in the tutorial with an extra t

Re: Django apps

2014-04-01 Thread Lee
Start here and follow the tutorial: https://docs.djangoproject.com/en/1.6/intro/tutorial01/ Then you may want to run through this if you are interested in the goe stuff: https://docs.djangoproject.com/en/1.6/ref/contrib/gis/tutorial/ That should give you a good idea on where to start with your

Re: views

2014-04-17 Thread Lee
Go through the tutorial linked in the other post before trying to write your own apps. That'll cover all the questions you just asked -- 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: Django

2014-04-24 Thread Lee
Can you share your views.py, result.html and urls.py? On Thursday, 24 April 2014 12:10:33 UTC+1, Srinivasulu Reddy wrote: > > > > On Wednesday, April 23, 2014 2:57:45 PM UTC+5:30, Srinivasulu Reddy wrote: >> >> Hi Folksl , >> >> >> In dealing with poll app tutorial 4 i am getting an error,

Re: Django

2014-04-25 Thread Lee
In case you dont see my email, I copy my reply here too: Hi, Your problem is in the results view function. I'm not sure what version of the tutorial you are following, but assuming you are using Django 1.6, the following: def results(request, poll_id): poll = get_object_or_404(Poll, poll_

Re: I can't run django server nor activate the virtualenv

2014-05-01 Thread Lee
Please be more specific about your problem as its difficult to help when we don't know exactly what you are seeing. Have you managed to activate your virtualenv on ubuntu? If not, what specific error are you getting? I see two problems here so far, regarding the import error, that means you are

Re: I can't run django server nor activate the virtualenv

2014-05-01 Thread Lee
Enter the following command from the bin folder: *source activate* Thanks On Monday, 28 April 2014 11:03:40 UTC+1, Fred DJar wrote: > > > > > *Hello guys, i'm a newbie so bear with me :)I have installed python 2.7 > and django 1.6 on my desktop (ubuntu 14)but i can't run the application or > a

Re: I can't run django server nor activate the virtualenv

2014-05-01 Thread Lee
Next command: pip install -r requirements >From the directory where the requirements file is of course... And assuming >the requirements file has all the requirements of whatever you are trying to >run in it -- You received this message because you are subscribed to the Google Groups "Django

Re: I can't run django server nor activate the virtualenv

2014-05-01 Thread Lee
Also be aware that from the stack trace, it looks like you have django installed into the global site packages rather than your virtualenv. The main point of virtualenv is to avoid that and have isolated environments. But it's not really a problem as long as you are aware of the fact that you ar

Re: I can't run django server nor activate the virtualenv

2014-05-01 Thread Lee
No, you were in the right locatin before. Look at your last screenshot. There was a file called requirements and you do it from there. If it does not work, please confirm what is in that requirements file -- You received this message because you are subscribed to the Google Groups "Django user

Re: I can't run django server nor activate the virtualenv

2014-05-02 Thread Lee
So it looks like its uninstalling the Django you already have installed in the global packages, in order to install the version specified in the requirements file, but is hitting a permissions error in doing so because you are not logged in as root (or elevating with sudo). I presume your virtu

  1   2   3   4   5   >