Accidentally creating a model with "def unicode(self):" will crash django with no stack trace

2008-10-22 Thread Brian
ave someone some pain. :) All the best, Brian --~--~-~--~~~---~--~~ 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 gr

Re: Accidentally creating a model with "def unicode(self):" will crash django with no stack trace

2008-10-23 Thread Brian
; to "__unicode__". On Oct 22, 10:14 pm, "Karen Tracey" <[EMAIL PROTECTED]> wrote: > On Wed, Oct 22, 2008 at 9:45 PM, Brian <[EMAIL PROTECTED]> wrote: > > > This might seem obvious, and I just spend a couple hours straining > > over it, so I thought

Configuring multiple Django installs transparently via FastCGI mutiplexing

2008-11-26 Thread Brian
Hi everyone, Here's a questions I just posted on stackoverflow.com (because I like that forum's layout) - but I thought posting it here might lead to more / better coverage. See: http://stackoverflow.com/questions/322694/ Multiple installs of Django - How to configure transparent multiplex thro

Re: Configuring multiple Django installs transparently via FastCGI mutiplexing

2008-11-26 Thread Brian
lots of Django instances). Is there any more information that would be helpful? Cheers & thank you, Brian On Nov 26, 10:32 pm, Graham Dumpleton <[EMAIL PROTECTED]> wrote: > On Nov 27, 2:06 pm, Brian <[EMAIL PROTECTED]> wrote: > > > Hi everyone, > > > Here

Re: Configuring multiple Django installs transparently via FastCGI mutiplexing

2008-11-26 Thread Brian
gt; On Nov 27, 3:17 pm, Brian <[EMAIL PROTECTED]> wrote: > > > > > Hi Graham, > > > Thanks for the reply. No, I'm not stuck using Lighttpd at all - I just > > like it because it's simple and fast. :) > > > Here's a link to a description o

Re: Configuring multiple Django installs transparently via FastCGI mutiplexing

2008-11-26 Thread Brian
ebserver forums. I'd prefer a Django solution to a webserver one, though, because it's the right place to do it. I hope that clarifies the explanation some, and makes this vein of inquiry of some value to the body of Django knowledge. If it's not something that's a workable Djan

Re: Configuring multiple Django installs transparently via FastCGI mutiplexing

2008-11-27 Thread Brian
would then be > seen as okay? Yes, a cap on the number of accounts is definitely possible in the short term. > Sorry, if I seem to be asking a lot of questions, but believe might > have a manageable solution for you, but want to be clear on these > things so know if will be or not and

Re: Configuring multiple Django installs transparently via FastCGI mutiplexing

2008-11-27 Thread Brian
> > This is a good question, and I haven't come to a conclusion. Probably > > it'll be the Django built-in application-based authentication, > > particular to each Django instance. There will be a master map of all > > users to their respective Django instance. > > That seems a bit like a chicken

Beginners questions on forms containing multiple related model types.

2008-12-15 Thread Brian
Hi, I'm new to django and have been working hard to find "the right way" or at least "a good way" to do things. I'm running into a few problems though that I can't get answers for. The following post describes my situation very clearly. It may be long-winded but hopefully it's unambiguous. I'

Re: Your IDE of choice

2009-01-06 Thread Brian
For Python/Django I tend to like Komodo's Editor, as I am a fan of auto-complete and $free. --~--~-~--~~~---~--~~ 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@googl

no objects found

2009-01-14 Thread Brian
odels.Model): [...] software = models.ForeignKey(software) [...] license_key = models.ForeignKey(license_key,null=True,blank=True) [...] class license_key(models.Model): [...] license = models.ForeignKey(license) [...] class license(models.Model): [...] Any ideas? Is this a django bug? If so is i

Django crashes Python without traceback on Mac OS X (Release 1.0)

