Re: Textile causing UnicodeDecodeError

2007-08-05 Thread Martin Gilday
Thanks that fixes it. On Aug 5, 6:12 pm, Lucky B <[EMAIL PROTECTED]> wrote: > from > here:http://64.233.169.104/search?q=cache:bswtnEOJ33QJ:douglasjarquin.com/... > > try textile.textile(str(self.source)) > > On Aug 5, 12:34 pm, Martin Gilday <[EMAIL PROTECTED]

Flexible Models?

2007-08-23 Thread Nathaniel Martin
I'm hoping that some of the django experts on this list can help me with a problem I'm working on designing the architecture of a site I'm working on. I want to have many objects that each belong to a category. Each category has a bunch of attributes. Each object would set values for each of those

Re: Flexible Models?

2007-08-24 Thread Nathaniel Martin
Hmmm, that's an interesting method. I was hoping for some way to add attributes though. Does anyone else have any ideas? -Nate On 8/23/07, Thomas Guettler <[EMAIL PROTECTED]> wrote: > > > Am Freitag, 24. August 2007 00:50 schrieb Nathaniel Martin: > > I'm hoping tha

Re: Flexible Models?

2007-08-24 Thread Nathaniel Martin
; store pertinent information. Like I said, the complexity outweighed > what I believed to be the return in my particular case. Hope this > helps. > -rfd > > > On Aug 24, 11:29 am, "Nathaniel Martin" <[EMAIL PROTECTED]> > wrote: > > Hmmm, that's a

syncdb and postgres problems

2008-01-25 Thread Martin Ostrovsky
I'm trying to run syncdb on a clean database (no other tables etc.) in postgres. It produces the standard Postgres error: psycopg2.ProgrammingError: current transaction is aborted, commands ignored until end of transaction block Digging a bit deeper, I see the exception is thrown in get_table_li

Session is new every time

2008-04-17 Thread Martin Kaffanke
, Martin -- Ihr Partner für Webdesign, Webapplikationen und Webspace. http://www.roomandspace.com/ Martin Kaffanke +43 650 4514224 signature.asc Description: Dies ist ein digital signierter Nachrichtenteil

Re: Session is new every time

2008-04-19 Thread Martin Kaffanke
Am Donnerstag, den 17.04.2008, 17:17 +0200 schrieb Martin Kaffanke: > I use django behind apache using the wsgi like described here: > > http://code.google.com/p/modwsgi/wiki/IntegrationWithDjango Just for those who are interested: It does not work with python2.4 but it works with

Re: Complex Django Hosting

2008-04-28 Thread Martin Diers
On Apr 27, 2008, at 10:42 AM, Josh wrote: > > So it sounds like the best three options are (in no particular order): > 1. Remain with Webfaction. > 2. Move to Slicehost. > 3. Move to a colocated server. > If you are looking at colocation, have you checked out Amazon EC2? It might be a much mo

Re: Rendering specific widgets of a MultiWidget

2008-04-29 Thread Martin Diers
I'm not sure why DurationField should be added to the core. It's really easy to subclass MultipleValueField and MultiWidget. In any case, from looking at DurationField, it seems that the defaults for days, seconds, and microseconds are sane enough that you would probably be safe to subclass

Re: Rendering specific widgets of a MultiWidget

2008-04-30 Thread Martin Diers
It occurred to me, last night as I was drifting off to sleep, that the only problem with just subclassing the DurationField widget, is that you won't see any value over 24hrs, as that will spill over into days. So - looks like your only option is to write your own version of Duration Field.

Re: Status of ticket #6430

2008-05-01 Thread Martin Diers
You will want to post this on Django-dev, instead of here, as that's the proper place to get the dev's attention or explanation on a stale ticket. :) On May 1, 2008, at 10:20 AM, Warren wrote: > > It looks like someone else hit the same trivial bug I ran into and put > some considerable effo

Debugging, breakpoints, and newforms-admin

2008-05-02 Thread Martin Diers
to display my Inline. Yes, I am passing "runserver --noreload" as the program arguments to manage.py in Eclipse. -- Martin Diers --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users&quo

New snippet: Tenjin integration as a decorator

2008-05-05 Thread Martin Diers
ayout file, which can be specified in the render call, dramatically simplifying the structure of the templates as compared to Mako. -- Martin Diers --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django u

