Re: It is impossible to add a non-nullable field 'details1' to feature without specifying a default. This is because the database needs something to populate existing rows.

2023-03-27 Thread Erik Manuel Herazo Jimenez
hello, you must apply the default=None, or default="" feature, so that those fields can be filled. ex: details1 = models.CharField(max_length=500, default="") El sáb, 25 mar 2023 a la(s) 07:59, Ebenezer Otchere (swazyman1...@gmail.com) escribió: > Am new in django and have been getting errors in

Django REST Framework (DRF) Cheat Sheet

2023-01-09 Thread Manuel
Hello, I created the Django REST Framework (DRF) Cheat Sheet and the community feedback will be greatly appreciated. Please feel free to read them and let me know if you have any feedback :) Regards, --

Re: User model as ForeignKey forcing username instead of id.

2022-11-23 Thread Erik Manuel Herazo Jimenez
why don't you try to return it by context using a dictionary?, specify where what is the key and what is the value El mié, 23 de nov. de 2022 10:19 a. m., Blaine Wimberly < blaine5...@gmail.com> escribió: > Issue resolved. > > In pure frustration, I dumped the database and deleted all migrations.

Re: Recognize Tags in templates

2021-10-28 Thread Manuel Pita
cussion on the web visit > https://groups.google.com/d/msgid/django-users/427f3c64-923a-4d31-89ed-17a5d9536eb8n%40googlegroups.com > <https://groups.google.com/d/msgid/django-users/427f3c64-923a-4d31-89ed-17a5d9536eb8n%40googlegroups.com?utm_medium=email&utm_source=footer> >

Celery + AWS SQS

2021-09-21 Thread Manuel Buri
Hi, I would like to know if I need to actively delete messages in the queue (AWS SQS) or if I can simply set up the asynchronous service e.g. like in this blogpost <https://www.caktusgroup.com/blog/2011/12/19/using-django-and-celery-amazon-sqs/> . Thank you very much for a short answer.

Do I really need Groups for permission management?

2021-04-11 Thread Manuel Buri
. So basically I am doing the permission management link this which works pretty well. I am asking myself if I should change to groups or just leave it like this? What do you think? Thanks a lot for your inputs/opinions/tipps. Manuel -- You received this message because you are subscribed to

Re: Custom User Model

2021-04-04 Thread Manuel Buri
stored in auth_group while the permission and user allocation is stored in users_account_groups as well as users_account_user_permissions... Is this normal? [image: Screenshot 2021-04-04 at 10.26.11.png] Best wishes, Manuel Manuel Buri T: +41 79 933 01 11 M: manuel.b...@gmail.com W

Custom User Model

2021-04-03 Thread Manuel Buri
Hi, I have a custom user model (see below) with inheritance from AbstractBaseUser and PermissionMixin. Therefore I have not only the auth_group, auth_group_permissions and auth_permissions tables but also those for my custom user model called 'Account'. Currently I have the following problem:

Re: View / Query Set not showing with filter

2021-03-19 Thread Manuel Buri
ext) return render(request, 'overview/overview.html', context) haha sorry for not using pastebin before :D Thank you so much. Best wishes, Manuel Manuel Buri T: +41 79 933 01 11 M: manuel.b...@gmail.com W: www.manuelburi.com <http://manuelburi.com/?utm_source=gmail> On Fri,

Re: View / Query Set not showing with filter

2021-03-19 Thread Manuel Buri
{% endfor %} {% endfor %} What do you think? Thank you so much for your help !!!!! Best wishes, Manuel Manuel Buri T: +41 79 933 01 11 M: manuel.b...@gmail.com W: www.manuelburi.com <http://manuelburi.com/?utm_source=gmail> On Fri, 19 Mar 2021 at 22:51, Thomas Lockha

Re: View / Query Set not showing with filter