2008-10-18 Thread Brian
solve the problem. I'm not sure how to go about debugging it. Thought I'd share. :) Thanks & best, Brian Process: Python [5921] Path:/System/Library/Frameworks/Python.framework/Versions/ 2.5/Resources/Python.app/Contents/MacOS/Python Identifier:

Re: no objects found

2009-01-14 Thread Brian
On Jan 15, 1:57 pm, Malcolm Tredinnick wrote: > Please open a ticket for this and assign it to me (mtredinnick in Trac), Ok, done. Thanks. <http://code.djangoproject.com/ticket/10028> Brian May --~--~-~--~~~---~--~~ You received this message becaus

Model Form Field Ordering

2009-02-04 Thread Brian
I have a ModelForm subclass where I define a special field. How do I make that special field appear first in the rendered form (using a form.as_* method)? Here is an example: class MyModelForm(forms.ModelForm): mySpecialField = forms.ChoiceField(label='Special', choices=(('a', 'aa'))) cl

Bookmark URL with form data

2009-02-22 Thread Brian
My experience level: basic. I'm not a developer by trade and do it as a hobby. I'm pretty familiar with basic web development--HTML, CSS and js. I have explored PHP and other technologies to improve my development. Now I've started developing using Django+App Engine Datastore. I've got an applicat

Saving Deserialized Objects -- Help Needed

2009-03-09 Thread Brian
I'm having trouble saving deserialied model objects. My setup is that I have two django instances, let's call them A and B. The intial request comes into server A which then serializes some objects and sends them off to server B for the results of some computation. When server B tries to save the

Re: raise ValidationError has no effect

2009-04-08 Thread brian
I think I'm having the same issue. Did you ever find a solution? On Feb 14, 5:06 pm, Karen Tracey wrote: > On Sat, Feb 14, 2009 at 11:07 AM, Alistair Marshall < > > runninga...@googlemail.com> wrote: > > > I have been trying to create a custom field that allows the user to > > enter a flowrate

Re: Running Django on Tornado's HTTP server

