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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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:
>>> >
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:
>> >>
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
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,
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
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
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
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
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
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):
.
.
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
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
= 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
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
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
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?
>
>
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
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
{{ 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
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
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
--~--~-~--~---
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
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
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
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
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
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
/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:]]),
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
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
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
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
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
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
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
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
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
--~--
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
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
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,
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
;
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
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
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
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
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
--~--~-~--~~~
sefull for
unqualified staff. TIA Marek Pulczynski
69 matches
Mail list logo