Re: What Django version should I use?

2008-05-05 Thread Martin Diers
the database model. The challenge for a new Django user, however, will be that any online documentation for the admin does not apply at all to newforms-admin. I'm fairly new at Django myself, however, and was able to pick of the differences very q

Re: How to sync admin interface with DB

2008-05-05 Thread Martin Diers
n, or run reset once more. -- Martin Diers --~--~-~--~~~---~--~~ 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: How to sync admin interface with DB

2008-05-05 Thread Martin Diers
On May 5, 2008, at 11:56 PM, Timothy Wu wrote: > > I'm sorry, could someone gives me a clarification? > > Maybe I should describe it more clearly. My models.py and my > database ARE in sync and they're with the tables and the fields I > want. It's the admin interface that's out of sync, it's

Nested relations in a ValuesQuerySet

2008-05-06 Thread Martin Diers
Given a model like this (much simplified): class Event(models.Model): name = models.CharField(max_length=50) class Text(models.Model): name = models.CharField(max_length=50) event = models.ForeignKey(Event) name = models.CharField(max_length=50) class TextRange(mo

Re: Problem with Tutorial

2008-05-08 Thread Martin Diers
On May 8, 2008, at 7:39 AM, Boodlooder wrote: > > I'm logged in as root, trying to execute: > > python mange.py syncdb > > the command is returning: > ... >super(Connection, self).__init__(*args, **kwargs2) > _mysql_exceptions.OperationalError: (1049, "Unknown database > 'reinhardt'") > > Whe

newforms-admin: Interaction between pre_save signals and form validation

2008-07-14 Thread Martin Diers
I am currently trying to use django-mptt in a CMS project. (More about django-mptt here: http://code.google.com/p/django-mptt/) django-mptt manages the implementation of an MPTT tree in a nearly transparent way. You register your model with the django-mptt application, and it will automatic

Re: 2 QA Consultants available immediately

2007-02-22 Thread Martin Winkler
Some spammer wrote: > · Over Eight Years of Experience [...] Applications using > QuickTestPro,WinRunner, LoadRunner, and Test Director. --^^ hehe, I am an experienced Lode Runner player too :) too bad that Google groups do not filter out all spam mails... --~-

FREE WINDOWS XP DOWNLOAD

2007-02-23 Thread Julia Martin
*Hi friends* ** *Get your Own Windows XP.* ** *Download Windows XP - Free* ** *[image: Windwos XP - Free Download] * ** ** *FREE WINDOWS XP DOWNLOAD * --~--~-~--~~

Flash Game maker & Animation Tools for Kids and Professionals

2007-02-25 Thread Julia Martin
Flash Animation - The Game making and easy learning [image: Flash animation maker - game makers] http://100stuff.com/info/flash-game-maker/ Best Flash animation softwares Flash Game Makers Game Making Tools Easy Game Making Click here.

Re: newforms: comparing fields during validation

2007-03-06 Thread Martin Winkler
lidationError( \ u'You did not enter the same password twice.') return self.clean_data['password_2'] The error will be bound to field "password_2" in this case. You can also have a look at the file django/tests/regr

Re: applying a patch in windows ???

2007-03-06 Thread Martin Winkler
ool" As a last resort, edit the files manually as seen on http://code.djangoproject.com/attachment/ticket/3400/list_filter.3.diff Remove red lines, insert green lines. hope that helps, Martin --~--~-~--~~~---~--~~ You received this message because you are sub

Re: Page Not Found 404

2007-03-06 Thread Martin Winkler
; from mysite.blog.models import Post > >>> Post.objects.all() > [] It is necessary that you provide MUCH more information to us... At least the following: * The relevant parts of your urls.py (generic views, yes?) * The template source code Maybe then it

Re: Django Accessibility

2007-05-04 Thread Martin Winkler
ce I do not have a link to the specs at hand. The newforms and any other thing has nothing to do whether it's WAI compliant or not. That is up to you! Martin --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "

Re: Deos Django have Java Servlet's Listener like thing?

2007-05-05 Thread Martin Winkler
it uses a single python instance to which apache connects. see http://www.djangoproject.com/documentation/fastcgi/ just out of curiosity: what are your design-specific reasons for such a thread? Martin --~--~-~--~~~---~--~~ You received this message becaus

Re: Primary ForeignKey create try

2007-05-05 Thread Martin Winkler
n and now it > works fine for me. Do not - I repeat: DO NOT - change code in contrib.admin.views. It is almost NEVER a good idea... :) Martin --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users"