2009-09-14 Thread Brian
with Ubuntu!) The real-time / asynchronous capabilities look great. Any way Django apps can take advantage of that functionality? Thanks for open sourcing this! -- Brian On Sep 13, 4:26 pm, Bret Taylor wrote: > I am one of the authors of Tornado (http://www.tornadoweb.org/), the >

Re: Running Django on Tornado's HTTP server

2009-09-15 Thread Brian
and Django. My Admin Site formatting and layout looks fine with that setup. -- Brian On Sep 15, 6:26 am, fruits wrote: > media files for admin is handled by the django dev server. So when you > change the server, you have to serve admin media file yourself. > > http://docs.djangopro

Dynamically content in include statement not working

2010-05-12 Thread Brian
Help: Chapter 4: The Django Template System http://www.djangobook.com/en/1.0/chapter04/ This example includes the contents of the template whose name is contained in the variable template_name: {% include template_name %} All i'm trying to do is dynamically include an html template file: This

Dynamically content in include statement not working

2010-05-12 Thread Brian
Help: Chapter 4: The Django Template System http://www.djangobook.com/en/1.0/chapter04/ This example includes the contents of the template whose name is contained in the variable template_name: {% include template_name %} All i'm trying to do is dynamically include a html template file This wo

Re: Dynamically content in include statement not working

2010-05-12 Thread Brian
t;FooterMessage.htm") On May 12, 11:19 am, Tom Evans wrote: > On Wed, May 12, 2010 at 4:10 PM, Brian wrote: > > Help: > > > Chapter 4: The Django Template System > >http://www.djangobook.com/en/1.0/chapter04/ > > > This example includes the contents

Re: Dynamically content in include statement not working

2010-05-12 Thread Brian
Tom Thank you, Thanks you, Thank you. {% include inpage.footer %} works just fine. The {{}} is unnecessary as I had it. Sometime the brain is not working. Thanks again. On May 12, 11:36 am, Tom Evans wrote: > On Wed, May 12, 2010 at 4:31 PM, Brian wrote: > > Tom, I'm sorry

Empty QueryDict on POST

2010-05-31 Thread Brian
Hello! I could use some help tracking down a problem here. I have a view that starts as follows: @login_required @json_response def save_exercise_week( request, week_id ): formID = request.POST['formID'] But this returns a 500 error because the QueryDict is empty -- MultiValueDictKeyError at

move up tree in {% include "/dir/name.html" %} statement

2010-11-09 Thread Brian
Thanks for the help. I'm using Python 2.5 and Django Template 1.1 I can't seem to move up the directory tree for inserting of html files using {% include file %} statement Sample dir structure: ---/lib/Top.html ---/lib/ root/ ---/main/ ---/main/include/HomeLogo.html ---/mai

Can't move down then up the directory tree for inserting of html files

2010-11-09 Thread Brian
Thanks for the help. I'm using Python 2.5 and Django Template 1.1 I can't seem to move down then up the directory tree for inserting of html files using {% include file %} statement Sample dir structure: root/ root/lib/ root/lib/Top.html root/main/ root/main/include/HomeLogo.html root/main/HOME.

Re: Can't move down then up the directory tree for inserting of html files

2010-11-10 Thread Brian
On Nov 10, 4:07 am, Daniel Roseman wrote: > On Nov 10, 2:32 am, Brian wrote: > > > > > > > > > > > Thanks for the help. > > I'm using Python 2.5 and Django Template 1.1 > > > I can't seem to move down then up the directory tree for inser

Re: Can't move down then up the directory tree for inserting of html files

2010-11-14 Thread Brian
.html" %} , {% include "/root/lib/logo.html" %} root/main/start.py root/main/LOGO.html (works fine) root/main/include/LOGO.html (works fine) To test I put just directory text inside the html file so I know what is displaying Thanks. On Nov 10, 4:51 pm, Shawn Milochik wrote

Re: Can't move down then up the directory tree for inserting of html files

2010-11-14 Thread Brian
kinds of relative paths down & up the tree. Thanks again. On Nov 14, 9:56 am, Daniel Roseman wrote: > On Nov 14, 1:28 pm, Brian wrote: > > > > > > > > > > > Thanks for the help, Still can not get it to work. > > > I changed TEMPLATE_DIRS se

Re: Can't move down then up the directory tree for inserting of html files

2010-11-15 Thread Brian
tuple values in the TEMPLATE_DIRS, I tried 30 value with forward and backward / & \, I like to go to the root with relative path. 3) Performance is not a issue, just trying to get this to work. Thank for the info. On Nov 15, 4:55 am, Tom Evans wrote: > On Sun, Nov 14, 2010 at 10:34 PM,

Re: Can't move down then up the directory tree for inserting of html files

2010-11-15 Thread Brian
here I like to say {% include "../templates/ logos/logo1.html" %} or {% include "templates/logos/logo1.html" %} │ └── start.py (runs application and calls page.html) Thanks Brian On Nov 15, 9:11 am, Tom Evans wrote: > On Mon, Nov 15, 2010 at 1:49 PM, Brian wrote: > &

No module named urls

2010-02-07 Thread Brian
Hi all, I'm putting together a Django application from scratch and have created my models. I'm trying to activate the admin site now and am getting the above error. I've tried everything I found on mailing lists with no luck. This includes the old style settings.py (which is commented out now) as

Re: No module named urls

2010-02-08 Thread Brian
Aaargh! I knew it had to be something like that! Thanx Karen. On Feb 7, 5:20 pm, Karen Tracey wrote: > On Sun, Feb 7, 2010 at 4:27 PM, Brian wrote: > > Hi all, > > > I'm putting together a Django application from scratch and have > > created my models. I'm try

Re: Possible bug with django 1.2, postgresql and aggregates?

