join on plain integerfield

2022-11-21 Thread Marek Rouchal
I need to access an *existing database whose schema I cannot alter*; I used the Django tool to extract the tables to create models.py, which worked great, and I already hacked some model definitions, e.g. to replace a simple IntegerField with a ForeignKey. But there are specific tables, where

[digital envelope routines: EVP_MD_CTX_copy_ex] input not initialized

2018-02-28 Thread marek
I have proble with login to Django web admin. It produces bellow exception: Internal Server Error: /adminlogin/ Traceback (most recent call last): File "/usr/local/lib/python3.6/site-packages/django/core/handlers/exception.py", line 41, in inner response = get_response(request) File

Re: Installing Django and Python 3.4 on a freshly registered Debian VPS

2015-07-11 Thread Marek Turnovec
that it's not necessary. If someone wants Python 3.4, it's also available in Debian Jessie, which is the current STABLE version of Debian. Regards Marek -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from

Re: when is a Context Processor called?

2012-10-09 Thread Marek Brzóska
browser, then django creates request object, which you use in view - as first argument. With this middleware you will be able to use request.profile if user has profile. -- Marek Brzóska brzoskama...@gmail.com -- You received this message because you are subscribed to the Google Groups &quo

Re: Value Error during 1.2 to 1.4 conversion

2012-10-08 Thread Marek Brzóska
Check your urls. For me it looks like you wanted to give name to the url but forgot use keyword argument. For example you could be having: url(r"^#", "your_view", "name_of_the_view") instead of url(r"^#", "your_view", name="name_of_the_vi

Working example of django-generic-images

2010-10-03 Thread Marek Dudek
Hello Did anyone happen to run into some piece of working code using 'django-generic-examples'? I'm following documentation at http://django-generic-images.googlecode.com/hg/docs/_build/html/index.html but I can't get it into working like it supposed to. Meaning: I can't get admin of

Re: Django-Cms Installation Error

2010-08-21 Thread Marek Dudek
You have django 1.2.1, now I noticed I wasn't able to install any version of django-cms with django 1.2.1 and I tried 2.0.0, 2.0.1, 2.0.2 and 2.1.0-beta3 Most up-to-date combination that I successfully installed is django 1.1.1 with django-cms 2.0.2. Hope this helps -- You received this messa

Re: Django-Cms Installation Error

2010-08-21 Thread Marek Dudek
Hello Your django version doesn't match django-cms version. You didn't specify which you are using so it's hard to say what you should change. I encountered this problem and written a message some time ago. It contains the table with matching versions that should help you. Mare

Re: how to debug restful django apps?

2010-07-27 Thread Marek Dudek
On 27.07.2010 19:07, ff wrote: how on earth is django-toolbar going to help me at all here? Did you even read any of my post? On Jul 27, 7:15 am, lzzzing wrote: Try Django debug toolbar. On Jul 27, 5:06 pm, ff wrote: I have a python script that creates and then uploads a

Re: [newbie] Filter not returning data!!

2010-07-24 Thread Marek Dudek
I think that the problem is that you use "patient_id" instead of "id" in template. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to

Re: Iterating over model instances ordered_with_respect_to in templates

2010-07-22 Thread Marek Dudek
I found solution but very inefficient one: {% with gallery.get_pictureingallery_order as ids_in_order %} {% for picture_in_gallery_id in ids_in_order %} {% for picture_in_gallery in gallery.pictureinga

Iterating over model instances ordered_with_respect_to in templates

2010-07-21 Thread Marek Dudek
27;t yield instances) {% for picture_in_gallery_id in gallery.get_pictureingallery_order %} {{picture_in_gallery_id}} {% endfor %} Thanks in advance Marek -- 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: Helsinki area djangonauts: Let's meet up

2009-11-07 Thread Marek Pietrucha
Hey Friends! I would love to attend :) I just don't know if I can make it to Kaisla. I'm and exchange student in Turku University of Applied Sciences. Is the place of the meetup certain? Could you guys consider moving it to the oldest city of great Finland - Turku ? Best Regards! MP On Nov 6, 3

Re: ORM

2009-10-08 Thread Marek Pietrucha
I see that all of you guy's know what your talking about. I was thinking way won't you share some knowledge to this topic: http://groups.google.com/group/django-users/browse_thread/thread/1517053b51a1d7c8/ Please read and give some response. best regards. On Oct 7, 7:05 pm, Christophe Pettus w