Re: Transaction Support in Models

2007-05-07 Thread Martin Winkler
ures (sp) through our models? Django does not support stored procedures (yet). But you can at least use the lower-level db-apis of cxOracle or psycopg2. Martin --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Djang

Uploading pictures problem

2007-05-12 Thread Martin Tomov
I am making a photo gallery as a project from school and I got stuck on the uploading picture part of it. Initially I started with the oldforms and I successfully uploaded pictures. But I have 2 questions. So I have this code: if request.method == 'POST': # If data was POSTed, we're tryin

Re: Bug in django related to sqlite3?

2007-05-14 Thread Martin Winkler
t you just use myobjects = MyTable.objects.filter(some__in=(1,2,3)) ? (I am assuming that your model is called MyTable and that the field "some_id" is in fact a ForeignKey field called "some") If you absolutely _have_to_ use the query/cursor

How to change the encoding from UTF-8 to something else ?

2007-05-15 Thread Martin Tomov
http://code.djangoproject.com/ticket/72 About this tichet. The last question is mine. How to change the encoding, sent by the HTTP headers to something else, but UTF-8 ? The meta thing in the html is useless. Thanks --~--~-~--~~~---~--~~ You received this messa

Re: URLPattern - can't fetch a detail page

2007-05-21 Thread Martin Glueck
ns in your include urls.py and remove the "^" part of the pattern: urlpatterns = patterns ( 'django.views.generic.list_detail' , (r(?P[a-zA-Z0-9-_]+)/?$', 'object_detail', dict(news_list_info, slug_field='slug')) , (r$', 'object_li

Django Admin page says a ForeignKey("self", null=True) field is required

2007-09-13 Thread Martin Taylor
I've created a very simple Django app to model a tree (like a file system directory tree). Here's the model.py file: from django.db import models # # Define constants used to control sizes of DB fields # MAX_NAME = 100 # Maximum size of an object's Name field # # Create your models here. # cla

Re: Django Admin page says a ForeignKey("self", null=True) field is required

2007-09-13 Thread Martin Taylor
ank=True, verbose_name="ParentFolder") On Sep 13, 4:32 pm, Martin Taylor <[EMAIL PROTECTED]> wrote: > I've created a very simple Django app to model a tree (like a file > system directory tree). Here's the model.py file: > > from django.db import models >

Django application using ORM only

2007-09-20 Thread Martin Taylor
en't yet figured out is how to make my stand-alone application use Django's nice user/group permissions scheme. All the examples I've seen indicate that no login or authentication is necessary to use the API. Any assistance with either of these items, including pointers to examples

Freelance Django Developers

2007-10-03 Thread Martin Ostrovsky
Hello Django Developers, We're looking for Django developers to work on various web applications. You can be located anywhere in the world, but your English has to be very strong. You should be familiar with the following: - source control (svn) - unit testing with Django - AJAX - and of course,

Re: Simple Template Syntax Question: ljust

2006-09-25 Thread Martin Glueck
er: {{product.title | truncate:"5" }} Martin --~--~-~--~~~---~--~~ 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: long-running process. how to do it?

2006-10-05 Thread Martin Winkler
Hi Gabor, There is also the possibility to use the "at" daemon instead of cron. e.g. at now "/var/foo/barbaz.py" of course the user has to have permissions to use the at command, and the atd daemon must be running. br, Martin Am Thu, 05 Oct 2006 16:02:42 +0200 schrieb

Re: Count clicks

2006-10-07 Thread Martin Winkler
at checks your webserver's access log and updates all relevant numbers in one session? just my 2eurocents, Martin --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this g

Re: What IDE do you use? (semi-OT)

2006-10-08 Thread Martin Winkler
short while I began to love this editor for its many features and external plugins. ("dbext" for database access inside the editor, and "vtreeexplorer" for a nice vertical hierarchical file selector, "taglist", "pydoc", ...) Martin --~--~-~--~~

Newbie DB question

2006-11-06 Thread Martin Bačovský
PLACE VIEW view_name AS . - Does Django support postgres database schema? I tried to add Meta class with db_table = 'my_sch.my_table' in my model, but unfortunately this is quoted by Django. If you have any helpful idea, let me know.

Re: Newbie DB question

2006-11-07 Thread Martin Bačovský
Thank you for quick response. Russell Keith-Magee wrote: > On 11/6/06, Martin Bačovský <[EMAIL PROTECTED]> wrote: > >> I have two questions I was unable to google: >> - Is Django going to support database views? >> > > We don't have any imme

Re: Newbie DB question

2006-11-07 Thread Martin Bačovský
iling >> list. Ideas and suggestions are great, but code speaks volumes :-) >> >> As I mentioned before I i'm newbie in django and also "perfectionist with DEADLINES", but I will give it the try :) Thank you for your time, Martin --~--~-~--~~