2021-03-19 Thread Manuel Buri
kings']=Booking.objects.filter( Q(organization_id=request.user.organization_id), *Q(booking_time__range= (start_date, end_date))*) Thank you so much for your help. Best wishes, Manuel Manuel Buri T: +41 79 933 01 11 M: manuel.b...@gmail.com W: www.manuelburi.com <http://manuelburi.com/?utm

Re: View / Query Set not showing with filter

2021-03-19 Thread Manuel Buri
the field is this (copied from my Model): booking_time= models.DateTimeField(default=timezone.now) sent from my phone. sorry for typos. On Fri, 19 Mar 2021, 21:28 Anornymous u, wrote: > What is the name of the field, this part that reads range > > On Fri, Mar 19, 2021, 16:

Re: View / Query Set not showing with filter

2021-03-19 Thread Manuel Buri
': 'H'}, {'id': 10, 'account_id': 4, 'organization_id': 11, 'office_id': 1, 'booking_time': datetime.datetime(2021, 3, 21, 0, 0, tzinfo=), 'location': 'H'}]> I am really clueless why this is happening. Do

Re: View / Query Set not showing with filter

2021-03-19 Thread Manuel Buri
Hi Nagaraju May I ask if your question is related to my post? Thanks a lot, Manuel sent from my phone. sorry for typos. On Fri, 19 Mar 2021, 19:10 Nagaraju Singothu, wrote: > Dear connectors, > > Please let me know, what is double tap in python?. Any tutorials > availabl

View / Query Set not showing with filter

2021-03-19 Thread Manuel Buri
t *rid* of Q(booking_time__range= (start_date, end_date) and only do: context['bookings']=Booking.objects.filter( Q(organization_id=request.user.organization_id)) then it is also non-empty AND it is displaying it in my template. *What am I missing here?* Thank you for your help. Manu

Re: 2 Almost equal Context with non-empty query set: 1 works, 1 returns nothing

2021-03-19 Thread Manuel Buri
date my HTML renders the context perfectly. Does that help to provide further help? Thank you so much. Manuel On Friday, 19 March 2021 at 04:09:54 UTC+1 aris...@is-jpn.com wrote: > use this > > https://docs.djangoproject.com/ja/3.1/ref/models/querysets/#date > > *.filter(boo

2 Almost equal Context with non-empty query set: 1 works, 1 returns nothing

2021-03-18 Thread Manuel Buri
equest.user.organization_id) return render(request, 'overview/overview.html', context) return render(request, 'overview/overview.html', context) Thank you so much for your help. Manuel -- You received this message because you are subscribed to the Google Groups "Django use

Calendar based on JS/JQuery needs to communicate with Django

2021-03-17 Thread Manuel Buri
few changes. Thank you so much!! Manuel -- 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. To view this dis

Re: Add user email verification to custom user model

2021-03-12 Thread Manuel Buri
Thank you very much for your help. I made it work! Please let me know if I need to explain it to someone else. Best wishes, Manuel Manuel Buri T: +41 79 933 01 11 M: manuel.b...@gmail.com W: www.manuelburi.com <http://manuelburi.com/?utm_source=gmail> On Tue, 9 Mar 2021 at 17:54,

Re: Add user email verification to custom user model

2021-03-09 Thread Manuel Buri
ermissons def has_perm(self, perm, obj=None): return self.is_admin # Does this user have permission to view this app? (ALWAYS YES FOR SIMPLICITY) def has_module_perms(self, app_label): return True And know I would like to implement an email verification step that sets the user

Add user email verification to custom user model

2021-03-09 Thread Manuel Buri
Hi, I am a bit lost while trying to add user email verification step to my custom user model that is based on AbstractBaseUser. Did someone do that already or if not how should I do it differently? Thank you so much! -- You received this message because you are subscribed to the Google Groups

how to split in multiple file class models.py?

2021-01-30 Thread Manuel
Hello everyone, I have a question about Django and the use of namespaces or packages to split the models.py file. I would like to adopt the Java philosophy in which one file corresponds one class and one db table. I tried to follow this guide, but it doesn’t work. https://docs.djangoproject.com/e