nested inlines

2009-10-05 Thread Marek Pietrucha
Hello, Has anyone achieved something like nested inlines in the admin pages? Does anybody know about solutions to this matter? I know there is a patch for older versions of django but not only there are no new ones but also they didn't support editing (which makes it unusable). best regards, mp

InlineModelAdmin

2009-09-30 Thread Marek Pietrucha
Hello, Could someone help me how can i add inlines to a admin.StackedInline? On the django web page it is written that: "The InlineModelAdmin class is a subclass of ModelAdmin so it inherits all the same functionality as well as some of its own: (...)" But when i add "inlines" to a StackedModel

Re: admin site doesn't refresh

2009-09-27 Thread Marek Pietrucha
FALS PROBLEM!! No NEED to reply. sory :) On Sep 27, 6:00 pm, Marek Pietrucha wrote: > I added screen shots: > > localhost:http://picasaweb.google.com/mark.pietrucha/DjangoAdminSite#5386176920... > megiteam.pl:http://picasaweb.google.com/mark.pietrucha/DjangoAdminSit

Re: My Django powered website for web based learning

2009-09-27 Thread Marek Pietrucha
I can't get in :( Is the site up and running? On Sep 27, 3:16 pm, Parag Shah wrote: > Hello, > > I have created a Django powered website for open learning which organizes > various computer science related course videos in the form of structured > courses. > > Many thanks to the excellent Djang

Re: admin site doesn't refresh

2009-09-27 Thread Marek Pietrucha
I added screen shots: localhost: http://picasaweb.google.com/mark.pietrucha/DjangoAdminSite#5386176920766947362 megiteam.pl: http://picasaweb.google.com/mark.pietrucha/DjangoAdminSite#5386176927362649474 I think it's not a problem with the host because when i add different modules from other a

admin site doesn't refresh

2009-09-27 Thread Marek Pietrucha
Hello my dear django users, I started to write and application in django and I encountered a problem with which i'm dealing for about 2days (i'm quite frustrated ;) ) I have constructed my models, as follows: # Company Models from django.db import models class CompanyType(models.Model): na

Re: how to access ForeignKey models properties?

2009-08-19 Thread Marek Palatinus
ase... ;) Marek --~--~-~--~~~---~--~~ 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

Re: Using custom table instead of "user" in django

2009-08-19 Thread Marek Wawrzyczek
other custom fields there can be also descriptors, but they would reffer to yours customer model (for example adapters field homepage which would be descriptor would reffer to customer.homepage). Regards, Marek On 17 Sie, 19:05, Joshua Partogi wrote: > On Mon, Aug 17, 2009 at 10:40 PM, Jonas Obr

Re: error message in admin

2009-08-18 Thread Marek Palatinus
On Tue, Aug 18, 2009 at 4:45 PM, Marek Palatinus wrote: > On Tue, Aug 18, 2009 at 4:36 PM, Joshua Russo wrote: >> On Tue, Aug 18, 2009 at 1:23 PM, Marek Palatinus wrote: >>> >>> On Tue, Aug 18, 2009 at 12:22 PM, Joshua Russo >>> wrote: >>> >

Re: error message in admin

2009-08-18 Thread Marek Palatinus
On Tue, Aug 18, 2009 at 4:36 PM, Joshua Russo wrote: > On Tue, Aug 18, 2009 at 1:23 PM, Marek Palatinus wrote: >> >> On Tue, Aug 18, 2009 at 12:22 PM, Joshua Russo >> wrote: >> > On Tue, Aug 18, 2009 at 8:52 AM, Marek Palatinus >> > wrote: >> >>

Re: The admin interface - this used to work?

2009-08-18 Thread Marek Palatinus
27;^admin-media/(?P.*)$', 'django.views.static.serve', {'document_root': '/opt/django-1.1/django/contrib/admin/media'}), You have to change admin-media to your MEDIA PATH and document root to place, where you have ad

Re: Seamless integration of customized forms in my project

2009-08-18 Thread Marek Palatinus
cause other code readers expect, that SomeClass which they know has common interface). You also have to import new class definition before every attempt of class usage, because when not, python dont print any warning/error, but maybe use generic class with old behaviour. Happy debugging ;). Regards,