Detection of "tainted" fields

2007-01-16 Thread Martin Winkler
only would need some advice on this "tainted" thing :) Any thoughts on what I could use to solve my problem? BTW: It has to be in the "save" method, because I need to work on the image even when a staff member uploads something from the admi

creating custom "filter_*" methods for objects

2007-02-11 Thread Martin Winkler
g django core files, which I really do not like. I'd much prefer adding a method to my own model - but how? Hoping for some clues... Martin --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users

Re: creating custom "filter_*" methods for objects

2007-02-11 Thread Martin Winkler
Am 11 Feb 2007 04:07:03 -0800 schrieb "[EMAIL PROTECTED]" > > On 11 Lut, 12:32, Martin Winkler <[EMAIL PROTECTED]> wrote: > > One (quite non-elegant) way would be adding a method to the class > > Manager in django.db.models.manager like this: > > > &g

CGI Setup

2006-07-14 Thread Martin Glück
do you think I it's not worth the effort because the performance is too and my time is better used finding a different solution (sorry, changing the provider is currently not a option...) Thanks for your insight and keep up the great work, Martin --~--~-~--~~~--

Re: unbuffered output to client/end-user

2006-07-15 Thread Martin Glueck
and all the lines you yield will be directly send to stdout. Maybe you have to flush stdout to be really unbuffered... I hope this helps (sorry for my bad english, ) Martin --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Goog

Re: unbuffered output to client/end-user

2006-07-15 Thread Martin Glueck
Nick, > Cool, this actually works with yielding, thank you very much. > Glad that it worked (I didn't try it out) > You don't seem to be THAT new too django:) > I am. Just started a few days ago. But since I had to find a way how to use Django with a normal CGI interface I had to dig into t

Re: unbuffered output to client/end-user

2006-07-16 Thread Martin Glueck
Sorry Nick, but the comment about the database access wasn't mine.. so I cannot help you here.... Martin On 7/16/06, Nick <[EMAIL PROTECTED]> wrote: > Martin, > > You mean if I access the model? I tried looking up a close() method for the > DB api but couldn't f

Re: (Re)ordering stuff

2006-07-21 Thread Martin Robinsson
e order in which table records appear you can look at the ´´ordering´´ Admin parameter instead. That and all other Admin options are documented here: http://www.djangoproject.com/documentation/model_api/#admin-options Martin --~--~-~--~~~---~--~~ You received this messa

Re: ManyToManyField Usage

2006-07-23 Thread Martin Robinsson
Hi Minglei, First of all I think I would rename "author" in Album to "authors" to reflect the fact that there can be many authors. You could use something like this: objalbum, created = Album.objects.get_or_create(name=album) objalbum.authors.add(objauthor) or objauthor.album_set.get_or_create(nam

Re: ManyToManyField Usage

2006-07-23 Thread Martin Robinsson
create(name=name) >>> print song.album None The null and blank options are described here: http://www.djangoproject.com/documentation/model_api/ http://www.b-list.org/weblog/2006/06/28/django-tips-difference-between-blank-and-null Martin --~--~-~--~~~---~--~---

Re: Getting foreign relationship data in views

2006-07-24 Thread Martin Robinsson
umentation/models/many_to_many/ Martin --~--~-~--~~~---~--~~ 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: ManyToManyField Usage

2006-07-24 Thread Martin Robinsson
hod in the two classes, but I don't know if it's the right way to do it since I'm relatively new to django. Anyone more experienced who care to comment on this matter? Martin --~--~-~--~~~---~--~~ You received this message because you are subscribed t

Re: list_display: How to change the label for each field

2006-07-24 Thread Martin Robinsson
Hi Alen Kilian showed how you can change the displayed name of your models. If in addition you want to specify how your fields are displayed please see: http://www.djangoproject.com/documentation/model_api/#verbose-field-names Martin --~--~-~--~~~---~--~~ You

Re: How to read parameters

2006-07-24 Thread Martin Robinsson
You might want to consult this page: http://www.djangoproject.com/documentation/request_response/#examples Martin --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this g

Re: Strings as filter args

2006-07-27 Thread Martin Glueck
n__slug__exact = "joe-smith") or filter_kw = {"person__slug__exact" = "joe-smith") and qs = Person.objects.filter(** filter_kw) (I have not tried this but it should work that way) Martin --~--~-~--~~~---~--~~ You received this messa