Re: Virtual keyboard popup for running web app on touch-screen device

2020-09-28 Thread Manuel Fedele
Just to know, why do you want this behavior? The os should already handle this and show a virtual keyboard on touch devices (if I touch the screen on my Dell xps for example). Manuel Il lun 28 set 2020, 20:29 tristant ha scritto: > Hi, > > What package available in Django that I c

Arbitrage bot

2020-06-20 Thread Viktor Manuel Naranjo
Hi guys, someone here has programmed a cryptocurrency arbitrage bot??? -- 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.

Re: Mostrar datos en un formulario (inputs) en un template.

2019-04-25 Thread Manuel Alejandro Garrido Gongora
Si estas usando ajax lo que puedes hacer es instalarte django rest framework o crearte una vista que cuando sea get te retorne los datos de la db y cuando sea post los actualice y puedes llamarla desde ajax una primera vez cuando se ejecuta el formulario para rellenarlo y luego cada vez que se h

Re: Looking for an experienced Django full stack developer

2019-02-26 Thread Manuel Alejandro Garrido Gongora
Hi, I'm interested can you tell me more? thanks! El mar., 26 feb. 2019 a las 11:02, Giorgio M. () escribió: > We are looking to expand our team with an experienced Python / Django > developer, with the ability to work vertically from the model creation to > the frontend (on a bootstrap template a

Re: note matching query does not exist.

2018-09-13 Thread Manuel Alejandro Garrido Gongora
It is likely because you are getting a directly on an object that probably does not exist in the database, I recommend that you use it instead of get filter (). first () or the method get_object_or_404 from django Regards Enviado desde mi iPhone > El 12 sept 2018, a las 19:43, Gear Crew > esc

Re: Django 2.0 MongoDB

2018-05-18 Thread Manuel Pita
iew this discussion on the web visit https://groups.google.com/d/ > msgid/django-users/193821D6-941C-4A67-9478-50427D954F41%40fattuba.com > <https://groups.google.com/d/msgid/django-users/193821D6-941C-4A67-9478-50427D954F41%40fattuba.com?utm_medium=email&utm_source=footer> > . &

Re: Django 2.0 MongoDB

2018-05-18 Thread Manuel Pita
iew this discussion on the web visit https://groups.google.com/d/ > msgid/django-users/193821D6-941C-4A67-9478-50427D954F41%40fattuba.com > <https://groups.google.com/d/msgid/django-users/193821D6-941C-4A67-9478-50427D954F41%40fattuba.com?utm_medium=email&utm_source=footer> > . &

[django.contrib.admin] Static files on signed S3