2010-02-08 Thread Brian
it's still a Django issue, but I have no idea what it could be. I'm very new to Django; not new to databases. Brian On Feb 8, 9:32 am, Mathieu Pillard wrote: > Hi, > > I have been testing the 1.2 beta1 and think I found a bug, but since > the query I'm using is a bit co

Re: Complex Django Hosting

2008-04-25 Thread Brian
nitely use them. The fact that they don't oversell (or at least they say they don't) makes it much more responsive than my previous VPS host, where the servers would slow down over time as they'd continue piling the customers on. Brian On Apr 25, 8:44 am, Josh <[EMAIL PROTECTED

Re: Render raw image

2008-04-28 Thread Brian
Have you considered creating a separate view for that particular image? You'd have a view designed to grab that image and return it with the proper MIME type. Then you could, in your Welcome method, return a dynamically generated path to that URL using the reverse() method, which you'd use in your

Unique Users Per Site in 'users' & 'sites' Frameworks

2008-05-07 Thread Brian
ountB (b.example.com) also have a distinct user named UserA? Will I need to set up a whole new database and settings.py for each site? Thanks in advance, Brian --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Dja

Re: Unique Users Per Site in 'users' & 'sites' Frameworks

2008-05-07 Thread Brian
t; the only way to implement this? > > Regards > > Jonas > > On Wed, May 7, 2008 at 12:06 PM, Brian <[EMAIL PROTECTED]> wrote: > > >  I'm building an application where each customer has an account in the > >  system. That account has multiple users in it, eac

Re: Unique Users Per Site in 'users' & 'sites' Frameworks

2008-05-07 Thread Brian
ay seems > to be to alter the user database and roll my own login methods. This > would probably work, but just does not feel right. I'm pretty new to > Django, is there something I'm missing? Or is rolling your own really > the only way to implement this? > > Regard

Caching: Memcached vs locmem

2008-05-16 Thread Brian
Can someone run down the differences between using Memcached vs locmem? The docs indicate Memcached is "the best" solution, but seems considerably harder to setup. Just curious what the trade-offs are. Thanks. --~--~-~--~~~---~--~~ You received this message becaus

TypeError: Cannot resolve keyword 'slug' into field

2008-05-17 Thread Brian
I've searched for this, but people think it is either fixed or very hard to reproduce. In my case it is 100% reproducible, and I wonder if it is my own fault. I have a model for a mp3 set (a set of mp3s). Individual mp3's are associated with the set via a Foreign key. I recently added a slug fie

Re: Caching: Memcached vs locmem

2008-05-17 Thread Brian
On May 17, 7:37 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > I managed to get memcached up and running in about 5 minutes, so > whilst it does involve more setup than locmem I wouldn't say it's > difficult to the point of not being worth doing. Thanks for that. I'll likely give it a try.

Re: Caching: Memcached vs locmem

2008-05-18 Thread Brian
On May 18, 12:55 pm, "Brett Hoerner" <[EMAIL PROTECTED]> wrote: > On Sat, May 17, 2008 at 8:12 PM, Brian <[EMAIL PROTECTED]> wrote: > > But if you aren't clustering, say you have only a single server, is > > there an advantage? > > Yes, locmem

Re: TypeError: Cannot resolve keyword 'slug' into field

2008-05-18 Thread Brian
On May 18, 6:01 pm, "Karen Tracey" <[EMAIL PROTECTED]> wrote: > > Based on the choices the error message lists, it appears you have added code > that tries to access the slug field in an Mp3_Set model instance. However, > you have added the slug field to the other model, Mp3. > > Karen Where wou

Re: TypeError: Cannot resolve keyword 'slug' into field

2008-05-19 Thread Brian
On May 19, 8:19 am, "Karen Tracey" <[EMAIL PROTECTED]> wrote: > Ah, sorry, I missed the fact that it was admin causing the error.  The error > looks to be in the old manipulator/validator code for the slugfield.  With > newforms-admin this code is on its way out, so unlikely to get much > attentio