Re: __str__ concatenation

2006-07-27 Thread Martin Glueck
code to either: def __str__(self): return self.program + " " + self.course_number or def __str__(self): return "%s %s" % (self.program, self.course_number) (Personally, I would use the second version). Martin --~--~-~--~~~

Re: ManyToManyField Usage

2006-07-29 Thread Martin Robinsson
Sorry for the bump. But I'm genuinly interested in understanding why it's not possible to write: >>> album.song_set.get_or_create(name='name', album=album) without specifying the album explicitly as a kw argument. Shouldn't the album parameter in this example be inferred through the album.song_set

Re: Having trouble with views

2006-08-01 Thread Martin Glueck
view this parameter is named "cat_slug". So, If you either change the name of your group in the reg-ex or change the name of the parameter in the view so that they match each other, is problem should be gone. Martin --~--~-~--~~~---~--~~ You received

Re: Having trouble with views

2006-08-01 Thread Martin Glueck
his in you views.py from django.views.generic.list_detail import object_detail Martin --~--~-~--~~~---~--~~ 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 T

Emailing Error Messages

2006-08-24 Thread Martin Ostrovsky
Hello, Is there an existing method or means in Django to have any exceptions that are caught emailed automatically? Or does this require a bit of custom code? Thanks, Martin --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

Re: python syntax errors

2006-08-28 Thread Martin Glueck
config as production, but > > MaxRequestsPerChild 1 > > > > There are no syntax errors in apache error log or site error log. > > What's up ? > > I don't remember where they go when running with Apache, Normally

Re: Self Joins

2005-12-29 Thread martin xus
here are the codes: from django.core import meta class Category(meta.Model): name = meta.CharField(maxlength=20) parent = meta.ForeignKey('self', null=True, related_name='child') http://www.djangoproject.com/documentation/models/m2o_recursive/

Re: Can't get params from HttpRequest.POST

2005-12-29 Thread martin xus
Thanks!That's it! I'm misssing the '/' at the end of the action.

Session disposal

2006-01-08 Thread John Martin
Is there any notion of creating or disposing of a session, further than simply removing the user key from the current session (as is done in the default auth implementation)? I have items (other than the user) in the session that I don't want carried through logout/login sequences, and I'm wonderi

Re: Session disposal

2006-01-08 Thread John Martin
Thanks Adrian. What I'm actually wondering about though is whether there is a "proper" way to clear out a session entirely? Is it just a matter of iterating through all of the keys and clearing them one by one? And on that note, I keep feeling like a user, upon login, should get a fresh session wi

Some function are missing from my Django objects

2006-03-02 Thread Martin Ostrovsky
. I print out the __dir__ of the instance and its not there. Has anybody else seen this before? I've printed out the instance's __class__ attribute and it is the right class. Thanks, Martin --~--~-~--~~~---~--~~ You received this message because you are

Re: Some function are missing from my Django objects

2006-03-02 Thread Martin Ostrovsky
Found the problem. Was importing the wrong models class. Was using the direct path to my models rather than django.models.app_name. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to th

Django & Rico

2006-03-06 Thread Martin Ostrovsky
An out-of-leftfield question, has anybody tried and (successfully) used Rico (openrico.org) with Django? Or any XML over HTTP for that matter with Django? Just looking for some code examples. Thanks. --~--~-~--~~~---~--~~ You received this message because you are