2017-09-18 Thread Manuel Jeckelmann
d request from my S3 storage. Has anyone else seen this behaviour? How did you handle it (knowing that I don't have enough privileges to change the S3-storage behaviour)? Is this even a bug with the CSS-url function not going through the STATICFILES_STORAGE backend? Thanks for your

Necesito ayuda para poner a funcionar django el tutorial no lo entiendo

2015-02-17 Thread Anibal Manuel Solorzano Nuñez
alguieme puede colaborar sobre como iniciar a trabajar con django apenas lo tengo instalado y no que archivo ejecutar y no entiendo como es que hay que trabajar con python -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from thi

Re: Nginx versus Apache

2013-10-08 Thread Victor Manuel Quiñones Victor
it, send an > email to django-users+unsubscr...@googlegroups.com. > To post to this group, send email to django-users@googlegroups.com. > Visit this group at http://groups.google.com/group/django-users. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-

Re: view data tables?

2013-05-25 Thread Victor Manuel Quiñones Victor
s.google.com/groups/opt_out. > > > -- Quiñones Victor Manuel Tel: +54 0362 15 4 880839 Resistencia - 3500 Argentina -- 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

Re: virtualenv setup

2012-12-29 Thread Victor Manuel Quiñones Victor
gt; https://groups.google.com/d/msg/django-users/-/n4-fu8ioveIJ. > 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 this group at > http://group

Setting urls from project

2012-12-23 Thread Filipe Manuel
I wish that when from accessing localhost:8000/cadastro he showed a form to register, but all the urls I click redirects to the same page. I wonder how pegging the url with the url of the application. I've Identified the error, all urls design guide for single views of the application, but do no

Re: Django MongoDB

2012-11-26 Thread Victor Manuel Quiñones Victor
ember of TEDx EasternMetropolitanBypass > http://www.ted.com/tedx/events/4933 > > https://www.facebook.com/pages/TEDx-EasternMetropolitanBypass/337763226244869 > > > -- > You received this message because you are subscribed to the Google Groups > "Django users" gro

Django MongoDB

2012-11-25 Thread Victor Manuel Quiñones Victor
t-packages/django_mongodb_engine/__init__.py", line 13, in settings.INSTALLED_APPS.insert(0, 'django_mongodb_engine') AttributeError: 'tuple' object has no attribute 'insert' Any help? Thank you all. Victor -- Quiñones Victor Manuel Tel: +54 0362 15 4

Object Serializer

2012-10-09 Thread Victor Manuel Quiñones Victor
Hi guys, I need some help here... I need to serialize some objects and save them into the database. What library would you suggest for it? Thank you -- Quiñones Victor Manuel Tel: +54 0362 15 4 880839 Resistencia - 3500 Argentina -- You received this message because you are subscribed to the

Admin page: how to calculate a parent Field after saving all tabular inlines

2012-04-26 Thread Manuel Rocchetto
this calculation. Can someone tell me how to do it? Thanks and best regards. Manuel -- 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/-/2aR79tRVOaA

cache template tag with an model instance as argument

2012-02-28 Thread Manuel Kaufmann
;>> Title')[0])).hexdigest() == >>> md5_constructor(pickle.dumps(Post.objects.filter(title='Same >>> Title')[1])).hexdigest() False What do you think? [0] https://github.com/jbalogh/django-cache-machine -- Kaufmann Manuel Blog: http://humitos.wordpress.com/ PyA

Re: Web development newbie

2011-07-23 Thread Victor Manuel Quiñones Victor
ibe from this group, send email to >> django-users+unsubscr...@googlegroups.com. >> For more options, visit this group at >> http://groups.google.com/group/django-users?hl=en. >> > > > > -- > *-Furqan Rauf* > *Do you love your creator? Love your fellow-beings first. -

Django + Legacy MSSQL LATIN1

2011-02-15 Thread Manuel Gonçalves - Analista de Sistemas
Hi guys, I new on the group, it,s my first post: Question 1: I have success to play django + pyodbc on debian linux to connect on MSSQL legacy database, I try django-mssql but it,s look likes play only on windows machines, Does anyone have anothes MSSQL backend to integrate django + MSSQL on de

Re: CMS for django

2010-11-15 Thread Manuel Pinot a.k.a. talishte.com
> I would welcome comments on what CMS is compatible with django. > I have seen much on the web regarding this topic, but I would > suspect that from this ML I am much more likely to hear directly > from someone who is deploying a CMS with django. > > thanks in advance > -- > Tim > tim at johnsons

ManyToManyField Unique ID

2010-06-02 Thread Manuel Held
re the Relations between my "Artikel" and my "speiseplan". How do i get this id from the "speiseplan_artikel_speise"? I need this in the Templates. I hope someone can help. Regards, Manuel -- You received this message because you are subscribed to the Google Groups

forms searh foreing key object

2009-12-11 Thread Manuel Ignacio
Hello I have a form with some required fields: date : required patient : (foreing key) descritpion: required The patient table can have at least 1000 records, i don't want to show on a select list, i want to implement another form where i can searh the patient, i want to know how to do this wit

static list and start server process

2009-10-29 Thread Manuel Ignacio
Hello, i have a menu list stored at my database, i want to obtain it only at start server process, and later when add a menu entry this list should be updated, i have the following considerations: 1. I don't want a database query for every request, because menu entry list would be very low frecue

iceweasel 3.0.6 create unser cache problem

2009-09-05 Thread Manuel Ignacio
Hi, when i store my password on icewasel 3.0.6 private data, and i want to create a new user, the new user form is preloaded with the current user's username and password regards --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Goog

when browser store user password, create user fail s

2009-09-05 Thread Manuel Ignacio
hi, when i loggin for first time in django admin interface, the browser ask me if i want to store the password, if i say yes, later when i want create a new user, the form is preloaded whit the logged user info any ideas? regards --~--~-~--~~~---~--~~ You received

create a google account

2009-03-05 Thread Manuel Ignacio
hi, anyone knows if is possible create an google account for an user from django code? thanks --~--~-~--~~~---~--~~ 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@go

site.title does not show in child flatpages templates

2009-02-16 Thread Manuel Ignacio
Hi, when i load my site i have the next code in my view: current_site = Site.objects.get_current() def default_index(request): return render_to_response('doorsFront/default_index.html', {'current_site':current_site}) I load the site name in my template and i extend this template por evereting

site.title does not show in child flatpages templates

2009-02-16 Thread Manuel Ignacio
Hi, when i load my site i have the next code in my view: current_site = Site.objects.get_current() def default_index(request): return render_to_response('doorsFront/default_index.html', {'current_site':current_site}) I load the site name in my template and i extend this template por everetin

Re: Why Django doesn't force testing?

2009-01-05 Thread Manuel Schmidt
Why should django encourage? Django offers everything one needs to do it so if you want to unit test your code, you can just do it. And if you dont care, you can either. HB schrieb: > Hey, > One nice thing about JBoss Seam and Rails is they encourage unit > testing from the very beginning. > Dja

Template Problem with SelectDateWidget

2008-10-25 Thread Manuel Held
Hi all, i have a little Problem with the order of the SelectDateWidget in the Templates. It always as Month - Day - Year. How can i Access the Form Fields separately in the Template? Thanks in advance. Manuel --~--~-~--~~~---~--~~ You received this message

Re: Models not validating

2008-10-25 Thread Manuel Held
how better to construct these models would also be > appreciated. > > Thanks in advance. > Adam > -- > You back your data up on the same planet? > http://www.monkeez.org > PGP key: 0x7111B833 > > > Hi Adam, use: table = models.OneToOneField(Table) instead of table = m

Re: cannot save model to db

2008-10-03 Thread Manuel Meyer
ilImage.ANTIALIAS) image.save(self.miniature_filename, image.format) ### Signals instead of overwriting __init__(self) from django.db.models.signals import post_init def thumb_init(sender, **kwargs): kwargs['instance'].process() kwargs['instance'].make_