Re: un-escaping params

2008-05-19 Thread Brian
> > Thanks, > Ivan > tipjoy.com > > > I'm not sure if this is how django does it, but I would use urllib.unquote(params). If you give it unicode, it returns unicode. Brian --~--~-~--~~~---~--~~ You received this message because you a

Django developers NYC???

2006-11-13 Thread Brian
Hi, New to the group. I just took over the website for a smaller, weekly newspaper in NYC, and I am looking at completely rebuilding the system with a Django framework. Do you have any suggestions how I can find a good lead Django developer in NYC. Are there job boards etc, besides this I shou

Server error no httpresponse implementing htmx active search

2022-12-09 Thread Brian
I'm trying to implement the active search functionality with htmx but am getting a server error. I'd really appreciate any help on this. Googling the problem resulted in people either not using return before render or an indentation problem. I've checked these. Thanks in

Re: Server error no httpresponse implementing htmx active search

2022-12-09 Thread Brian
{% endfor %} {% endblock content %} ``` On Friday, December 9, 2022 at 4:15:46 PM UTC-7 Ryan Nowakowski wrote: > > > On December 9, 2022 12:10:23 PM CST, Brian wrote: > >``` > >ValueError: The view Striker.views.search_player didn'

template tag that iterates over list with for loop

2012-02-19 Thread brian
= ['a', 'b'] def render(self, context): if self not in context.render_context: context.render_context[self] = itertools.cycle(self.myList) cycle_iter = context.render_context[self] return cycle_iter.next() Brian -- You received this messag

find django template developers

2012-03-20 Thread brian
What are the resources to find django template developers? I've posted my project to: https://www.elance.com http://www.getacoder.com https://www.odesk.com https://www.freelancer.com I've read on the forums about http://djangogigs.com/ but they seem over priced and doesn't seem to have a lot of a

get all models for app with ContentType