Content-length header

2006-03-22 Thread Martin Ostrovsky
Hi, Does the HttpResponse object set its own content-length header ? (e.g. the size of the template after it has been loaded). If not, how come? - Martin --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "D

Re: Content-length header

2006-03-22 Thread Martin Ostrovsky
I guess the easiest thing to do is just look at the code myself. For those interested, no it is not set. Other than Content-type, no headers are set explicitly, which is completely fair. --~--~-~--~~~---~--~~ You received this message because you are subscribed t

Re: for loop + transaction.on_commit + celery = Unexpected Behaviour

2021-12-03 Thread Martin Pätzold
This is an older topic, but for everyone who found this discusion and had the same issue: The problem is most likely using "lambda" inside a for-loop. If you switch out "lambda" for "functools.partial" it should work as expected. Jani Tiainen schrieb am Donnerstag, 27. April 2017 um 08:27:11 UTC

Mpesa integration.

2022-09-05 Thread Martin Mambo
Anyone whose successfully impilimented mpesa into django please help -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. T

Re:

2022-09-26 Thread Martin Mambo
Add me +254719101407 On Mon, 26 Sept 2022, 23:14 Tom Lafferty, wrote: > 814-380-6157 > > Thank you > > -Tom > > > > On Mon, Sep 26, 2022 at 4:12 PM Giovanni Silva wrote: > >> +5531995321877 >> >> >> Em 26 de set. de 2022, à(s) 15:31, Daniel Joseph < >> ogooluwawealth.jo...@gmail.com> escreveu:

Re: Custom Unique Registration Number Required

2023-04-11 Thread Martin Mwai
It depends whether you want it on the front end or backend : for front end have a function thats add the above abbreviations before inserting the data into the form. assuming the form has all the variables (school, year, dept, 0213) parse this to the function then it returns registration number

How to save a file from filesystem

2012-02-06 Thread Martin Tiršel
to the path specified by upload_to callable? Thanks, Martin -- 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-user

Re: How to save a file from filesystem

2012-02-06 Thread Martin Tiršel
I found it: myfile = File(open('/some/filesystem/path/file.jpg', 'r')) myfile.name = os.path.basename(myfile.name) myobj = MyObj.objects.get(id=123) myobj.myfile = myfile myobj.save() This saves the file under upload_to path correctly. On Mon, 06 Feb 2012 11:46:19

Count values grouped by date

2012-02-20 Thread Martin Tiršel
emove action column and split it to views and clicks columns? Thanks, Martin -- 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

Re: Count values grouped by date

2012-02-20 Thread Martin Tiršel
On Mon, 20 Feb 2012 18:33:40 +0100, Tom Evans wrote: On Mon, Feb 20, 2012 at 5:17 PM, Martin Tiršel wrote: (btw, are you sure that works for views? looks like it is counting clicks as well) Yes, that was counting all records. This type of query is tricky to do in django. In SQL, you

Is there a place for new Django specialized hosting?

2012-03-21 Thread Martin Tiršel
RAM, 2 vCPU's, 30 GB HDD or 2GB RAM, 3 vCPU's, 50GB HDD My goal is to provide an environment for developers with multiple projects that wants virtual server but don't want/know to install/configure such virtual server. Or is there already a service like this? Thanks, Mart

Difficult setup on Suse Linux

2012-04-04 Thread Martin Sommer
line 321, in configure del logging._handlerList[:] AttributeError: 'module' object has no attribute '_handlerList' Any ideas? Thanks, Martin -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group

Re: Difficult setup on Suse Linux

2012-04-05 Thread Martin Sommer
Its Django 1.3.1, with Python 2.4.1. The Django docs say that this would work. https://docs.djangoproject.com/en/1.3/intro/install/ Martin -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to dj

Re: Difficult setup on Suse Linux

2012-04-05 Thread Martin Sommer
!! Martin -- 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.com. For more options, visit

Ignoring empty forms in a formset

2012-04-22 Thread Martin Tiršel
removed. How can I do this? Thanks, Martin -- 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/-/jzQaDGNkDacJ. To post to this group, send email to dj

Re: Ignoring empty forms in a formset