Re: cannot save model to db

2008-10-01 Thread Manuel Meyer
Am 30.09.2008 um 20:21 schrieb Rajesh Dhawan: > > You are overriding __init__ but not making sure to call the base > class's __init__ method which does a whole bunch of stuff whenever a > new instance of a Model class is created. This is most definitely > causing your problem. It's best not to ov

cannot save model to db

2008-09-30 Thread Manuel Meyer
Hey, I have a model for Thumbnail, but I cannot save it. It says: AttributeError: 'Thumbnail' object has no attribute 'id'. What is wrong? I use django 1.0-final-SVN-unknown thanks, Manuel Here is an example: >>> from portfolio.models import Photo, Thumbnail

KSS and django

2008-06-20 Thread Manuel Meyer
Did anyone succeed in integrating KSS in django? I tried to make the kss.django demo-app "coolwiki" run, but it didn't work: KeyError: 'Plugin is not registered: scriptaculous-effects' Where should the PlugIn be, where can

odd date problem with free threaded comments

2008-05-30 Thread Manuel Meyer
time or as if it was written 8:23. from settings.py: TIME_ZONE = 'Europe/Berlin' So -7 hours is the time in Chicago , djangos out-of-the-box timezone. Any idea? Manuel --~--~-~--~~~---~--~~ You received this message because you are subscribed to th