Re: error message in admin

2009-08-18 Thread Marek Palatinus
On Tue, Aug 18, 2009 at 12:22 PM, Joshua Russo wrote: > On Tue, Aug 18, 2009 at 8:52 AM, Marek Palatinus wrote: >> >> Hello, >> >> Im doing some validation in ModelAdmin.save_model(). I can cancel >> operation (just dont call parent method), but I also need to s

error message in admin

2009-08-18 Thread Marek Palatinus
to correct inputs? I need validation on level of whole formset, not on field level, so I cannot use some custom field to achieve that. Thanks, Marek --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django

Using fixtures in tests

2009-08-17 Thread Marek Wawrzyczek
s SimpleTestCase(TestCase): fixtures = ['simplefix.json'] def testOne(self): print 'hello' How can I load database during tests from defined fixture? I tried putting simplefix.json in myapp/ in main project folder, in fixtures directory in main project f

Re: inspectdb and postgresql schema

2009-08-12 Thread Marek Pietrucha
Thank you for the anwser :) It's not comforting but now I don't have to dig the whole google achieve ;) In this case, how do I construct django models? best regards, Mark --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Gro

inspectdb and postgresql schema

2009-08-11 Thread Marek Pietrucha
Hello, I have a relational database written in PostgreSQL 8.4. I use different schemas - not default public schema. I tried to inspectdb my database but the output was clean. It looked like the inspectdb tool didn't look in my schemas. I thought it was the matter of the pg driver, so I changed it

Error/Warning/Info reporting from field class possible?

2009-06-02 Thread Marek Blažek
Hi all, is there any possibility to inform user in a Django admin about anything from field class? Let's have some custom field on a model. And I would like to inform user about anything after he pushes save button in Django admin form. class SomeField(models.FileField): . .

Re: Using model instance properties in QuerySets in ModelForm's __init__()

2009-03-31 Thread Marek Wawrzyczek
So I sloved my problem with QuerySet - while creating the ModelForm instance, there should be passed instance argument, not only POST or GET, so that the ModelForm could "know" if there should be edition of existing model or creating a new one. Regards, Marek Marek Marek Wawrzy

Using model instance properties in QuerySets in ModelForm's __init__()

2009-03-30 Thread Marek Wawrzyczek
erySet would result only photo's associated with car id equals to instance's id? Why the kwargs behaves so strange? Thanks in advance, Marek --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django user

Re: Creating bound form and sending it to the page without validation

2009-03-25 Thread Marek Wawrzyczek
= CarPhotoForm(post) return render_to_response('cars.html', {'carForm':carForm, 'carPhotoForm':carPhotoForm}) then without calling form's is_valid method, the validation was performed after submitting form. Malcolm Tredinnick wrote: > On Mon, 20

Re: Creating bound form and sending it to the page without validation

2009-03-23 Thread Marek Wawrzyczek
t; > On Mon, 2009-03-23 at 00:59 +0100, Marek Wawrzyczek wrote: > > Hi > > > > Is there any possibility, to create an bound instance of a form (even if > > it contains fields with incorrect data) and then resend the form to the > > page without validating ? > &g

Creating bound form and sending it to the page without validation

2009-03-22 Thread Marek Wawrzyczek
Hi Is there any possibility, to create an bound instance of a form (even if it contains fields with incorrect data) and then resend the form to the page without validating ? Regards, Marek --~--~-~--~~~---~--~~ You received this message because you are

Re: Adding a field to a form during runtime

2009-03-18 Thread Marek W
er calling make_car_form with extra=True or extra=False. Regards, Marek 2009/3/18 Thomas Guettler > > Hi, > > your code looks correct. > > You can try to debug it. Maybe insert > assert False, self.fields into __init__() > Do the fields from the model exist? > >

Adding a field to a form during runtime

2009-03-18 Thread Marek W
esn't contain any field. When i remove the __init__ method, everything works correctly. How to add a field to a form during a runtime ? Thanks in advance, Marek --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Grou

Re: Problem with uploading a ImageField through ModelForm

