Re: transforming form input

2020-07-09 Thread Kai Kobschätzki
0 12:49 AM, Benjamin Schollnick wrote: > What I generally do is use https://pypi.org/project/nameparser/ > > While Clive is correct, I haven’t seen name parser fail at breaking it apart > correct so far. > > - Benjamin > > > >> On Jul 8, 2020, at 6:43 PM, Clive

transforming form input

2020-07-07 Thread Kai Kobschätzki
Hi: Although I spent time with researching I have no starting point for solving my problem. Perhaps someone of you could give me a tip.. I have a simple model.py, e.g. class AdressData(models.Model):     forename=models.CharField(max_length=20,null=True,blank=True)    surname=models.CharField(

Re: makemessages - unable to find a locale path

2020-06-12 Thread Kai Kobschätzki
No error message anymore :) On 6/12/20 11:00 AM, Aldian Fazrihady wrote: > After django "forget" the directory, what do you expect makemessages > to do? > > On Fri, Jun 12, 2020 at 3:41 PM Kai Kobschätzki > mailto:kai.kobschaet...@gmail.com>> wrote: > >

Re: makemessages - unable to find a locale path

2020-06-12 Thread Kai Kobschätzki
er. > For example, > LOCALE_PATHS = [os.path.join(BASE_DIR, 'new_locale')] > > On Fri, Jun 12, 2020 at 3:08 PM Kai Kobschätzki > mailto:kai.kobschaet...@gmail.com>> wrote: > > Hi all, > > I have some *.po files. But now I am getting the message error „

makemessages - unable to find a locale path

2020-06-12 Thread Kai Kobschätzki
Hi all, I have some *.po files. But now I am getting the message error „Unable to find a locale path to store translations for file $directory“. All I find with google is that I have to create a subdirectory locale in the $directory. But I removed the $directory, so I can't or I do not want to re

Re: sphinx inside

2020-05-03 Thread Kai Kobschätzki
TemplateView.as_view(template_name="docs/html/index.html")) > > then I can see the index.html but without css and no link works.. > > Greetings > > bengoshi > > On 5/1/20 4:25 PM, Motaz Hejaze wrote: >> Make a v

Re: sphinx inside

2020-05-01 Thread Kai Kobschätzki
> > On Fri, 1 May 2020, 10:09 am Kai Kobschätzki, > mailto:kai.kobschaet...@gmail.com>> wrote: > > Hi Amit, > > thanks for your response. But in this way, I can't use the sphinx > templates, the links are not correct and after every new make html >

Re: sphinx inside

2020-05-01 Thread Kai Kobschätzki
Gupta wrote: > Hii  > If u want to just add your file in your django project u can probably > copy and paste the file in your project file and after that you can > successfully use your file in the project by just writing the name of  > your file with correct extension > > On Fri

sphinx inside

2020-04-30 Thread Kai Kobschätzki
Hi, I installed sphinx and I get an documentation in project_main/docs/_build/html, starting with html/index.html. In so far - fine. Now I want to present this documents inside my project so I can see in the nav-bar a "doc" where I can see them. But I have no idea how to start it. I tried it with

Re: iterate through list

2020-02-14 Thread Kai Kobschätzki
Thanks for the tip, I will read it :) Greetings bengoshi On 2/14/20 2:31 PM, Roger Gammans wrote: > No problem, > > It 's all explained here : > https://docs.djangoproject.com/en/3.0/ref/models/querysets/ > > > On Fri, 2020-02-14 at 14:27 +0100, Kai Kobschätzki wrote:

Re: iterate through list

2020-02-14 Thread Kai Kobschätzki
Hi Roger: Thanks a lot! Such as easy :) Greetings bengoshi On 2/14/20 2:15 PM, Roger Gammans wrote: > Use: > > for data in Journal.objects.all(): > > > > > On Fri, 2020-02-14 at 14:13 +0100, Kai Kobschätzki wrote: >> Hi: >> >> I want t

iterate through list