2012-03-27 Thread brian
How do I get all the models for an app with ContentType? I have this code the works on the local server but throws “DoesNotExist: ContentType matching query does not exist” in production: ct = ContentType.objects.get(app_label=app_label, name=modelName) This works: ct = ContentType.objects.get(ap

scroll to form on error

2012-05-11 Thread brian
form.is_valid(): …. else: return HttpResponseRedirect(request.path + '#formId') - The form doesn't show the error fields when I do this. Also this seems to break the MTV model since I putting the div id in the view. Brian [1] http://stackoverflow.com/qu

Re: scroll to form on error

2012-05-12 Thread brian
r to stay away from javascript and ajax if possible. I also thought redirect with just a url was a shortcut for HttpResponseRedirect so it does the same thing. Thank you for your help!! Brian -- You received this message because you are subscribed to the Google Groups "Django users" group.

Re: brute force protection

2012-08-31 Thread brian
For my long term plans I want it to be app based. To start with I want to give 3 tries and then lockout. For my use case this will work. Long term I like to add IP and move over to a captcha after 3 tries and a delay like 2^tryNumber. Brian -- You received this message because you are

Sporadic Currency formatting is not possible using the 'C' locale

2012-10-05 Thread Brian
I get this error sporadically. If I refresh the screen 3 or 4 times it loads without the error. It is making me nuts trying to figure out why sometimes it's fine other times it fails. -- You received this message because you are subscribed to the Google Groups "Django users" group. To vi

Attach EmailMultiAlternatives message to an e-mail

2011-09-01 Thread brian
How do I attached a EmailMultiAlternatives email as an attachment to another e-mail? I want to create a EmailMultiAlternatives and send it. Then I want to create another e-mail and attach the previous email to this one. For example: parameterDict = {today:'monday',

static app on development server

2011-10-06 Thread brian
I can't get the static files to be served from an app dir. I have myApp/static/styles2.css The template myApp\templates\myApp\ver1\tmpl.html has {% load static %} In the settings file I have STATICFILES_FINDERS → 'django.contrib.staticfiles.finders.AppDirectoriesFinder' I

Re: static app on development server

2011-10-06 Thread brian
Nevermind. My ide doesn't do auto server restarts so django wasn't getting restarted. -- 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

run form save in background

2011-12-02 Thread brian
orm to the task. Does anyone have suggestions or other recommendations about this? Is there an easier way to do this? Brian -- 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

change charfield choices from within a ModelForm

2011-12-18 Thread brian
s modifying the field in the form. In the forms init do something like self.fields[ 'test' ]... but I'm not sure where to access the choices. Brian -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group

Transition from VPS(WHM/CPanel) to EC2

2012-01-22 Thread brian
hese features? Is there anything else I should be thinking about? I don't mind a command line interface. Brian [1] http://blip.tv/pycon-us-videos-2009-2010-2011/django-deployment-workshop-3651591 -- You received this message because you are subscribed to the Google Groups "Django use

retrieve model instance from database without model instance

2012-01-23 Thread brian
in the task: class processTask(Task): def run(self, modelName, pk): instance = getInstance( modelName, pk ) …. >From what I've read about django-celery, I shouldn't pass class instances to the task so I need a way to pass/retrieve this info via basic datatypes.

Re: Trying to figure out ManyToManyField on a legacy database

2013-05-11 Thread brian
for their database type? Brian On Sat, 2013-05-11 at 16:37 -0700, kevin wrote: > Hi Brian, > > It seems like you don't really have an Many To Many relationship > between your "Song" and "Played" objects. I can see how you would > have multiple plays for

Forcing group_by on a field other than id

2013-05-14 Thread brian
ate_played`) AS `played__date_played__count` FROM `song` LEFT OUTER JOIN `played` ON (`song`.`id` = `played`.`track_id`) GROUP BY `song`.`id` ORDER BY `played`.`date_played` DESC I tried adding s.query.group_by = [('played', 'date_played')] but that doesn't change the

Scripts to update Django tables

2013-05-29 Thread Brian
I'm new to Django (and frameworks in general) and having an issue with a project I'm working on. Basically, I want to scrape data from a sports league website on a regular schedule and add updated stats into my database. All of the Django tutorials for models I've looked at seem to give me in

Meta class ordering by related field in ManyToMany model?

2013-09-09 Thread Brian
I'm setting up a database for data related to sporting event stats. My database has a Game model, which is linked to a TeamGame model (stats related specifically to each team that played in that game). These two models are linked as ManyToMany, as we're going to have multiple games and each ga

slice QuerySet and keep as QuerySet

2013-10-31 Thread brian
*How do I slice a QuerySet and keep it as a QuerySet* *If I do* * a = qs[:3]* *then I get a list back. I want a QuerySet. * *I'm wanting to get the first x items in the query set and the last x items in the query set.* -- You received this message because you are subscribed to the Go

performance of model instgance save()

2011-05-09 Thread Brian
s? Thanks for any advice you can offer, Brian -- 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...

Re: performance of model instgance save()

2011-05-10 Thread Brian
Having hauled myself a few feet up out of the abyss of ignorance, I can answer my own question (which might be of benefit to others getting started with django). To clarify the problem, I have a standalone script that imports the django settings and uses its ORM pleasantness to populate one of

Re: performance of model instgance save()

2011-05-10 Thread Brian
Sure - it's just that bit more convenient and readable to use the ORM approach. If I get the chance, I must try substituting direct calls to psycopg and see if that makes it significantly faster again. I'd guess there's maybe another factor of 2 to be had. -- You received this message because

Re: performance of model instgance save()

2011-05-16 Thread Brian
> > I'd think you'll find it's significantly more than a factor of 2. For bulk > > inserts, raw SQL is often several orders of magnitude faster. > > You might want to check outhttp://pypi.python.org/pypi/dse/. My tests > using postgres showed a 3Xperformancegain on inserts compared to > using the o

spawning threads within test cases in django test framework

2011-05-31 Thread Brian
he database in that transaction is hidden from the other threads? Can the database connection (and hence transaction) be shared between the threads? Has anyone encountered this problem before? (And, ideally, came up with a really neat solution...) Thanks, Brian -- You received this message becaus

Re: spawning threads within test cases in django test framework

2011-06-01 Thread Brian
Thanks for the replies. I realised that I could reorganise the code so that all the database updating was done in the main thread. Re TransactionTestCases, I knew I'd read something related to that but didn't find it when I went looking yesterday evening; it sounds like that would have worked i

auth.LoginTest seems to require sites

2011-06-09 Thread Brian
'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.admin', Is the test broken or is there something that I'm doing that mak

Re: auth.LoginTest seems to require sites

2011-06-16 Thread Brian
In case anyone else has the same issue, the problem stopped when I upgraded django from 1.2 to 1.3. -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/QwG2RwR

audit changes to models

2011-06-16 Thread Brian
name of the user/editor. Thanks for any advice you can offer, Brian -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/ZjWvsBbrmS0J. To post to t

TimeField with minute-resolution in forms

2011-07-25 Thread Brian
;? Or maybe that's not the way to do it. Could anyone offer any advice? Thanks in advance, Brian -- 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 th

Re: TimeField with minute-resolution in forms

2011-07-25 Thread Brian
d to override - if such a thing exists? Brian -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/j4xBfHyqpAUJ. To post to this group, send email t

Include Django form in PHP based website

2011-07-27 Thread brian
ent Done Right' and I've read about half of it. It seems creating the form is really easy but I'm not sure the best way to include that form in the php website. Do you have any suggestions about creating a Django form that will be included in a php website? In the php website, I&#

Re: Include Django form in PHP based website

2011-07-27 Thread brian
I'm doing this to add features like better submitted data management and writing the data to another program. Brian -- 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@googl

Re: TimeField with minute-resolution in forms

2011-07-28 Thread Brian
Just in case anyone else has the same problem and finds their way here... The answers were there in the documentation once I rooted around for a while. I just need to override the default form field provided for my time model field and explicitly specify the allowed formats. class EntryForm(Mod

same form model with separate admins and data

2011-08-09 Thread brian
I've created a form with Model->ModelForm flow. Django is running on a sub-domain and I'm putting separate instances of the form on multiple php websites via iframe. How can I use the same form model but have independent forms? For example I want: form1 to be at: example.com/form1

Re: same form model with separate admins and data

2011-08-10 Thread brian
seeing is that when I use form1 the data gets put in form1 and myBaseModel. Thank you for your help!!!! Brian -- 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 unsubsc

Re: same form model with separate admins and data

2011-08-10 Thread brian
I'm using the Model->ModelForm flow. I was starting with the model and working my way up. Once I get the model I was going to switch to the form and then the view. Brian -- You received this message because you are subscribed to the Google Groups "Django users" group. To

Re: same form model with separate admins and data

2011-08-11 Thread brian
add the table? Thank you for your help Brian -- 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+unsubs

Re: same form model with separate admins and data

2011-08-12 Thread brian
I've figured a way that I think will work best for me for the model and form but I'm having trouble with writing the view. Here is my pseudo code models.py - class baseModel(models.Model): first_name = models.CharField( max_length=100, verbose_name='first') class fo

Re: same form model with separate admins and data

2011-08-13 Thread brian
Hi Landy, I'm seeing separate database tables created. The tables that are created are _. I've tested in the latest Django, python 2.7 and on windows with a sqlite3 database. Thank you for your help You have given me a lot of great ideas. Brian -- You received this message b

inherit adminSite and get 404 when click model

2011-08-13 Thread brian
I have multiple models. I'm trying to create an admin site for all models (using admin.site) and an admin site for each model (by inheriting from AdminSite). The admin.site is working as expected. The AdminSite will load the app as normal but when I click on the model, I get a 404 error. I'm fo

Customize Admin Advice

2014-02-02 Thread brian
ugh each model. Some of the options I've thought about is storing the filter parameters in the url and the current model number. Another thing I thought about is storing the results in database and recalling it. Brian -- You received this message because you are subscribed to the Google Grou

Django Model form not saving items to database

2019-07-01 Thread brian
Model class Products(models.Model): UNIT = ( ('whole', 'whole unit'), ('item', 'per single item'), ) # category = models.ForeignKey(Category, related_name='products', on_delete=models.CASCADE) ProductName = models.CharField(max_length=255) user = models.Fore

django form not saving items to database

2019-07-01 Thread brian
model class Products(models.Model): UNIT = ( ('whole', 'whole unit'), ('item', 'per single item'), ) # category = models.ForeignKey(Category, related_name='products', on_delete=models.CASCADE) ProductName = models.CharField(max_length=255) user = models.Fore

can django support chinese search?

2017-06-04 Thread brian
today i use a forum as Misago,and i set language use chinese,but when i search chinese chart, Misago can't response anything ,so,i emailed to Misago manager team,and them asked me,text search use django search module,so, i think may i can get help at here -- You received this message because y

Can the Django PostgreSQL module support Chinese search?

2017-06-06 Thread brian
I am the most I use a misago forum, set Chinese language, use the search function, did not return any data, the data is actually, I asked my Misago team, said they are using Django full text retrieval module, let me ask Django team, so that someone can help me? -- You received this message bec

Power BI integration with django

2019-11-27 Thread Brian
Does anyone know how to integrate a Power BI dashboard with a web page, without the user having to log in to the power BI account -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it,

Re: Cannot get user profile working.

2008-10-24 Thread Brian Neal
On Oct 24, 2:23 pm, kylewild <[EMAIL PROTECTED]> wrote: > I'm having this same issue and the fix here, as best I can attempt to > apply it, didn't work for me > > I had AUTH_PROFILE_MODULE set to "myproject.UserProfile" > > After reading this thread, I changed it to "chat.UserProfile" -- to no > a

Re: Cannot get user profile working.

2008-10-24 Thread Brian Neal
On Oct 24, 3:01 pm, kylewild <[EMAIL PROTECTED]> wrote: > thanks brian, good call > > I had read that and somehow not parsed it! > > However, I'm still having the issue after changing it to: > > AUTH_PROFILE_MODULE = 'chat.userprofile' > > (i tr

Re: tinymce help

2008-10-26 Thread Brian Neal
On Oct 25, 8:47 pm, Bobby Roberts <[EMAIL PROTECTED]> wrote: > hi.  I'm using django 1.0 over at webfaction.  I have the following > setup > > /static   (serves js, css, flash, images etc) > /www   (my django app) > > I have tiny_mce loaded to /static/js/tiny_mce/ > > I have followed the steps at

Re: Donation Application

2008-10-28 Thread Brian Neal
On Oct 27, 8:03 pm, unklbeemer <[EMAIL PROTECTED]> wrote: > I did some searching and found nothing. I was wondering if anyone knew > of any django applications out there for receiving donations and/or > tracking those donations (capital campaign progress, pledges donated, > etc.) > > Thanks I'll

Re: Test failures with SQLite :memory: database - contenttypes, auth and sites

2008-10-28 Thread Brian Gershon
Error: django_content_type.name may not be NULL" error. I traced this down to this line: emit_post_sync_signal(models.get_models(), verbosity, interactive) in /django/core/management/commands/flush.py If I comment out that line, the error does not arise. -Brian On Oct 25, 9:50 am, "Ch

  1   2   3   4   5   6   7   8   9   10   >