2009-03-09 Thread Marek Wawrzyczek
Malcolm Tredinnick wrote: > On Mon, 2009-03-09 at 13:34 +0100, Marek Wawrzyczek wrote: > [..] > > >> When I try to use FileField it works the same. How can I slove this >> problem ? >> > > You need to add a bit extra to the HTML form when file uploads

Problem with uploading a ImageField through ModelForm

2009-03-09 Thread Marek Wawrzyczek
{{ photoForm.as_p }} Through the admin interface, I can add new photos, but when I try to add it through the page, then the "This field is required." message is posted, and the output on the console is: post: photo form is invalid When I try

Re: Why serializing to JSON doesn't work?

2009-03-06 Thread Marek Wawrzyczek
ializing a few models. Is there any way to serialize dictionary of QuerySets without creating json response manually? Regards, Marek > You know what's weird? I've used simplejson.dumps() plenty of times > in my own code... not sure why that one just slipped out of my > memory. I s

Re: Why serializing to JSON doesn't work?

2009-03-05 Thread Marek Wawrzyczek
on was: Circular reference detected when I tried le = LazyEncoder (ensure_ascii = False) the exception was the same: Circular reference detected What's going on with this lazy translation and unicode ? How can I serialize the data correctly ? Regards, Marek --~--~-~--~---

Why serializing to JSON doesn't work?

2009-03-04 Thread Marek Wawrzyczek
serialized and this doesn't print serialized. What do I do wrong ? I'm using Python 2.5.2, Django 1.0.2. Thanks in advance, Marek --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" g

Re: Help w/ installing admin on 1.0.2 on MAC OS 10.4

2009-03-02 Thread Marek Wawrzyczek
Sorry, I wanted to begin a new topic, and I've forgotten to change the subject. Best wishes, Marek --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group

basics: filtering with foreign key

2009-03-02 Thread Marek Wawrzyczek
translate into SQL? I don't understeand why these two may give different results. The second example in my mind should work this way: all blogs that have headline containing 'Lennon' will be filtered to find those whose have at least one entry that has pub_date = 2008. Since

Re: Help w/ installing admin on 1.0.2 on MAC OS 10.4

2009-03-02 Thread Marek Wawrzyczek
will translate into SQL? I don't understeand why these two may give different results. The second example in my mind should work this way: all blogs that have headline containing 'Lennon' will be filtered to find those whose have at least one entry that has pub_date = 2008. Since

Re: PDF creation!!!

2008-12-26 Thread Marek Kubica
egards, Marek --~--~-~--~~~---~--~~ 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 djang

Re: Django configuration. I can't import django.db .

2008-12-06 Thread Marek Wawrzyczek
You're very observant. Thanks :)) 2008/12/6 Karen Tracey <[EMAIL PROTECTED]> > On Sat, Dec 6, 2008 at 11:53 AM, Marek Wawrzyczek <[EMAIL PROTECTED]>wrote: > >> In the tutorial (http://docs.djangoproject.com/en/dev/intro/tutorial01/) >> I do everything what is

Re: Django configuration. I can't import django.db .

2008-12-06 Thread Marek Wawrzyczek
/utils/translation/trans_real.py", line 198, in translation default_translation = _fetch(settings.LANGUAGE_CODE) File "/usr/lib/python2.5/site-packages/django/utils/translation/trans_real.py", line 181, in _fetch app = getattr(__import__(appname[:p], {}, {}, [appname[p+1:]]),

Re: Django configuration. I can't import django.db .

2008-12-06 Thread Marek Wawrzyczek
On the page http://www.juiceanalytics.com/openjuice/django_settings_module/I've found a script and after I run the script then it worked. Regards 2008/12/6 Marek Wawrzyczek <[EMAIL PROTECTED]> > I've created a django application, and after that I get the same error. > Bef

Re: Django configuration. I can't import django.db .

2008-12-06 Thread Marek Wawrzyczek
ango.db modules defaultly on linux ? Regards, Marek 2008/12/6 Roland van Laar <[EMAIL PROTECTED]> > > marekw2143 wrote: > > Hi > > > > I've installed python 2.5.2 into D:\P25 folder. > > Then i installed diango using python setup.py install. &g

Re: django.pl has been officially launched

2008-11-15 Thread Marek Kubica
well possible. regards, Marek --~--~-~--~~~---~--~~ 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 e

Re: django.pl has been officially launched

