Hi,
I want to perform a substring on certain texts in my template (I can't
substring beforelong story -.-).
I already have custom tags working so I really don't know why this one
isn't.
In the files where I have the other tags as well I did this:
@register.filter(name ="cutnr")
@str
Nevermind...i loaded the filter.py in the wrong template -.-
Von: django-users@googlegroups.com
[mailto:django-users@googlegroups.com] Im Auftrag von Szabo, Patrick
(LNG-VIE)
Gesendet: Dienstag, 28. Februar 2012 13:15
An: django-users@googlegroups.com
Betreff: custom tag not working
Hi
Hi,
If i do
for key in request.POST.keys():
print request.POST[key]
Over this (which is the result of print request.Post):
I get:
Monatsreport
42
Should I not get lists ?
i.e:
[Monatsreport]
[2,29,42]
I need those other information from 'my_choice_fie
: django-users@googlegroups.com [mailto:django-users@googlegroups.com] Im
Auftrag von Masklinn
Gesendet: Mittwoch, 29. Februar 2012 10:03
An: django-users@googlegroups.com
Betreff: Re: Post data Query Dict - Why not a list ?
On 2012-02-29, at 09:46 , Szabo, Patrick (LNG-VIE) wrote:
> Hi,
>
Hi,
I want to create my own templatetag that returns true if a user is
member of a certain group.
I did the following:
Created a package "templatetags" in my app.
Wrote a module:
from django import template
register = template.Library()
def check(user):
if str(user.groups
Von: django-users@googlegroups.com
[mailto:django-users@googlegroups.com] Im Auftrag von Szabo, Patrick
(LNG-VIE)
Gesendet: Donnerstag, 01. September 2011 11:39
An: django-users@googlegroups.com
Betreff: custom templatetag that checks groups
Hi,
I want to create my own templatetag that retur
I'm unsure in which direction you want to go so I'm just wrinting for both:
Fom view to template:
I think there are several ways but this is the one I'm using:
return render_to_response('index.html', {'user' : request.user,
'form' : f,
Are you sure you've used the right credentials ?!
Can you log as the admin ?!
If so try to create another user and log in as such.
. . . . . . . . . . . . . . . . . . . . . . . . . .
Ing. Patrick Szabo
XSLT Developer
LexisNexis
Marxergasse 25, 1030 Wien
mailto:patrick.sz...@lexisnexis.at
Tel.:
Hi,
I'm creating an EXCEL-Sheet out of Django with the following code:
response = render_to_response('reportsexcel.html', {'produkte':
dict(buch_pool), 'gesamt_string':gesamt_string}
,context_instance=RequestContext(request))
filename = "report.xls"
response['Content-Disposition'] = 'att
Hi,
Well if i understand you correctly it doesnt sound so hard.
Every user can have one or more businesses and every artikel can have on
business.
So you just query for all articles where the business matches one of the
businesses the user belongs to.
Hope that helps
Patrick
V
To Clarify...you dont really need to make diffrent authentifications you
just have to make a clever query ;-)=
Von: django-users@googlegroups.com
[mailto:django-users@googlegroups.com] Im Auftrag von Szabo, Patrick
(LNG-VIE)
Gesendet: Donnerstag, 17. November 2011 09:41
An: django-users
Hi,
In the last couple of weeks my app has become quite slowly and I'm
wondering why that is.
Are there any debugging tools where I can see what takes how much time ?
cheers
. . . . . . . . . . . . . . . . . . . . . . . . . .
Ing. Patrick Szabo
XSLT Developer
LexisNexis
Marxergasse 2
ython
profiler. Here's one project that facilitates profiling a WSGI app
(assuming you're using Django via WSGI): http://repoze.org/
Others here may have more experience with profiling web apps.
_Nik
On Dec 4, 2011, at 10:55 PM, Szabo, Patrick (LNG-VIE) wrote:
Hi,
In the
ling a WSGI app
(assuming you're using Django via WSGI): http://repoze.org/
Others here may have more experience with profiling web apps.
_Nik
On Dec 4, 2011, at 10:55 PM, Szabo, Patrick (LNG-VIE) wrote:
Hi,
In the last couple of weeks my app has become quite slowly and I
e taken to query, and allow you to see the stack trace for the
code that caused the query to be executed.
Hope that helps,
Tim.
> On Dec 5, 2011, at 3:18 AM, Szabo, Patrick (LNG-VIE) wrote:
>
>> Okay that toolbar is really useful and also looks kind of nice J...Thanks
>> for tha
On Dec 5, 2011, at 3:18 AM, Szabo, Patrick (LNG-VIE) wrote:
Okay that toolbar is really useful and also looks kind of nice J...Thanks for
that.
I've already found the problemsomehow my app triggers 800 queries just for
a simple page.
Can I somehow find out which part of my code
Okay it seems that specifying which Foreign-Keys it should follow solves
the problem.
Is this a known issue and can I be sure that this won't cause any
further trouble !?
Von: django-users@googlegroups.com
[mailto:django-users@googlegroups.com] Im Auftrag von Szabo, Patrick
(LN
Hi,
I'v got this piece of code:
def get_my_choices(gruppe):
users = User.objects.all()
choices_list = ()
for user in users:
try:
for groupe in gruppe:
for groupe2 in user.groups.all():
if groupe2 == groupe and (user
izing a snippet
Hi,
Maybe I can't understand you, but try with
u = User.objects.filter(groups__name__in =
gruppe).exclude(groups__name__in='Timesheet-Boss','TimeSheet-Manager','Projektleiter','Normal-User','Manager']).values_list(
Hi,
I'm doing the exact same thing. What i do is i add the id of the object of a
row to the url that the button is linking to.
Then I use urls.py and views.py to identify that id and delete or add the
object.
cheers
. . . . . . . . . . . . . . . . . . . . . . . . . .
Ing. Patrick Szabo
XS
Hi,
Code looks fine to me, maybe you could give us the exact error message ?
You could also try request.user.id or something to get the actual pk and not
only the user object but that’s just a guess.
Von: django-users@googlegroups.com [mailto:django-users@googlegroups.com] Im
Auftrag von David
Hi,
I have an operation that takes about 10 minutes to befinished. It takes that
long because our DB is pretty big.
This produces a timeout.
I have tried so set the timeout in apache higher but it seems that apache is
not taking this directivejust keeps timing out after 300 seconds.
Is the
groups.com
Betreff: Re: problem with timeout
On Mon, Dec 17, 2012 at 7:34 PM, Szabo, Patrick (LNG-VIE)
mailto:patrick.sz...@lexisnexis.at>> wrote:
Hi,
I have an operation that takes about 10 minutes to befinished. It takes that
long because our DB is pretty big.
This produces a timeout.
;
Tel.: +43 1 53452 1573
Fax.: +43 1 534 52 146
. . . . . . . . . . . . . . . . . . . . . . . . . .
Von: django-users@googlegroups.com [mailto:django-users@googlegroups.com] Im
Auftrag von Szabo, Patrick (LNG-VIE)
Gesendet: Dienstag, 18. Dezember 2012 08:08
An: django-users@googlegroups.com
Betre
I’ve had the exact same problem a couple of weeks ago.
There is a timout that you can define for apache however it somehow didn’t take
when i tried it.
You really should consider a background task, as Bill suggested.
For me it was a query that took forever. I was able to cut the time in half by
I’d be interessted if they are still using python or if they moved to „go“
entirely.
Von: django-users@googlegroups.com [mailto:django-users@googlegroups.com] Im
Auftrag von laxmikant ratnaparkhi
Gesendet: Donnerstag, 31. Jänner 2013 16:15
An: django-users@googlegroups.com
Betreff: Kindly help
Hi,
I have the following query:
Buch = Buchung.objects.filter(Produkt = int(POSTvalues['Produkt']))
Later I'm using stuff like:
Buch.Produkt.Bestell_Nr
To speed things up i wan't to use select_related() on the query but no mather
where I add it if I add it i get 0 entries as a result
Hi,
For developement i've used sqlite and now i want to transfer to mysql.
The transfer itself worked fine but now a couple of queries don't work
anymore.
Example:
Buchung.objects.filter(Mitarbeiter = request.user.id,
Datum__startswith=str(tag).split('-')[0])
"tag" looks like 201
e and as dates in mysql.
Try this queryset:
Duchung.objeccts.filter(Mitarbeiter=request.user.id,
Datum__year=str(tag).split('-')[0])
On Wed, Apr 20, 2011 at 11:51 AM, Szabo, Patrick (LNG-VIE)
wrote:
For developement i've used sqlite and now i want to transfer to mysql.
Hi,
I want to filter the dropdownlists that are automatically used to select
a foreign-key in forms (in my views).
Normally that could easily be done with "class Meta" in the Modelform.
Thing is i want to filter by an attribute of the current
userspecificly the groups that the user is as
etely off topic but, what exactly does an "XSLT Developer" do?
On Thu, Apr 21, 2011 at 3:10 PM, Szabo, Patrick (LNG-VIE)
wrote:
Hi,
I want to filter the dropdownlists that are automatically used to select
a foreign-key in forms (in my views).
Normally that could easily be done with &q
oiceField:
form = SomeOtherModelForm()
form.fields['model_dropdown'].choices = choices
Works in a similar fashion with a ModelChoiceField and the queryset
attribute.
On Apr 21, 10:10 am, "Szabo, Patrick \(LNG-VIE\)"
wrote:
> Hi,
>
> I want to filter the dropdownlis
-users@googlegroups.com [mailto:django-users@googlegroups.com] Im
Auftrag von Szabo, Patrick (LNG-VIE)
Gesendet: Freitag, 22. April 2011 09:10
An: django-users@googlegroups.com
Betreff: AW: filtering drop downs according to logged in user
Hi,
I like that idea.
I have a problem with implementing it
Try to connect to the DB with a „real“ client and see i fit works at all.
The webserver (manage.py runserver) does not need to be running when you call
syncdb.
Von: django-users@googlegroups.com [mailto:django-users@googlegroups.com] Im
Auftrag von ???
Gesendet: Freitag, 22. April 2011 13:57
Hi,
Well, are u using a MySQL database or sqilite ?!
Of course that's what it depends on wether to use mysql oder sqlite driver.
Mabe you could give us a little more information about your DB
cheers
. . . . . . . . . . . . . . . . . . . . . . . . . .
Patrick Szabo
XSLT Developer
LexisNexis
M
The lather should work...
. . . . . . . . . . . . . . . . . . . . . . . . . .
Patrick Szabo
XSLT Developer
LexisNexis
Marxergasse 25, 1030 Wien
mailto:patrick.sz...@lexisnexis.at
Tel.: +43 (1) 534 52 - 1573
Fax: +43 (1) 534 52 - 146
-Ursprüngliche Nachricht-
Von: django-users@goog
-)
I think I mixed up the tables before:
submitter = models.ForeignKey(Author, db_column='SubmitterID')
vs
submitter = models.ForeignKey(Author, db_column='authorid')
the latter doesn't work obviously..
Thanks all, I think this will help me on my way!
On May 10,
Maybe they should try to log in simulatneously with the same user while one
uses his iPhone and the other one a PC.
If the error still occurs you know it's not about the devices but about using
the same user or same wifi-network.
cheers
. . . . . . . . . . . . . . . . . . . . . . . . . .
Patr
Maybe you should take look at this:
https://django-userena.org/
The role- and profile- thing could be realized via the normal groups in django.
pat
. . . . . . . . . . . . . . . . . . . . . . . . . .
Patrick Szabo
XSLT Developer
LexisNexis
Marxergasse 25, 1030 Wien
mailto:patrick.sz...@lexi
Hi,
I have the following model:
class Produkte(models.Model):
Kategorie = models.ForeignKey(Kategorien)
Titel = models.CharField(max_length=100)
Auflage = models.IntegerField(max_length=2, blank=True)
Bestell_Nr = models.CharField(max_length=30, blank=True)
ISBN =
. Juli 2011 11:38
An: django-users@googlegroups.com
Betreff: Re: unique_together doesn't work
On Mon, Jul 4, 2011 at 10:33 AM, Szabo, Patrick (LNG-VIE)
wrote:
> Hi,
> ...
> class Meta:
> unique_together = ("Kategorie", "Titel", "Auflage"
-Ursprüngliche Nachricht-
Von: django-users@googlegroups.com [mailto:django-users@googlegroups.com] Im
Auftrag von Kenneth Gonsalves
Gesendet: Montag, 04. Juli 2011 11:40
An: django-users@googlegroups.com
Betreff: Re: unique_together doesn't work
On Mon, 2011-07-04 at 11:33 +0200, Szabo, Pa
: Re: AW: unique_together doesn't work
On Mon, 2011-07-04 at 11:43 +0200, Szabo, Patrick (LNG-VIE) wrote:
> Sry, i was a little bit unclear.
> Of course i tried to store identical entries (all fields have the same
> values) and i had no problem doing so. Since most of the files i w
11 11:53
An: django-users@googlegroups.com
Betreff: Re: unique_together doesn't work
On Mon, Jul 4, 2011 at 10:43 AM, Szabo, Patrick (LNG-VIE)
wrote:
> Hi,
>
> Sry, i was a little bit unclear.
> Of course i tried to store identical entries (all fields have the same
> values)
Hi,
I have a forum that looks like this:
class ReportingForm_Produkt(ModelForm):
class Meta:
model = Buchung
Where Buchung and Produkt looks like this:
class Buchung(models.Model):
Mitarbeiter = models.IntegerField(max_length=3)
Produkt = models.ForeignKey(P
sers@googlegroups.com
Betreff: Re: change values in "select list"
On Mon, Jul 4, 2011 at 11:12 AM, Szabo, Patrick (LNG-VIE)
wrote:
> Hi,
>
>
>
> I have a forum that looks like this:
>
>
>
> class ReportingForm_Produkt(ModelForm):
>
> class Met
es in "select list"
On Mon, Jul 4, 2011 at 11:34 AM, Szabo, Patrick (LNG-VIE)
wrote:
> Okay my Model now looks like this:
>
> ...
>
> but that didn't really change anything :-(
>
That is because you didn't read the documentation I linked you to, and
just
Von: django-users@googlegroups.com [mailto:django-users@googlegroups.com] Im
Auftrag von Tom Evans
Gesendet: Montag, 04. Juli 2011 13:10
An: django-users@googlegroups.com
Betreff: Re: change values in "select list"
On Mon, Jul 4, 2011 at 11:46 AM, Szabo, Patrick (LNG-VIE)
wrote:
> I w
34521573
Fax: +43 (1) 534 52 - 146
-Ursprüngliche Nachricht-
Von: django-users@googlegroups.com [mailto:django-users@googlegroups.com] Im
Auftrag von Tom Evans
Gesendet: Montag, 04. Juli 2011 13:10
An: django-users@googlegroups.com
Betreff: Re: change values in "select list"
On
homework =)
Cheers,
André Terra
On 7/4/11, Szabo, Patrick (LNG-VIE) wrote:
> Okay i think i'm close but i can't figure it out.
> I did this:
>
> class ReportingForm_ProduktField(ModelChoiceField):
> def label_from_instance(self, obj):
> return "My O
to put two and two together. Consider it homework =)
>
>
> Cheers,
> André Terra
>
> On 7/4/11, Szabo, Patrick (LNG-VIE) wrote:
>> Okay i think i'm close but i can't figure it out.
>> I did this:
>>
>> class ReportingForm_ProduktField(ModelCho
Did you write your own view for that purpose ?!
In that view you could use render_to_response and pass you own template
to that.
Von: django-users@googlegroups.com
[mailto:django-users@googlegroups.com] Im Auftrag von Joshua Russo
Gesendet: Mittwoch, 13. Juli 2011 04:24
An: django-users@google
Hi,
Are those tables somehow related to each other per FK ?!
In that case i think you might be able to use a model form for that purpose.
I'm not really good with django myself so i might be talking bs.
. . . . . . . . . . . . . . . . . . . . . . . . . .
Patrick Szabo
XSLT Developer
LexisNe
I'm sorry maybe this is a dumb question but what do you mean when you say
" Inside static-folder I made a link
to ../../lib/python2.7/site-packages/django/contrib/admin/static/admin
for the admin-media files."
?!
. . . . . . . . . . . . . . . . . . . . . . . . . .
Patrick Szabo
XSLT Develope
I'm not sure if i understood your problem a 100 percent so i'll just write what
i think you want ^^
>From what i understand i think you can use the code that has already been
>written. Of course you might want to edit it a little bit for it to comply
>with the other templates.
If you want to
Maybe one of those is something for you
http://djangopackages.com/grids/g/email/
. . . . . . . . . . . . . . . . . . . . . . . . . .
Patrick Szabo
XSLT Developer
LexisNexis
Marxergasse 25, 1030 Wien
mailto:patrick.sz...@lexisnexis.at
Tel.: 00431 534521573
Fax: +43 (1) 534 52 - 146
-U
Maybe I'm still not getting it but I think what you want to set is
admin_media_url instead of admin_media_prefix.
. . . . . . . . . . . . . . . . . . . . . . . . . .
Patrick Szabo
XSLT Developer
LexisNexis
Marxergasse 25, 1030 Wien
mailto:patrick.sz...@lexisnexis.at
Tel.: 00431 534521573
Fax
Do you mean actually deleting an entry in the db
https://docs.djangoproject.com/en/dev/topics/db/queries/#topics-db-queri
es-delete
or removing (not showing) it from the form that is shown in html:
https://docs.djangoproject.com/en/dev/topics/forms/modelforms/#using-a-s
ubset-of-field
Take a look at the sourcecode of the html.
Maybe it's there but has a weird style or if it's not there at all you
might want to show us what's actually in "My_Model_Name.Attribute1"
Von: django-users@googlegroups.com
[mailto:django-users@googlegroups.com] Im Auftrag von bahare hoseini
Gesendet
Hi,
So you want a form to store a news student in your DB right ?!
If that's correct you also have a Model for the Student so you could simply use
a ModelForm instead of a Form.
Example:
class Buchung(models.Model):
Mitarbeiter = models.IntegerField(max_length=3)
Produkt = models.Forei
I think you should complete the tutorial here:
https://docs.djangoproject.com/en/1.3/intro/tutorial01/
It gives you a good overview of what django does and how.
A big part of what youre trying to accomplish is already covered in this
tutorial so it might be all you need :-)
. . . . . . . . .
Plz post the code of your model, form and view so we can take a look at it.
. . . . . . . . . . . . . . . . . . . . . . . . . .
Patrick Szabo
XSLT Developer
LexisNexis
Marxergasse 25, 1030 Wien
mailto:patrick.sz...@lexisnexis.at
Tel.: 00431 534521573
Fax: +43 (1) 534 52 - 146
-Ursprün
I guess you question is how you tell the view to use your template right ?!
Im not a pro myself but here is how i understand it:
You need to return a rendered response in your view.
Now you can directly refer to your template like this:
return direct_to_template(request,'xxx.html')
or if you nee
Glad it works now :-)
. . . . . . . . . . . . . . . . . . . . . . . . . .
Patrick Szabo
XSLT Developer
LexisNexis
Marxergasse 25, 1030 Wien
mailto:patrick.sz...@lexisnexis.at
Tel.: 00431 534521573
Fax: +43 (1) 534 52 - 146
-Ursprüngliche Nachricht-
Von: django-users@googlegroups.c
Hi,
I startet exploring django today and I'm currently stuck.
Right now I'm doing the 3 part of the tutorial, where it says Design
your URLs.
I editet the urls.py so it looks like this:
from django.conf.urls.defaults import *
from django.contrib import admin
admin.autodiscover()
urlpatterns
Nachricht-
Von: django-users@googlegroups.com [mailto:django-users@googlegroups.com] Im
Auftrag von Tom Evans
Gesendet: Dienstag, 08. Februar 2011 16:05
An: django-users@googlegroups.com
Betreff: Re: problem with tutorial
On Tue, Feb 8, 2011 at 2:43 PM, Szabo, Patrick (LNG-VIE)
wrote:
>
Hi,
I'm wondering if I can just add new columns in to the auth_user table
without ruining something in the model.
I'd like to add data like titel.
Thanks in advance.
Kind regards
. . . . . . . . . . . . . . . . . . . . . . . . . .
Patrick Szabo
XSLT-Entwickler
LexisNexis
Marxergasse 25, 103
Thank you !
. . . . . . . . . . . . . . . . . . . . . . . . . .
Patrick Szabo
XSLT-Entwickler
LexisNexis
Marxergasse 25, 1030 Wien
mailto:patrick.sz...@lexisnexis.at
Tel.: +43 (1) 534 52 - 1573
Fax: +43 (1) 534 52 - 146
-Ursprüngliche Nachricht-
Von: django-users@googlegroups.com
Hi,
Is there a way to show (in the admin tool) certain fields only if other
fields are filled with certain values ?!
Example:
I've got a table named Product.
1 product can be a book, a magazine oder just a project.
If a Product is a Book i want to fill different fields than if it
Hi,
I want to assign the id of the user that is currently logged in to a
field of a model.
How do I do that ?!
Kind regards
. . . . . . . . . . . . . . . . . . . . . . . . . .
Patrick Szabo
XSLT-Entwickler
LexisNexis
Marxergasse 25, 1030 Wien
mailto:patrick.sz...@lexisnexis.at
Tel
Might be a stupid question but do i have to import to do that !?
. . . . . . . . . . . . . . . . . . . . . . . . . .
Patrick Szabo
XSLT-Entwickler
LexisNexis
Marxergasse 25, 1030 Wien
mailto:patrick.sz...@lexisnexis.at
Tel.: +43 (1) 534 52 - 1573
Fax: +43 (1) 534 52 - 146
-Ursprünglich
ergasse 25, 1030 Wien
mailto:patrick.sz...@lexisnexis.at
Tel.: +43 (1) 534 52 - 1573
Fax: +43 (1) 534 52 - 146
-Ursprüngliche Nachricht-
Von: django-users@googlegroups.com [mailto:django-users@googlegroups.com] Im
Auftrag von Szabo, Patrick (LNG-VIE)
Gesendet: Donnerstag, 10. Februar
Oh okay, so this only works for views ?!
Can't i use that in my models.py ?!
. . . . . . . . . . . . . . . . . . . . . . . . . .
Patrick Szabo
XSLT-Entwickler
LexisNexis
Marxergasse 25, 1030 Wien
mailto:patrick.sz...@lexisnexis.at
Tel.: +43 (1) 534 52 - 1573
Fax: +43 (1) 534 52 - 146
-
Hi,
I want to change the look of the admin-site a little bit
My folder structure looks like this (Appname is timesheets):
timesheets/
admin/
media
css
img/
admin
I also set this: ADMIN_MEDIA_PREFIX = '/media/'
If i
Hi,
I've tried using the @login_required decorator to limit acces to a
certain view.
This worked fine.
Unfortunately in the template that you are redirected to if the login
was succesfull I don't have acces to any information like username oder
alike.
How do I realize that ?!
For the login temp
Szabo, Patrick (LNG-VIE)
wrote:
> Hi,
>
> I've tried using the @login_required decorator to limit acces to a
> certain view.
> This worked fine.
> Unfortunately in the template that you are redirected to if the login
> was succesfull I don't have acces to any in
Hi,
I know i ask a lot of questions but I have to relaize this project in
almost no time and i just startet using django.
I want to give users the possibility to change their passwords.
I have to use my own template but i cant figure out how to do that.
For testing i just copied the change_pa
-users@googlegroups.com [mailto:django-users@googlegroups.com] Im
Auftrag von Szabo, Patrick (LNG-VIE)
Gesendet: Montag, 14. Februar 2011 11:31
An: django-users@googlegroups.com
Betreff: change password
Hi,
I know i ask a lot of questions but I have to relaize this project in
almost no time and i
Hi,
How do i add a form to a template/view that let's me add a
Databaseentry.
I also want to list all the entries from a certain table in on the same
site.
Now I'm reading the documentaion and it says something about automaticly
creating such forms from models but i can't figure out what
m
Betreff: Re: Form to add data
On Monday, February 14, 2011 12:42:48 PM UTC, Szabo, Patrick (LNG-VIE) wrote:
Hi,
How do i add a form to a template/view that let's me add a Databaseentry.
I also want to list all the entries from a certain table in on the same site.
Now I'm reading the d
Ahh stupid mistake...okay no error anymore.
But i still dont see any field in my view :-(
How do show the form ?!
I guess i have to pass the form onto the template and then reference to it in
the template ?!
If so, how do I do that ?!
I swear I'm reading the documentaion but i really can't find
okay your first linked helped me...thank you !
I guess the documentaion is just too fragmented for me.
So now my view looks like this:
def main(request):
f = BuchungForm(request.POST)
return render_to_response('main/index.html', {'user' : request.user, 'form'
: f})
and my template look
I think sqlflush just prints the SQL-Statement.
Flush will actually du the job
Hope that helps !
Von: django-users@googlegroups.com [mailto:django-users@googlegroups.com] Im
Auftrag von Chen Xu
Gesendet: Dienstag, 15. Februar 2011 08:45
An: django-users@googlegroups.com
Betreff: Re: Havin
commands (ex: sqlclear ) that allows me to only
remove the tables in particular app??
Thanks
On Mon, Feb 14, 2011 at 11:51 PM, Szabo, Patrick (LNG-VIE)
wrote:
I think sqlflush just prints the SQL-Statement.
Flush will actually du the job
Hope that helps
Hi,
I just want an image to be shown in my header so i just added it in my
template like this:
Unfortunately i only get the "alt text" shown and not the image.
The image is in the same directory as the template.
Why doesn't this work ?!
Kind regards
. . . . . . . . . . . . . . . . . . . .
- 146
-Ursprüngliche Nachricht-
Von: django-users@googlegroups.com [mailto:django-users@googlegroups.com] Im
Auftrag von Kenneth Gonsalves
Gesendet: Dienstag, 15. Februar 2011 11:05
An: django-users@googlegroups.com
Betreff: Re: images
On Tue, 2011-02-15 at 11:00 +0100, Szabo, Patrick (LN
Now it works...Thanks a lot everybody !
. . . . . . . . . . . . . . . . . . . . . . . . . .
Patrick Szabo
XSLT-Entwickler
LexisNexis
Marxergasse 25, 1030 Wien
mailto:patrick.sz...@lexisnexis.at
Tel.: +43 (1) 534 52 - 1573
Fax: +43 (1) 534 52 - 146
--
You received this message because yo
Hi,
What i want to do is show all DB-entries of a certain user.
These entries include foreign keys and i need to get the related objects
too and print them in a template
So what i do is this:
First i get all the objects that i need.
buchungen = Buchung.objects.filter(Mitarbeiter
Sry a part of my code was wrong i use
{%for buchung in result %}
{{ buchung[0][0] }}
{%endfor%}
To acces the list...
Von: Szabo, Patrick (LNG-VIE)
Gesendet: Dienstag, 15. Februar 2011 15:09
An: 'django-users@googlegroups.com'
Betreff: list to templ
Tom Evans
Gesendet: Dienstag, 15. Februar 2011 15:24
An: django-users@googlegroups.com
Betreff: Re: list to template
On Tue, Feb 15, 2011 at 2:09 PM, Szabo, Patrick (LNG-VIE)
wrote:
> Hi,
>
> Now when i try to acces that lists with
>
> {{ buchung[0][0] }}
>
This isn't par
emplate
On Tue, Feb 15, 2011 at 2:36 PM, Szabo, Patrick (LNG-VIE)
wrote:
> According to youre link my synthax was correct:
>
>* Dictionary lookup. Example: foo["bar"]
>* Attribute lookup. Example: foo.bar
>* Method call. Example: foo.bar()
>* List-index l
Hi,
Im getting 'str' object is not callable and i have no idea why.
What I'm doing is the following:
delete
buchung is a list and the 6th element oft hat list is an object with an
attribute id.
In my urls.py i did this:
(r'deletion_time/(?P\d+)/$', 'deletion_time'),
And the view looks like
Hi,
I built my own view where users can add new DB-entries.
I have a DateField and generated the Form for it directly from the model
but i don't see this calender-icon like i do in the admin panel.
How can I add it ?!
Is it enough to just reference to the .js in the template !? (doesn'
Hi,
I have a form that - of course - creates new entry in my database.
I created the form out of a model except for 1 field.
Now if i click submit only the values of the fields that are created out
of the form are stored in the DB - also not suprising
What i want to to is take the valu
Hi,
I was trying to get "An AJAX Select Widget for Django"
(http://code.djangoproject.com/wiki/AJAXWidgetComboBox ) running but i
found out that it doesn't work with newer versions of django (correct me
if I'm wrong.)
Is there an alternative or a way to make it work with the newest version
users@googlegroups.com [mailto:django-users@googlegroups.com] Im
Auftrag von Marc DM
Gesendet: Freitag, 25. Februar 2011 19:36
An: Django users
Betreff: Re: combobox
On Feb 25, 11:18 am, "Szabo, Patrick \(LNG-VIE\)"
wrote:
> Hi,
>
> I was trying to get "An AJAX Sele
Hi,
I'm using the latest version of Django with sqlite and want to implement
autocomplete for one of my fields.
I've tried 4 diffrent tutorials an non oft them works.
Has anyone got a full tutorial for me that definetely works with the
current version ?!
Maybe one youre using yourfelf
I'm trying to get my django-app running on apache 2.2 on windows XP.
I've installed everything and the Hello Worlf wsgi ran fine.
Now i wanted to run my django ap and did the following in a django.wsgi
:
import os
import sys
path = 'C:\\Programme\\Apache Software Foundation\\Time2\\
Good morning !
Unfortunately i cant help you with your problem because i have the same problem
here ;)
I can however answer youre question if this is a common problem for django
beginners.
I don't think it's common for django beginners, i'd rather say it's common for
python beginners - like me
If you want to see errors in the browser you might want to set "DEBUG = True"
in your settings.py
Kind regards
. . . . . . . . . . . . . . . . . . . . . . . . . .
Patrick Szabo
XSLT Developer
LexisNexis
Marxergasse 25, 1030 Wien
mailto:patrick.sz...@lexisnexis.at
Tel.: +43 (1) 534 52 - 1573
1 - 100 of 115 matches
Mail list logo