Django Book translation (es) finished

2008-05-19 Thread Manuel Kaufmann
e tickets. The version on which the corrections will be made is here: http://grulicueva.homelinux.net/~humitos/django-book-es-1.0-0.1-r638.pdf Thank you very much, we appreciate your help. [1] http://humitos.homelinux.net/django-book [2] http://humitos.homelinux.net/django-book/newticket --

Identify fieldmodel for attributes of an given object

2008-04-30 Thread Manuel Meyer
This code get every member, that is represented as unicode string, but I'd like to know, if it was defined as TextField, CharField How this is possible? Thanks, Manuel --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Goo

How to get ':' in address?

2008-04-22 Thread Manuel Meyer
Hey, I wonder how to get a ':' (btw: what's its name in english?) in my url, so it is shown as : in the address and not as %3A . Like wikipedia does: http://en.wikipedia.org/wiki/Portal:Arts If i try def get_absolute_url(self): return '/top-category:'+self.title_plural it gets print

Re: Threadedcomments works on Mac, but not on Debian

2008-04-22 Thread Manuel Meyer
I twisted some letters in the urls-entry Am 19.04.2008 um 22:28 schrieb Manuel Meyer: > Hey, > as described here [1] I get an NoReverseMatch error on debian when > using django-threadedcomments, while everything works well an mac. > > In both cases I use 0.97-pre-SVN-7436. &

Threadedcomments works on Mac, but not on Debian

2008-04-19 Thread Manuel Meyer
Hey, as described here [1] I get an NoReverseMatch error on debian when using django-threadedcomments, while everything works well an mac. In both cases I use 0.97-pre-SVN-7436. Does anybody know this behaivior? Thanks, Manuel [1] http://groups.google.com/group/django-threadedcomments

Re: OneToOneField unchangeable

2008-04-13 Thread Manuel Meyer
> On Sun, Apr 13, 2008 at 8:34 AM, Manuel Meyer > <[EMAIL PROTECTED]> wrote: > > > No, that's they way it is documented as working. The one-to-one > > field acts as the primary key for the model, and primary keys can't > > be edited. From http:

Re: OneToOneField unchangeable

2008-04-13 Thread Manuel Meyer
> No, that's they way it is documented as working. The one-to-one > field acts as the primary key for the model, and primary keys can't > be edited. From http://www.djangoproject.com/documentation/model- > api/#one-to-one-relationships: > > This OneToOneField will actually replace the prima

OneToOneField unchangeable

2008-04-10 Thread Manuel Meyer
I miss an option? Thanks, Manuel --~--~-~--~~~---~--~~ 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

store user as owner automaticaly

2008-04-09 Thread Manuel Meyer
not what i want here, as the owner should be the person, who created this article. I don't need a real cms with workflow and such stuff. Another solution could be, that the drop-down list only contains the user, who created this article? How could this work? Thanks M

Setting var in context by inclusion tag

2007-10-17 Thread Manuel Meyer
Hey, inside a inclusion tag I try to set a variable to the context. But in no template it is accessible. I followed http://www.djangoproject.com/documentation/ templates_python/#setting-a-variable-in-the-context If I print the context in [1], level is defined, but if I use {% debug %} not

Either category or project added to category

2007-10-07 Thread Manuel Meyer
any Category and reverse. Is it possible, to filter the entries in the admins ForeingKey-list? Got any hint for me? Manuel --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to

Re: User's permissions not updated

2007-09-16 Thread Manuel Meyer
r I can use News. > I use .96-pre > > Thanks, Manuel > > > --~--~-~--~~~---~--~~ 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@googlegr

User's permissions not updated

2007-09-16 Thread Manuel Meyer
Hey, I added a class "News" to models.py of an installed app. But its permissions doesn't appear in the Change User View of the admin interface. Need it to be activated somehow? As superuser I can use News. I use .96-pre

Re: Missing Plus-Sign over ManyToManyField

2007-07-13 Thread Manuel Meyer
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Yes, of course... THANKS!!! > > You need to add the Admin class to ContactPerson > > -rob > > On Jul 12, 6:59 am, Manuel Meyer <[EMAIL PROTECTED]> wrote: >> -BEGIN PGP SIGNED MESSAGE- >> Hash: SHA256

Missing Plus-Sign over ManyToManyField

2007-07-12 Thread Manuel Meyer
a contact person while adding a project. But the sign doesnt appear. Any idea why? Thanks, Manuel from django.db import models from django.utils.translation import gettext_lazy as _ # Create your models here. class ContactPerson(models.Model): name = models.CharField(_("Full Name&q

Change date/datetime input string for admin-interface

2007-06-27 Thread Manuel Meyer
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Hey, how can I change the string for date/datetime fields in the admin interface? 2007-08-15 should be changed to 15.8.2007 ("d.m.Y H:i") Thanks, Manuel -BEGIN PGP SIGNATURE- Version: GnuPG v1.4

Re: Send a filter-pipline output to a template tag

2007-06-26 Thread Manuel Meyer
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 THANKS! I will try that! Manuel Am 26.06.2007 um 15:36 schrieb Aidas Bendoraitis: > > Use the {% with %} template tag for that: > > {% with variable|some_filter as some_list %} >{% for el in some_list %} >

Send a filter-pipline output to a template tag

2007-06-25 Thread Manuel Meyer
ix it with the page's images. Thanks! Manuel -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.6 (Darwin) iQEVAwUBRoACqzOKNHIOcnYMAQj9PAgAsXDuV+ggJ0yPh8+l8D2enRW/LrMxK+wB fvN1RjCDlO06htexWJcRIttfgjq3yPhXOGbNOnu2GFZ/gRdstofKICOGMPGai0A5 8j8dzhgaK+684A5heTsUlcvgeRacEIYFmqWaLIWi0dKV8JxibbFbAR

remove inline item

2007-06-09 Thread Manuel Meyer
Error follows: AttributeError at /moor/admin/doccms/eventimage/ 'NoneType' object has no attribute 'manager' How can I put a link/buttom for every EventImage on the Event admin site to remove it's entry? Thanks, Manuel class EventImage(models.Model

Cant access via fastcgi

2006-09-04 Thread Manuel Meyer
)[-1]): IndexError: string index out of range I am using debian with apache 2.0.55 and fastcgi 2.4.2 Does anybody know, what is wrong? Alternatively: Is there a way, to run the development server also without an terminal-window where it can print its messages? Thanks, Manuel --~--~-~--~

PIL/Freetype2 Problem

2006-07-06 Thread Manuel Meyer
not found: _FMDisposeFontFamilyIterator Referenced from: /usr/local/ lib/libfreetype.6.dylib Expected in: flat namespace I installed Freetype 2.2.1 and PIL 1.1.5 and during PIL installation it was metioned that FreeType is installed. What could be wrong. I am running Django 0.91 on Mac OS X

Newbie: manuell ordering / Images

2006-05-21 Thread Manuel Meyer
django (yes - I am also a python newbie :)) Thanks, Manuel My models.py looks like this right now: from django.db import models class GuidedTour(models.Model): name = models.CharField(maxlength=200, core=True) discription =models.CharField(maxlength=200) class Admin

polls tutorial: How to delete choices and Images?

2006-04-29 Thread Manuel Meyer
Hello list members! Since yesterday I am testing around with Django, and this GREAT tool impresses me a lot! So, I still play with the poll tutorial. I trying to make some improvements to it's code, to learn techniques I will use in future work. I.e. I added image-upload. Adding works perf