2008-10-26 Thread Marek Kubica
t unfortunately there are not that many yet. regards, Marek --~--~-~--~~~---~--~~ 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 unsubscr

Re: Django model version control

2008-10-02 Thread Marek Stępniowski
2008/10/2 David Hall <[EMAIL PROTECTED]>: > Marek Stępniowski wrote: >> How does django-reversion deal with relationships between Django models? >> >> Version-controlling relationships between entities is an Achilles heel >> of such applications. I have read dja

Re: Django model version control

2008-10-01 Thread Marek Stępniowski
ntities is an Achilles heel of such applications. I have read django-reversion docs on google code wiki, but I couldn't find any information on that matter. -- Marek Stępniowski http://stepniowski.com --~--~-~--~~~---~--~~ You received this message becaus

Re: Admin Inline does not want to edit

2008-09-15 Thread Marek Kubica
t! It would be great to get Django fixed. Yesterday I was thinking it was my error, if I have some time I'll take a look into the functions you describe in the ticket. regards, Marek --~--~-~--~~~---~--~~ You received this message because you are subsc

Admin Inline does not want to edit

2008-09-14 Thread Marek Kubica
on, self).save(*args, **kwargs) def __unicode__(self): return u"%s: %s" % (self.language, self.translation) It would be really nice if someone could show me what I'm doing wrong. regards, Marek --~--~-~--~~~---~--~~ You received this m

Re: Issue with django-tagging 0.3 (svn) with models definition

2008-07-09 Thread Marek Stępniowski
IntegrityError at /admin/links/links/add/ > tagging_taggeditem.object_id may not be NULL > > What did I miss ? It seems you are running into one of django-tagging quirks. See issue #95 [http://code.google.com/p/django-tagging/issues/detail?id=95]. -- Marek Stępniowski http://stepniowski.com --~--

How to create field not stored in database, but visible in admin?

2008-07-08 Thread Marek Stępniowski
orry for my bad English. I'm not a native speaker. If something is not decipherable to you, just ask. Regards, -- Marek Stępniowski http://stepniowski.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Dja

Sixth Python User Meeting in Munich

2007-12-03 Thread Marek Kubica
Django themselves. More information (and the other, complete announcements in german) can be found on <http://wiki.python.de/User_Group_M%C3%BCnchen> See you there, Marek --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

Fifth Python User Meeting in Munich

2007-11-19 Thread Marek Kubica
themselves. More information can be found on <http://wiki.python.de/User_Group_M%C3%BCnchen> It would be fine people who would like to come would send me a mail, as the room is tricky to find. Of course you can just drop by if you feel like coming :) See you there,

Python user group meeting in Munich

2007-08-14 Thread Marek Kubica
Hi again! I'm announcing the forth Python user group meeting and I invite all Django users from Munich to come. The announce: <http://groups.google.de/group/de.comp.lang.python/browse_thread/thread/0b904c988ad9ef9f/8b6988c6e596dd2e> reg

Meeting of Python users in Munich

2007-07-16 Thread Marek Kubica
; I hope to see some of you there :) regards, Marek --~--~-~--~~~---~--~~ 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

Re: multilanguage site

2007-05-31 Thread Marek Kubica
ot need to modify *anything* inside of Django. You just implement it separately and maybe it gets included in django.contrib. You should take a look at http://www.djangoproject.com/documentation/contributing/ regards, Marek --~--~-~--~~~---~--~~ You received this me

Re: multilanguage site

2007-05-31 Thread Marek Kubica
utures django releases? I think something like this could go in django.contrib. But I'm not sure how many people need this. Anyway, there already is some i18n system in Django. Of course, it does not work well with content from the database. reg

Re: Adding attibutes to models via mixins

2007-05-21 Thread Marek Kubica
lem. In case anyone has any improvements: I'd be happy to hear about them! regards, Marek --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to dj

Adding attibutes to models via mixins

2007-05-20 Thread Marek Kubica
models.Integerfield() seems to work (at least the attribute is in the right place) but unfortunately manage.py sql (and syncdb probably as well) does not find the mixin-injected field. Have you any ideas on how to accomplish this? regards, Marek --~--~-~--~~~

Payments and admin panel - how to do?

2005-09-23 Thread Marek Pulczynski
sefull for unqualified staff. TIA Marek Pulczynski