2012-04-23 Thread Martin Tiršel
Nobody knows how to ignore empty forms in a formset? I have to write some custom method on a form that checks all fields and returns False if any of the fields is filled or is there any other solution? Martin On Sunday, April 22, 2012 6:44:53 PM UTC+2, Martin Tiršel wrote: > > Hello,

Re: Ignoring empty forms in a formset

2012-04-24 Thread Martin Tiršel
I am doing that: When I add a form to formset, I increase form-TOTAL_FORMS. But this doesn't affect processing of empty forms. Martin On Monday, April 23, 2012 4:48:29 PM UTC+2, Marcin wrote: > > You will want to edit the management form values on the client side, as > de

Re: Ignoring empty forms in a formset

2012-04-25 Thread Martin Tiršel
95] Is empty: True [2012-04-25 13:42:09,914] DEBUG [31099 140249342375680] [project.internal.forms:54] Saving PayOrderForm So both forms have empty_permitted == True. Management form in time of submit looks so: Thanks, Martin On Wednesday, April 25, 2012 11:03:49 AM UTC+2, Tom Evans wrote:

Re: Ignoring empty forms in a formset

2012-04-25 Thread Martin Tiršel
Thanks, form.has_changed() seems to be the way. But I don't understand the empty_permitted attribute, it is usable only with ModelForm? I am using the formset only for mass form processing not for inserting/updating models. Martin On Wednesday, April 25, 2012 2:35:20 PM UTC+2, Tom Evans

Django base Facebook Games

2012-07-13 Thread Martin Vincent
Looking to hire Django dev with experience in web development please email at mvinc...@isolutionspro.com or call me at 310 751 0833 Thanks -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://group

creating an object on saving another model to the database

2012-09-05 Thread Martin Illgen
Hello, I've the following problem: - I have a model (ModelA) with a primary key consisting of a foreignkey (ModelB - ID) - *Databasestructure* TableA TableA_TableB - PK, BIGINT(20), FK TableB:ID NAME - VARCHAR(255) TableB ID - PK, AI, BIGINT(20) NAME - VARCHAR(255) - *Django Model

Sphinx code validation for Django projects

2012-10-17 Thread Martin Winkler
I get an error if some API changes made such a snippet invalid? I guess there have to be some changes in conf.py? Martin -- 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.co

Re: new at this -- need some guidance

2011-09-10 Thread Martin Melin
jangoproject.com/en/dev/topics/db/models/#many-to-one-relationships if you're curious. Cheers, Martin Melin -- 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 unsub

Re: Accessing related fields.

2011-09-11 Thread Martin Tiršel
Hi, as Daniel wrote, the {{ p.source.all }} is a queryset you can access the same way as in {% for p in publisher.object_list %}. So you create a nested for loop. Martin On Sun, 11 Sep 2011 10:38:39 +0200, Petey wrote: And also how do I display more objets from that list? ;) Sorry for

Re: Accessing related fields.

2011-09-11 Thread Martin Tiršel
source objects Martin On Sun, 11 Sep 2011 10:45:53 +0200, Petey wrote: Ooops I meant source ;) Firstly: {{ p.source.all.0 }} - < gets source name, only first element (as proper slice should work) but I still dont understand how to get all avaliable elements for each source in publisher Secon

Re: Getting a class using a variable name.

2011-09-11 Thread Martin Tiršel
Hi, you can do the import here to prevent circular import: class B(models.Model): def get_a_class(self): from test_a import A return A Martin On Sun, 11 Sep 2011 16:49:22 +0200, pbzRPA wrote: Hi, I have been struggling with this for a while now and I can't se

Re: How to create Time Series Tables In DJango

2011-09-16 Thread Martin Tiršel
multiple tables what is worse than over one. If you provide more details perhaps somebody can give you an optimization advice. Martin On Fri, 16 Sep 2011 08:03:07 +0200, deepak gupta wrote: Hi All, Is there any facility in Django to create time series table. My Req. is : I want to create

Re: When is the django orm going to get a "group by" function ?

2011-09-16 Thread Martin Tiršel
You mean that? https://docs.djangoproject.com/en/1.2/topics/db/aggregation/#values Martin On Fri, 16 Sep 2011 14:05:13 +0200, dave bl wrote: When is the django orm going to get a "group by" function ? (this is srs buz ... Y NO HAZ?). I see that there have been various chang

<    1   2   3   4   5   6   >