I forgot links:
Homepage: http://code.google.com/p/fathom/
Documentation: http://code.google.com/p/fathom/wiki/Manual
--
Filip Gruszczyński
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to dj
onship diagrams in
graphviz dot language, that can be turned into pdf or image files
--
Filip Gruszczyński
--
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
:
In [19]: isinstance(Foo, type)
Out[19]: True
--
Filip Gruszczyński
--
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
erives from the appropriate
> metaclass (ModelBase IIRC but better to check it out).
I'll definitely try that.
--
Filip Gruszczyński
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-use
, that
would be used during run time, but Model subclasses can't have own
metaclass.
So, is there any other way?
What I am thinking, is attaching those constants after table are
created _and_ fixtures are loaded. Is there any hook in django, that I
could use?
--
Filip Gruszczyński
--
You received
And if you don't please tell it too, so that the ticket you opened can
> be closed.
>
> Cheers
>
> On Jun 23, 6:00 pm, Filip Gruszczyński <grusz...@gmail.com> wrote:
>> > before: ('^admin/(.*)',admin.site.root),
>>
>> > after: (r'^admin/', include(a
> You can just define `template` in your inlineadmin class:
>
> class MyInlineAdmin(admin.InlineModelAdmin):
> template = 'mytemplates/myinlinetemplate.html'
> model = MyModel
I'll try this. Thanks a lot.
--
Filip Gruszczyński
--
You received this mess
I would like to inject my own admin template instead of a standard
inline for a certain model (this model has additional reference, that
can't be edited by traditional inline). Could someone suggest me, how
I could achieve this?
--
Filip Gruszczyński
--
You received this message because you
(r'^admin/(.*)', admin.site.root),
(r'^admin/', include(admin.site.urls)),
It solved some other problems (admin didn't work at all), but I still
have the problems with links in admin site.
>
> it work good now!!!
>
> bye
>
> 2010/6/23 Filip Gruszczyński <grusz...@gmail.com&g
this variable is rendered in those urls). What I might
have forgotten to set and how can I change it to an empty string?
--
Filip Gruszczyński
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to
I guess we will slowly move in this direction, but for now I just
would like to upgrade our project to 1.2, because it has some feature
we would like use.
--
Filip Gruszczyński
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To po
lates for contrib
> views, you MUST READ THE UPGRADE INSTRUCTIONS to fix those templates.") You
> need to update the login template you are using to include the {% csrf_token
> %} tag.
Thanks a lot, Karen. You are always right ;-) and this time it worked too :-)
--
Filip
I thought I don't have to do anything. Can I disable it somehow?
2010/6/7 Kenneth Gonsalves <law...@au-kbc.org>:
> On Monday 07 June 2010 17:53:46 Filip Gruszczyński wrote:
>> I have just upgraded to 1.2 and when I run ./manage runserver and
>> tried to open main page o
be ready to go, but it isn't. What I might be doing still
wrong?
--
Filip Gruszczyński
--
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 g
It seems that some old 1.1.2 eggs must have been messing with me. I
have removed them all and it works now just right.
--
Filip Gruszczyński
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to
.
'HOST': '', # Set to empty string for
localhost. Not used with sqlite3.
'PORT': '', # Set to empty string for
default. Not used with sqlite3.
}
}
What might be the reason? I don't have sqlite3 libraries?
--
Filip Gruszczyński
--
You received
(db, alias)
File
"/usr/local/lib/python2.6/dist-packages/django/db/backends/sqlite3/base.py",
line 154, in __init__
super(DatabaseWrapper, self).__init__(*args, **kwargs)
TypeError: __init__() takes exactly 2 arguments (3 given)
Has anyone encountered it and know perhaps, what c
racey" <kmtra...@gmail.com> wrote:
2010/5/27 Filip Gruszczyński <grusz...@gmail.com>
>
> I am trying to run tests on the trunk (rev 13307) and when I do, I get:
>
> grusz...@gruszczy-la...
Every time I have seen this, the problem has been that I'm using a settings
tlib.py",
line 35, in import_module
__import__(name)
ImportError: No module named messages
Am I doing something wrong? How can I diagnoze what is wrong?
--
Filip Gruszczyński
--
You received this message because you are subscribed to the Google Groups
"Django users" gro
doing something wrong?
--
Filip Gruszczyński
--
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
django-user
ests/views.py",
line 181, in test_current_site_in_context_after_login
self.assertEquals(response.status_code, 200)
AssertionError: 302 != 200
--
--
Filip Gruszczyński
--
You received this message because you are subscribed to the Google Groups
"Dj
--
Traceback (most recent call last):
File "/usr/lib/pymodules/python2.6/django/contrib/auth/tests/views.py",
line 190, in test_current_site_in_context_after_login
self.assertEquals(response.status_code, 200)
AssertionError: 302 != 200
Sure. In file freetds.conf you should set
client charset = UTF-8
and it started to work. I heard, that there might be still some
problems with, but we haven't yet encountered them.
2010/2/3 Shawn Milochik <sh...@milochik.com>:
>
> On Feb 3, 2010, at 1:30 PM, Filip Gruszczyński wr
OK, we managed to solve this ourselves.
W dniu 3 lutego 2010 18:08 użytkownik Filip Gruszczyński
<grusz...@gmail.com> napisał:
> Hello,
>
> I'm trying to store Django data on MS SQL Server 2005 using:
>
> http://code.google.com/p/django-pyodbc/ (pyodbc + FreeTDS)
>
> As
[cli_punktrejestracji] WHERE
[cli_punktrejestracji].[adres] = ? '
BTW http://code.google.com/p/django-mssql/ doesn't seems to work under
Linux, django-mssql needs pythoncom library. Am I right?
--
Filip Gruszczyński
--
You received this message because you are subscribed to the Google Groups
"D
Ok, I will. Thanks :-)
W dniu 21 stycznia 2010 22:41 użytkownik Matt Schinckel
<matt.schinc...@gmail.com> napisał:
> On Jan 22, 12:00 am, Filip Gruszczyński <grusz...@gmail.com> wrote:
>> I would like to go through all registered apps before server is
>> started a
? Into manage.py?
--
Filip Gruszczyński
--
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
django-users+unsubscr...@google
;> myproj1 --> ../myproj1a
>>
>> So Django will still look for, and find, myproj1, but it'll point at your
>> renamed directory.
>>
>> Hope this helps. Like I say, it's better form to just do the right thing up
>> front and do the renaming, but
Geany: http://geany.org/
It's very small, very fast, very easy to learn, and yet provides some
cool features (autocompletion, tips, detecting symbols). Developers
are very responsive and already made a few features just for me ;-)
--
Filip Gruszczyński
r feature. Then it gets quite messy
;-)
So, these are the only two ways?
--
Filip Gruszczyński
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-use
repo using mercurial), it
stopped importing anything. Does it mean I should just use relative
imports and this would be fine? Do I have to then always add root
directory to the PYTHON_PATH or can I live without it? How exactly
django projects should be constructed.
--
Filip Gruszczyński
Indeed it helped. Thanks a lot, Karen.
2009/8/10 Karen Tracey <kmtra...@gmail.com>:
> 2009/8/10 Filip Gruszczyński <grusz...@gmail.com>
>>
>> Hi!
>>
>> I would like to run django source code tests, but as soon as I do it
>> (after specifying the
om django.test import TransactionTestCase
ImportError: cannot import name TransactionTestCase
Error while importing conditional_processing: File "./runtests.py",
line 134, in django_tests
mod = load_app(model_label)
File "/var/lib/python-support/python2.6/django/db/models/load
V
>
> On May 30, 3:43 pm, Ramiro Morales <cra...@gmail.com> wrote:
>> 2009/5/30 Filip Gruszczyński <grusz...@gmail.com>:
>>
>>
>>
>> > I am building a library for Django that provides some abstract views
>> > (I am using classes inste
Should have check those docs, sorry. Next time I'll make sure I've
checked it all. Thanks for you help.
W dniu 30 maja 2009 15:43 użytkownik Ramiro Morales <cra...@gmail.com> napisał:
>
> 2009/5/30 Filip Gruszczyński <grusz...@gmail.com>:
>>
>> I am building a li
they could be called with client.get or post. Is there
any possibility to achieve this?
--
Filip Gruszczyński
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group,
ot
really an exceptional situation an elegant solution? Isn't it a bit a
hack? I mean - from pragmatic point of view it's cool, cause it will
just work fine. But it causes some strange unease in me..
--
Filip Gruszczyński
--~--~-~--~~~---~--~~
You received this message be
he response
>> into redirect, I can just call:
>> self.status_code = 302
>> and I won't actually change the class attribute, but only instance
>> attribute, right? So I can just subclass HttpResponse, add all stuff
>> (like having function forbid or redirect) and it
I can just subclass HttpResponse, add all stuff
(like having function forbid or redirect) and it should work?
--
Filip Gruszczyński
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To po
def serveBoth(self, request, *args, **kwargs):
pass
I am most concerned with it being thread (and not only thread) safe.
Your alternatives are cool, but I would like to get a solution as
general as (in practical sense) possible.
--
equest? Would this prevent sharing the object?
--
Filip Gruszczyński
--~--~-~--~~~---~--~~
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.co
it, because my
views functions began to grow big and I wanted to divide them into
smaller chunks, and yet keep them logically connected.
What do you think about using this kind of solution? Have anyone tried it?
--
Filip Gruszczyński
--~--~-~--~~~---~--~~
You received
Ok, thanks. I'll give it a try :-)
W dniu 14 maja 2009 11:40 użytkownik Daniel Roseman
<roseman.dan...@googlemail.com> napisał:
>
> On May 14, 10:03 am, Filip Gruszczyński <grusz...@gmail.com> wrote:
>> > Best practice here would be to stop trying to use a webserver
invoke the script.
Even if it's an integral part of an app? And I would like to be able
to access it easily from django testing framework, so it can be
automatically tested every time I need it.
--
Filip Gruszczyński
--~--~-~--~~~---~--~~
You received this m
stdlib and don't worry about anything?
--
Filip Gruszczyński
--~--~-~--~~~---~--~~
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 u
In admin definition attribute filter_horirozntal can be specified,
that creates cool javascript using widget for ManyToMany field. I
would like to use such widget in my form. How can I specify this? I
looked into django.forms.widgets, but none looks like this one.
--
Filip Gruszczyński
I would like to make First name and Last name to be required in User
class from auth package. I believe enough would be to make forms in
admin invalid, when name wasn't provided. Is it somehow possible to
achieve, without changing Django code?
--
Filip Gruszczyński
> http://code.google.com/p/nose-django/
Is there any python lib, that didn't get django plugin ;-)? Thanks :-)
--
Filip Gruszczyński
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" g
know about this package and I'm gonna take a deeper look, since
I would like to learn finally something more about unit tests.
--
Filip Gruszczyński
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users&
d to specify the test to run,
> then it can be of some help.
Thanks a lot, I'll take a look.
> I've also been told nose has similar functionality.
I don't get this one. Is it some kind of a sarcastic or ironic remark
I won't understand unless I'm native speaker?
--
dniu 21 kwietnia 2009 15:43 użytkownik Russell Keith-Magee
<freakboy3...@gmail.com> napisał:
>
> 2009/4/21 Filip Gruszczyński <grusz...@gmail.com>:
>>
>> Hi!
>>
>> I don't have password reset in my project and the base test suite
>> fails because of
Hi!
I don't have password reset in my project and the base test suite
fails because of this. Can I somehow turn of these tests until I
decide to add password reset?
--
Filip Gruszczyński
--~--~-~--~~~---~--~~
You received this message because you are subscribed
OK, thanks. I'll wait patiently for 1.2 then :-)
W dniu 1 kwietnia 2009 17:00 użytkownik Karen Tracey
<kmtra...@gmail.com> napisał:
> 2009/4/1 Filip Gruszczyński <grusz...@gmail.com>
>>
>> I am creating my own admin for a model and I would to add a collapsed
>> i
I have inline admin widget, it's a tabular inline and I would like to
have a few of it's rows filled for the user. Can I achieve it somehow
quickly (DJango 1.0 or 1.1)? Should I put some JS somewhere or is it
possible from admin.py?
--
Filip Gruszczyński
server,
but I can also live with 1.1)
--
Filip Gruszczyński
--~--~-~--~~~---~--~~
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 unsubs
I'll do. Thanks :-)
W dniu 31 marca 2009 18:12 użytkownik Daniel Roseman
<roseman.dan...@googlemail.com> napisał:
>
> On Mar 31, 4:54 pm, Filip Gruszczyński <grusz...@gmail.com> wrote:
>> I have a user profile class and I would like to iterate over all
>> defined fi
values from an instance. Is this possible?
--
Filip Gruszczyński
--~--~-~--~~~---~--~~
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 u
self.assertEquals(response.status_code, 200)
AssertionError: 302 != 200
--
Ran 28 tests in 0.715s
FAILED (failures=7, errors=12)
Destroying test database...
I have googled that and found this
things done perfectly done at work), I will try to put serial package
right into the project instead of using egg and put some prints into
this. This way I might be able to see, what happens inside.
--
Filip Gruszczyński
--~--~-~--~~~---~--~~
You received
ads, everything works fine. Since the serial port is open only
once at the system startup, it is a satisfactory solution. But I
wouldn't be myself, if I didn't try to determine, why it didn't work,
when I run it on separate thread. Any idea, why this might have
happened?
--
Fil
ells them to do something and the follows normal routine. Those
threads do some heavy output work (only output) and then just die.
I will try to debug without threads and see what happens.
--
Filip Gruszczyński
--~--~-~--~~~---~--~~
You received this message b
I tried using import pdb right before the exception and runing
set_trace, but it just displayed next command and finished. This code
is executed in separate thread (ususally operations on serial port
take a while, so I have to do it on seperate thread).
2009/3/26 Filip Gruszczyński <gr
angely, when I just run manage runserver, the serial connection
seems to be working fine.
--
Filip Gruszczyński
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send
File "/usr/lib/python2.5/linecache.py", line 113, in updatecache
for dirname in sys.path:
TypeError: 'NoneType' object is not iterable
(I use threads to allow asynchronous initialisation and sms sending,
since timeout take a while).
Do you know of any issues regarding DJango and pySeria
be null). Why it happens so?
--
Filip Gruszczyński
--~--~-~--~~~---~--~~
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
That explains everything. Thanks.
2009/3/21 Alex Gaynor <alex.gay...@gmail.com>:
>
>
> 2009/3/21 Filip Gruszczyński <grusz...@gmail.com>
>>
>> I have a following question. I started using 1.1 alpha and encountered
>> such an issue. Should I cons
vg('value'))
{'value__avg': 10699.9}
>>> Salary.objects.all()[1:10].aggregate(Avg('value'))
{'value__avg': 10699.9}
>>>
If it is a bug, could you point me to a place, where I could try to
take a look and fix it? I need it and would like to use S
our tests into a file
> called tests.py in your application.
>
> An example of testing a view with doctests can be found here:
> http://docs.djangoproject.com/en/dev/topics/testing/#overview-and-a-quick-example
>
> Preston
>
>
>
> On Mar 18, 6:34 pm, Filip Gruszczyński &l
I am trying to have my function tested using docstring with examples.
When I put it into models.py of an app, it gets tested. If I put
it into views.py, it is not tested; this happens also, if I add
another module (which I import). How can make testing framework test
those?
--
Filip
I see. Thanks a lot :-)
2009/3/18 Alex Gaynor <alex.gay...@gmail.com>:
>
>
> On Tue, Mar 17, 2009 at 8:10 PM, Alex Gaynor <alex.gay...@gmail.com> wrote:
>>
>>
>> 2009/3/17 Filip Gruszczyński <grusz...@gmail.com>
>>>
>>> >
ango in some
future releases?
--
Filip Gruszczyński
--~--~-~--~~~---~--~~
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 t
Does DJango forms provide option of completions? I mean the ones we
can see in Google recently or in youtube. If not, could you point me
to the part of the code,where this could be added?
--
Filip Gruszczyński
--~--~-~--~~~---~--~~
You received this message
nfo only
>> about two args (although function uses **kwargs). Can I somehow
>> specify the depth?
>>
>> --
>> Filip Gruszczyński
> >
>
--
Filip Gruszczyński
--~--~-~--~~~---~--~~
You received this message because you are s
, that there was taken care of it. I tried
depth argument on serialization, but there wasn't such and I can't
find any reference. I took a look at the code, but found info only
about two args (although function uses **kwargs). Can I somehow
specify the depth?
--
Filip Gruszczyński
74 matches
Mail list logo