2020-02-14 Thread Kai Kobschätzki
Hi: I want to do something with the content of a table. Problem is, that the IDs are not continuous. I tried: import .models from Journal last = Journal.obejects.last() last += 1 for i in range(last):   try:     data = Journal.objects.get(pk=i)     doing something with this data   except:     pa

static files

2020-02-03 Thread Kai Kobschätzki
Hi, I want to embedding css- and js-files for seperate templates. I have an django-project with project/static/css/base.css. In the base.html             {% load static %} and in the base.css header {   background-color: #F8F8F8; } In my settings.py STATICFILES_DIRS = [     os.

Changing Queryset into String

2020-01-24 Thread Lim Kai Wey
rence Sometimes feel news chance either ... etc Thank you in advance for anyone who can help me. I really do appreciate it! Sincerely, Kai Wey -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop rec

Re: calling index.html

2019-09-28 Thread Lim Kai Wey
Note: Nonetheless, you should read more about the documentation or the tutorials available since everything you need to start you first Django project is already there. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this gro

Re: calling index.html

2019-09-28 Thread Lim Kai Wey
.html', context) Hope it helps! Sincerely, Kai Wey -- 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 th

Re: Please help me in views.py

2019-09-04 Thread Lim Kai Wey
27;re asking. The tutorial is about building a local library webpage which I believe is very similar to what you are doing now. Hope this helps. Regards, Kai Wey On Wed, Sep 4, 2019 at 3:59 PM Amit Samanta wrote: > now how can i get the name for author and details?? > > On Wed, 4 Sep,

Re: 3D Object Interaction

2019-08-24 Thread Lim Kai Wey
To Thiago, No I certainly have not. Thank you for the recommendation, I’ll check it out. Regards, Kai Wey -- 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

3D Object Interaction

2019-08-23 Thread Lim Kai Wey
Greetings, I would like to ask if anyone has a suggested way for creating a 3D object which can be interacted with on Django. Any suggestions are welcomed. Thanks in advance. Regards, Kai Wey -- You received this message because you are subscribed to the Google Groups "Django users&q

3D Object Interaction

2019-08-21 Thread Lim Kai Wey
Greetings, I would like to ask if anyone has a suggested way for creating a 3D object which can be interacted with on Django. Any suggestions are welcomed. Thanks in advance. Regards, Kai Wey -- You received this message because you are subscribed to the Google Groups "Django users&q

Fwd: FW: Byte string error Django cache + celery

2019-08-20 Thread Kai Aeberli
Hi, When using Django caching backend with celery, I noticed I get an error “if ord(char) < 33 or ord(char) == 127: TypeError: ord() expected string of length 1, but int found” It goes away when I change the yellow highlighted to ‘str(key)’: -- You received this message because you are s

Re: Writing your first Django app, part 1 - Can't Follow it

2019-08-01 Thread Lim Kai Wey
Glad it all worked out. Good luck at your journey. -- 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 discus

Re: Writing your first Django app, part 1 - Can't Follow it

2019-08-01 Thread Lim Kai Wey
Besides that, I do recommend Morzilla's Django Tutorial too, as it covers more in the tutorial compared to Django's own tutorial. Link: https://developer.mozilla.org/en-US/docs/Learn/Server-side/Django/Tutorial_local_library_website Regards, Kai Wey On Thu, Aug 1, 2019 at 6:35 PM L

Re: Writing your first Django app, part 1 - Can't Follow it

2019-08-01 Thread Lim Kai Wey
[ path('', views.IndexView.as_view(), name='index'), ] Please do correct me if I am wrong. Hope it helps. Regards, Kai Wey On Thu, Aug 1, 2019 at 6:17 PM Franck Tchouanga wrote: > I wanted to precise at the level of the syntax from what I wrote above > > Urlpa

Re: Error arises again and again\

2019-08-01 Thread Lim Kai Wey
他说,他要在他社交网站弄个 用户关注 -- 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 discussion on the web visit https://g

Re: Error arises again and again\

2019-08-01 Thread Lim Kai Wey
我找了一篇帖子 主要讲如何在django 中使用ajax 来实现前端和后端的通信。 可以参考一下这篇帖子 https://blog.csdn.net/IqqIqqIqqIqq/article/details/52160662 当然这篇帖子中有一部分内容是中文。但是代码逻辑是相同的。 Translate: I found an article, that mainly teaches the backend and frontend between Django and Ajax. Although the article is in mandarin, but the logic of t

Re: Error arises again and again\

2019-08-01 Thread Lim Kai Wey
他还有问要怎么弄才行。 -- 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 discussion on the web visit https://groups.g

Re: Error arises again and again\

2019-08-01 Thread Lim Kai Wey
xhtml 翻译: 他说,他需要用那系统来设计他网站。他都是靠Ajax 设计那网站的。他都在这学的 https://learning.oreilly.com/library/view/django-2-by/9781788472487/d61f6f4a-a9f1-4f9f-b0eb-18ae1518a2dd.xhtml Ps. I just wanna say please use propose grammar so I can translate more accurately. Thanks Regards, Kai Wey -- You received this me

Re: Error arises again and again\

2019-08-01 Thread Lim Kai Wey
Python 2.7’s package. The Django-Common package will search for its package that is in Python 3.6, if there aren’t any package in this version then you’ll have to look for another solution. Regards, Kai Wey -- You received this message because you are subscribed to the Google Groups "D

Re: Error arises again and again\

2019-08-01 Thread Lim Kai Wey
哈哈哈 我真不介意,大家都来这学习嘛。互相帮忙是应该的。 Translation: I really don’t mind translating, this is where we all learn. It’s a must to help each other out. Ps. The three letters he said translate that I’m a nice person Regards, Kai Wey -- You received this message because you are subscribed to the Google

Re: Error arises again and again\

2019-08-01 Thread Lim Kai Wey
如果有需要, 我能帮忙翻译,看你俩聊好像有点痛苦。 Translation: I can help translate if you guys want... I don’t mind translating Regards, Kai Wey -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails fro

Re: Writing your first Django app, part 1 - Can't Follow it

2019-07-31 Thread Lim Kai Wey
Sammy, would you mind attaching the whole project folder? Thanks Regards, Kai Wey -- 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-user

Re:

2019-07-31 Thread Lim Kai Wey
I’m not sure this could help your situation but it did solve mine for Photo Uploading, since uploading images and files are similar. Hope it helps! https://stackoverflow.com/questions/34006994/how-to-upload-multiple-images-to-a-blog-post-in-django Regards, Kai Wey -- You received this message

Re: Writing your first Django app, part 1 - Can't Follow it

2019-07-31 Thread Lim Kai Wey
To Sammy, Are you sure your urls.py is in the correct file directory? As in it should be in mysite/mysite/urls.py instead of mysite/urls.py Regards, Kai Wey -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this

forms - switch off the validation

2019-07-29 Thread Kai Kobschätzki
Heiho, I wrote a form in forms.py with some validation stuff, especially with def clean_field(). All fine. But in some usecases I would prefare to switch off at least some of the validation. For example it make no sense to check for a double id when I want to delete a reccord. Is it possible to sw

Re: forms.Form with class in html-rendering

2019-07-28 Thread Kai Kobschätzki
ation in the documentation > here   > https://docs.djangoproject.com/en/2.2/ref/forms/widgets/ > > -Juhana > > On Sun, 28 Jul 2019 at 16.57, Kai Kobschätzki > mailto:kai.kobschaet...@gmail.com>> wrote: > > Heiho, > > I wrote a class in views.py >

forms.Form with class in html-rendering

2019-07-28 Thread Kai Kobschätzki
Heiho, I wrote a class in views.py class UploadFileForm(forms.Form): file = forms.FileField() and I use it in a function like def import_data(request): if request.method == "POST": form = UploadFileForm(request.POST, request.FILES) [...] return r

Re: How to access first_name ad last_name in extended User model

2019-07-24 Thread Lim Kai Wey
To pastufrazio, I believe instead of OneToOneField, you should try using, user = models.ForeignKey( settings.AUTH_USER_MODEL, on_delete=models.CASCADE, ) Since the authentication is imported. Regards, Kai Wey -- You received this message because you are subscribed to the

Re: about Django tutorial

2019-07-24 Thread Lim Kai Wey
To 田村佑太, *Is it fine if you show use your urls.py in the polls app as well? I believe the problem is caused from there. * *Regards,* *Kai Wey* On Wed, Jul 24, 2019 at 7:03 PM 田村佑太 wrote: > Using the URLconf defined in mysite.urls, Django tried these URL > patterns, in this order: &g

Re: Developing E - Commerce Website

2019-07-23 Thread Lim Kai Wey
Alright, thank you guys so much for the resources! I’ll take a look into them! Thank you guys so much for helping! :) Regards, Kai Wey -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiv

Re: Developing E - Commerce Website

2019-07-23 Thread Lim Kai Wey
To Daniel, Thank you so much for your recommendation! I’ll go check it out! :) Regards, Kai Wey -- 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 dj

Re: let the previous file as it is now i am doing another one and it is showing same problem

2019-07-23 Thread Lim Kai Wey
To Ajeet, I believe this tutorial may help you understand authentication implementations. It won’t ultimately be your end user registrations but it’s a basic start. Link: https://developer.mozilla.org/en-US/docs/Learn/Server-side/Django/Authentication Regards, Kai Wey On Tue, Jul 23, 2019 at 7

Developing E - Commerce Website

2019-07-23 Thread Lim Kai Wey
is better to separate them like, Book (Have all the fields required for books), Book Instance(Availability Check Box, UUID to keep track of transaction etc. etc. Sorry for the long question. Thanks for reading and hope to hear some favorable replies. Thank you once again! Regards, Kai Wey

Re: order of loading css-files

2019-07-02 Thread Kai Kobschätzki
not Django. Django just emits HTML that is parsed by > your browser. > > > ti 2. heinäk. 2019 klo 15.14 Kai Kobschätzki > mailto:kai.kobschaet...@gmail.com>> > kirjoitti: > > Hi: > > I tried to load bootstrap and an own css-file. But in which order >

order of loading css-files

2019-07-02 Thread Kai Kobschätzki
Hi: I tried to load bootstrap and an own css-file. But in which order does django load it? I have tried in my base.html: {% load static %} {% block title %}gyousei{% endblock title %} ... and the log is writing: [02/Jul/2019 11:54:38] "GET / HTTP/1.1" 200 6259 [02/Jul/201

Re: action in a form

2019-06-24 Thread Kai Kobschätzki
goshi On 6/24/19 10:39 PM, Sebastian Jung wrote: > You send your Form to function journal_overview_view. There are > nothing with save() > > Regards > > Kai Kobschätzki <mailto:kai.kobschaet...@gmail.com>> schrieb am Mo., 24. Juni 2019, 21:14: > > Hi Seba

Re: action in a form

2019-06-24 Thread Kai Kobschätzki
Hi Sebastian, here is the code: urls.py: from django.contrib import admin from django.urls import path from rewe.views import account_overview_view, journal_booking_view, journal_overview_view from crm.views import member_overview_view, member_create_view urlpatterns = [ path('', journal_o

Re: action in a form

2019-06-23 Thread Kai Kobschätzki
Hi Sipum, yes, you are right! Best Greetings bengoshi Am Mo., 24. Juni 2019 um 08:45 Uhr schrieb Sipum Mishra : > Hi bengoshi, > > If i m not wrong, your concern is when you add action ='journal' then data > are not saved. > Right? > > Thanks. > > > On Mon, 24 Jun, 2019, 2:07 AM bengoshi, > wr

Template packages for simple data entry and table data management for business applications

2017-02-24 Thread Kai Fisch
across some postings saying that this is a bad idea. But maybe its exactly what I am looking for. Maybe there are other packes that provide such templates/widgets. I am realy thankful for any comment, help or link to relevant information. Thank you! Kai -- You received this message because you

Re: __unicode__() addition not working in basic poll application.

2014-01-11 Thread Kai Ren
Just type exit() then re-enter the shell, it will work. On Monday, May 16, 2011 7:32:41 AM UTC-5, maaz muqri wrote: > > Hi, > > class Poll(models.Model): > # ... > def __unicode__(self): > return self.question > > class Choice(models.Model

Raise field error in models clean method

2013-05-19 Thread Kai Schlamp
Hello. How to raise a `ValidationException` in the models `clean` method? def clean(self): from django.core.exceptions import ValidationError raise ValidationError({'title': 'not ok'}) The above does not add the error to the `title` field (when using a form), but to the non

Re: My first troll

2012-05-29 Thread Kai Diefenbach
Hi, On 2012-05-28 22:31:35 +, Antoni Aloy said: The troll, lets call him Jim, as this is the nick he has chosen, complains about having a non English entry in what he thinks is a English only planet. +100 to Jim, if you publish on Django planet. Regards Kai -- You received this

Re: Best Practices: How to best implement Rating-Stars in Django Templates

2012-05-14 Thread Kai Diefenbach
On 2009-10-31 14:40:05 +, David said: I would like to have reusable ratings (typical layout with 5 stars). FWIW, https://github.com/diefenbach/django-reviews Kai -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to

Re: Selecting an E-commerce Application

2012-01-15 Thread Kai Diefenbach
i can integrate into my existing django project. If anyone have used these before, please recommend which one I should use. Or is there any better e-commerce app?  Look into: http://djangopackages.com/grids/g/ecommerce/ Kai -- You received this message because you are subscribed to the G

Re: Selecting an E-commerce Application

2012-01-15 Thread Kai Diefenbach
Moin, On 2012-01-15 13:21:50 +, Alec Taylor said: The two main ones are Satchmo and LFS. There's also the up-and-coming django-shop which has a better architecture than the others. Huh? Please elaborate. Kai -- You received this message because you are subscribed to the Google G

Re: Creating websites like Amazon/Ebay using Django

2011-12-19 Thread Kai
On 2011-12-19 10:23:23 +, Russell Keith-Magee said: On Mon, Dec 19, 2011 at 4:04 PM, Kai wrote: On 2011-12-17 18:37:02 +, Jisson Varghese said: first try with djnago orm (models),then shift to sqlalchemy. WTF? Expletive-laden abbreviations are not a substitute for rational

Re: Creating websites like Amazon/Ebay using Django

2011-12-19 Thread Kai
On 2011-12-17 18:37:02 +, Jisson Varghese said: first try with djnago orm (models),then shift to sqlalchemy. WTF? -- 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 uns

Re: Django E-Commerce Framework

2011-12-07 Thread Kai
/django-lfs Cheers Kai -- 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-users+unsubscr...@googlegroups.com. For mo

Re: Django E-Commerce Framework

2011-12-07 Thread Kai
, mistakes, and corrections of others when it comes to ecommerce. +1 Kai -- 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 dj

LFS 0.6 beta 1 released

2011-11-21 Thread Kai
Hi, I'm happy to announce the release of LFS 0.6 beta 1. LFS is an online shop based on Django and jQuery. If you want to read more information please refer to: http://www.getlfs.com/released-06-beta-1 Thanks Kai -- You received this message because you are subscribed to the Google G

Re: E-store

2011-07-01 Thread Kai Diefenbach
p://django-ecommerce.blogspot.com/ HTH Kai -- 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-users+unsubscr...@google

Re: Best django ecommerce aplication?

2011-05-19 Thread Kai Diefenbach
Servus, On 2011-05-19 10:47:24 +0200, Bruno Ripa said: Anyway, we are evaluating http://www.getlfs.com/ (Lighting Fast Shop), another implementation of ecommerce shop, based on django.  even if based on older contepts - like floating menus What does this mean? What is more up-to-date? Kai

Re: TypeError: get_models() got an unexpected keyword argument 'include_auto_created'

2011-05-19 Thread zhang kai
I get this error too, and I found it's because I installed django1.3 before I uninstall django1.1. So I uninstall them all and reinstall the django1.3 everything is OK. You can have a try. On Apr 8, 7:47 am, LIU Liang wrote: > I get a pinax project from SVN, then I new a django project for lance

Re: CMS for django

2010-11-14 Thread Kai Diefenbach
Hi, On 2010-11-15 00:37:29 +0100, Tim Johnson said: I would welcome comments on what CMS is compatible with django. You might look at LFC: http://www.lfcproject.com Kai -- You received this message because you are subscribed to the Google Groups "Django users" group. To po

Re: Connecting a django-registration signal to a function

2010-08-24 Thread Kai Timmer
On 23 Aug., 16:51, Kai Timmer wrote: > Whats the problem here? Really? Is no one able to point me in the right direction here? Or is the question just to stupid? -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to thi

ANN: LFC 1.0

2010-08-24 Thread Kai Diefenbach
://bitbucket.org/diefenbach/django-lfc - Google Group: http://groups.google.com/group/django-lfc - Twitter: http://twitter.com/lfcproject - IRC: irc://irc.freenode.net/django-lfc Any suggestions are highly appreciated. Thanks Kai -- You received this message because you are subscribed to the

Connecting a django-registration signal to a function

2010-08-23 Thread Kai Timmer
Hello, this may sound stupid, but all I want to do is to connect the user_activated signal from django-registration to a simple function. And I think that I missed an important part. I have a signals.py file in my django app with a function create_db which is defined like this: def create_db(send

Re: PIL failed in virtualenv?

2010-08-04 Thread Kai Diefenbach
Hi, On 2010-08-04 08:43:34 +0200, kostia said: But I have a trouble with Imaging-1.1.7! Take a look at Pillow: http://pypi.python.org/pypi/Pillow/1.2 Kai -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group,

Re: Should I start to use Mako from beginning?

2010-06-30 Thread Kai Diefenbach
to a straight forward way to archive the goal. And the same concern also happened for the data model component. Should I use SQLAchemy from beginning? IMHO, Django's strength is the complete consistent stack. So I would use everything it provides or use another smaller framework, l

Re: Deployment hesitation after James Bennett's post, WSGI or ...?

2010-06-24 Thread Kai Diefenbach
worth running lighttpd (or whatever) for static files on small-scale sites (say, where there's just a blog and a few rarely-altered pages)? Yes, of course. Why not? Kai -- You received this message because you are subscribed to the Google Groups "Django users" gro

Re: ANN: LFC - a CMS

2010-01-20 Thread Kai Diefenbach
On 2010-01-20 09:33:45 +0100, YoungKing said: There must be something wrong with your project permission setting,I can't see and have no permission to access the issues. Fixed. Thanks Kai-- You received this message because you are subscribed to the Google Groups "Django users&q

ANN: LFC - a CMS

2010-01-18 Thread Kai Diefenbach
.net If you have any suggestions or questions please don't hesitate to get in contact. Thanks Kai -- 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 un

Re: How to show output from external process

2009-12-04 Thread Xia Kai
seconds. Using a HTTP Refresh page? Well, I would not do that. Because the page would be loaded quite a lot of times, which is quite unnecessary. However, if you hate javascript or for some reason do not care about the traffic. HTTP Refresh could be your choice. -- Xia Kai(夏恺

Re: Show additional user information in admin

2009-12-04 Thread Kai Timmer
2009/12/3 Matt Schinckel : > I have an app called person which has my UserProfile in it: Now I got it. Thank you. Greetings, -- Kai Timmer | http://kaitimmer.de Email : em...@kaitimmer.de Jabber (Google Talk): k...@kait.de -- You received this message because you are subscribed to the Goo

Re: Show additional user information in admin

2009-12-03 Thread Kai Timmer
2009/12/3 bax...@gretschpages.com : > How, exactly? I tried this, with no luck: I can't get it working too. Can someone please provide a simple example? That would be really great. Greetings, -- Kai Timmer | http://kaitimmer.de Email : em...@kaitimmer.de Jabber (Google Talk): k...

Re: Show additional user information in admin

2009-12-03 Thread Kai Timmer
rProfile directly via admin/auth/user. From my novice standpoint, it looks like i have to overwrite the default admin.py from the auth module. Is that right? And if yes, how do I do it "the right way"? Thanks for your help, -- Kai Timmer | http://kaitimmer.de Email : em...@kaitimmer.de Jab

Show additional user information in admin

2009-12-02 Thread Kai Timmer
Hello, by following this guide: http://docs.djangoproject.com/en/dev/topics/auth/#storing-additional-information-about-users I made a model and added some information to every user. What do I have to do, to show these additional fields in the admin/user interface? Greetings, -- Kai Timmer | http

Re: Dynamicly preset forms in the admin interface

2009-12-01 Thread Kai Timmer
2009/12/1 rebus_ : > I hope this casts some light on what i am trying to say. > Anyway, the best way is to read docs and look in django code. Sorry i > can't help more. You helped a lot. Thank you. Greets, -- Kai Timmer | http://kaitimmer.de Email : em...@kaitimmer.de Jabber (G

Re: Dynamicly preset forms in the admin interface

2009-11-30 Thread Kai Timmer
ditable. Nothing to change there once the page is rendered > Hope i helped this time :) Too much Information :) I'm just getting started with django ;) Greets, -- Kai Timmer | http://kaitimmer.de Email : em...@kaitimmer.de Jabber (Google Talk): k...@kait.de -- You received this m

Re: Dynamicly preset forms in the admin interface

2009-11-29 Thread Kai Timmer
to change the default data. Greets, -- Kai Timmer | http://kaitimmer.de Email : em...@kaitimmer.de Jabber (Google Talk): k...@kait.de -- 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

Dynamicly preset forms in the admin interface

2009-11-29 Thread Kai Timmer
w article is written. Lets say a user named Peter is going to write a new article, then the author field should be preset to "Peter" and shouldn't be editable. Same thing for write_date, which should be set to the time Peter started to write this article. How do I do this? Greets, K

Re: Replicating Google Groups in Django

2009-10-28 Thread Kai
e valuable than a site with 1000 registered users. So if anyone is interested in looking further into Mailman 3 integration, give a shout, Kai On Oct 23, 9:06 am, Julien Phalip wrote: > Hi, > > On one site I'm considering the possibility of replicating the (basic) > functi

about django.core.mail.send_mail

2009-10-08 Thread li kai
Can I send email using others' mail account following these steps? 1. I fill my own mail account and password in settings.py. 2. When using "send_mail(subject, message, sender, recipients)", I set sender to a different mail account. --~--~-~--~~~---~--~~ You rece

Re: how to open a new page when clicking a url

2009-09-23 Thread li kai
Thanks, It worked. On Wed, Sep 23, 2009 at 2:07 PM, Ajit jena wrote: > Hello, > > Try this. > > E-shop > target='_blank'>E-coupon > > It will open in a new window. I hope it will fix your issue. > > Thanks, > Ajit > &g

Re: how to open a new page when clicking a url

2009-09-22 Thread li kai
d/or plugins in browser) results may vary. > > li kai kirjoitti: > > Suppose I have these items in my homepage's header. > > > > * E-shop <http://127.0.0.1:8000/ecshop/> > > * E-coupon <http://127.0.0.1:8000/photoes/ecoupons/> > > > > sou

Re: how to open a new page when clicking a url

2009-09-22 Thread li kai
p address in my current web browser window. But I expect it open a new web browser window and jump to the web address. Just like this: We click the search results of google search result, and a new page will pop up. Did I make it clear? On Wed, Sep 23, 2009 at 1:22 PM, Jani Tiainen wrote: &

how to open a new page when clicking a url

2009-09-22 Thread li kai
Hi, How to implement this in my template html file? When an user clicks an url address, a new webpage will pop up. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send em

Re: Sending File Upload Handler errors to the view

2009-08-05 Thread Kai
view and display that message when there is a problem. I hope this helps! ~ Kai On Aug 5, 8:44 am, Kai wrote: > Hi all, > > I want to stop any file uploads that don't end in my designated > extension as soon as they're received. To do this, I define a custom > Upload Handler

Sending File Upload Handler errors to the view

2009-08-05 Thread Kai
st, it has no way to telling whether the upload handler caused the file to be missing and I can't display a useful message to the user. Is there any way to send messages from the Upload Handler to the corresponding view, such that I can display the error to

Re: Plugin technology

2009-05-23 Thread Kai Diefenbach
Hi Jani, On 23 Mai, 14:13, Jani Tiainen wrote: > I'm designing application (site) that is supposed to rely heavily on > pluings. > > i didn't found much of references how I can create plugin ... You may look into this article: http://martyalchin.com/2008/jan/10/simple-

Re: de-facto tagging (was: When do snippets get into Django?)

2009-05-23 Thread Kai Kuehne
Hi, On Fri, May 22, 2009 at 11:52 PM, Dougal Matthews wrote: > Pretty must everybody does seem to use django-tagging unless they have some > special weird use-case. Huh? Can you remove that "everybody", please? I've never used tagging and I'm confident - many others too. --~--~-~--~---

Re: Internationalization (i18n) of model: request.LANGUAGE_CODE in __unicode__ and ordering?

2009-05-20 Thread Kai Kuehne
Hi, On Wed, May 20, 2009 at 1:16 PM, Wouter van der Graaf wrote: > If your app changes the default ordering of the country list to the > language in request.LANGUAGE_CODE (the user specified language) then > that's a good option for me. It uses django-multilingual which itself uses the default

Re: Internationalization (i18n) of model: request.LANGUAGE_CODE in __unicode__ and ordering?

2009-05-20 Thread Kai Kuehne
On Thu, May 7, 2009 at 4:55 PM, Wouter van der Graaf wrote: > > Hi there, > > Spent hours trying to find the solution, but no luck. So here goes... I have worked on making django-countries working with 1.1: http://github.com/kaikuehne/django-countries/tree/master There's also a branch which use

Re: LANGUAGE_CODE

2009-05-18 Thread Kai Kuehne
Hi, 2009/5/18 sammysun : > On May 18, 6:07 am, Kai Kuehne wrote: >> Why do you expect an english term when you said django >> you want chinese text? > {{ d|date:"F Y" }},there d is > a DateTimeField. I want to get the url like "/blog/may/", not &qu

Re: LANGUAGE_CODE

2009-05-17 Thread Kai Kuehne
Hi, 2009/5/17 sammysun : > > Hi: >When I set LANGUAGE_CODE = 'zh-cn' in the sitting file. I want to > get a 3 letters of month useing filter "date" in the template, e.g. > Useing {{ entry.pub_date|date:"M"}}, I will get "五月" in chinese, but > the one I expect is "May". How can I fix this? W

Re: How do I override __unicode__ for User?

2009-05-17 Thread Kai Kuehne
Sorry, pressed that button too early: You could also write a default method inside your BlogPost model. Maybe something like: class BlogPost(models.Model): ... def author_name(self): return '%s %s' % (self.author.first_name, self.author.last_name) --~--~-~--~~

Re: How do I override __unicode__ for User?

2009-05-17 Thread Kai Kuehne
Hi, On Sun, May 17, 2009 at 10:59 PM, Thierry wrote: > > I currently have a blog model: > > [BlogPost Model] > > Right now, author is returning the default User.username.  I have > other models who has a ForeignKey to User, I want them to keep > defaulting to username while for Blogpost, I want

ANN: Demo online shop for LFS

2009-05-11 Thread Kai Diefenbach
Hi, I'm pleased to announce that there is new demo shop for LFS: http://demo.getlfs.com LFS is an online shop based on Django (of course) and distributed under the BSD-License For more information please visit http://www.getlfs.com, subscribe to our feed http://www.getlfs.com/feeds/news or foll

Filtering the admin change list on relatedmodel__isnull

2009-05-07 Thread Kai Groner
fails (instead of no row). Is this an issue for anyone else? Am I barking up the wrong tree? I'm fairly new to django, so I could just be missing something here. Kai Patch to make the admin ChangeList class coerce isnull lookups to use bool. --- a/django/contrib/admin/views/main.py ++

Re: Adding RSS Feed to planet Django

2009-05-05 Thread Kai Diefenbach
> The right person to email for that is Jacob Kaplan-Moss, whose email is at > the bottom of that page. I know, but as I wrote above I had no success sending emails to his email. Kai --~--~-~--~~~---~--~~ You received this message because you are subscri

  1   2   3   >