Re: Replacing the standard User class with a custom one

2009-04-27 Thread karl
of adding fields). > > Is there an easy way to do it? Or should I just roll my own and give on the > default authentication system and (sniff) admin site? > This blog article explains it simply and has ready-to-use code: http://www.davidcramer.net/code/224/loggi

Re: noob "hello world" problem with URLconf

2013-04-30 Thread Karl
^ is only start with hello. it may be your issues in urls.py Karl Programmer at Olivet Institute of Technology http://oit.olivetuniversity.edu/ 在 2013年4月30日星期二UTC-4下午1时25分41秒,lev...@gmail.com写道: > > what´s up everyone. I just installed Django for the first time, leaving > php in t

Sessions and IP Addresses

2008-09-06 Thread Karl Ward
lows automatic authorization via session data or a HTTP header field, depending on whether the view is serving up html content or is part of a restful API). If it does IP address checking already then great, I don't need to bother. Regards, Karl --~--~-~--~~~---~-

Re: Sessions and IP Addresses

2008-09-06 Thread Karl Ward
On Sep 6, 1:32 pm, "Karen Tracey" <[EMAIL PROTECTED]> wrote: > On Sat, Sep 6, 2008 at 8:20 AM, Tim Chase <[EMAIL PROTECTED]>wrote: > > > Or one might be behind a load-balancing > > NAT (I believe AOL did/does something like this) so requests from > > the same user behind the NAT can appear to be

Re: django-cms-2.0 problem

2009-08-10 Thread Karl Bowden
/. I needed to disable 'south' and 'reversion' to be able to run syncdb to a sqlite db and add pages respectively. Any more details about your dev platform? - Karl --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Goog

Re: Incompatibility with FreeTDS/ODBC and Unicode on a MSSQL server?

2009-03-31 Thread Karl Gingerich
Mark, I'll up to my eye balls in alligators right now, I'll get back to you soon. - Karl -Original Message- From: Mark Shewfelt Date: Tue, 31 Mar 2009 08:25:55 To: Django users Subject: Re: Incompatibility with FreeTDS/ODBC and Unicode on a MSSQL server? Hi Karl, I just c

unique_together FK problem with version 1.2.1

2010-05-30 Thread Karl Lam
e, line 66 Python Executable: /usr/bin/python Python Version: 2.4.3 Python Path:['/data/home/karl-lam/public_html/abc', '/usr/lib/ python2.4/site-packages/setuptools-0.6c11-py2.4.egg', '/usr/lib/ python24.zip', '/usr/lib/python2.4', '/usr

Re: unique_together FK problem with version 1.2.1

2010-05-30 Thread Karl Lam
Hi Karen, It is my mistake. After changing the class members, I forget to change the __unicode__ method... Thank you very much. On May 30, 8:28 pm, Karen Tracey wrote: > On Sun, May 30, 2010 at 5:21 AM, Karl Lam wrote: > > Class A and class B were setup using syncdb. Class B ha

using django for local application

2006-05-04 Thread karl fast
Need to decide if Django is suitable for my application. I need to build a web application for 2-3 people. But they would each run their own copy on their local machine. It will effectively be like any regular app you download, install, and run. But it might become a shared web app in the future,

django behind cherrypy server

2006-05-06 Thread karl fast
Does anyone have instructions on running Django behind CherryPy? It sounds like the builtin web server works, but is not especially robust. I would like to run my app behind a python web server so it can be more easily distributed. My users will be running it locally, so I would like to avoid apa

Re: Django without database

2006-05-12 Thread Karl Fast
Can anyone point me to examples of django apps that either do not use a database, or use it for only part of the app? Looking for source. I'm specifically interested in examples with models that use other persistence backends (like a config file), and the associated views and templates. --~--~-

Running makemessages with domain djangojs results in UnicodeDecodeError

2022-04-06 Thread Benedikt Karl
. Kind regards, Benedikt Karl -- 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

Re: [help] Server Config: django + uwsgi + nginx

2012-04-29 Thread Karl Sutt
ython file that Django generates when you first create a project, there is no need to change it. Good luck! Karl Sutt On Sun, Apr 29, 2012 at 6:49 PM, easypie wrote: > I have this file that was created for me by one of the users in django's > irc channel. I edited to have the right inf

Re: [help] Server Config: django + uwsgi + nginx

2012-04-30 Thread Karl Sutt
I am not entirely sure what you mean by that. If you mean the nginx equivalent of Apache VirtualHosts then the nginx wiki explains it quite nicely http://wiki.nginx.org/ServerBlockExample. Is that what you meant? Karl Sutt On Mon, Apr 30, 2012 at 7:04 PM, easypie wrote: > does y

Re: Web services.

2012-05-02 Thread Karl Sutt
AJAX). In Backbone, you can pass {wait: true} to all the save() calls ( http://documentcloud.github.com/backbone/#Model-save) to wait for a response from the server, otherwise all calls are assumed to be "positive by default" -- saving the data is assumed to be successful by default. Che

Re: [help] Server Config: django + uwsgi + nginx

2012-05-03 Thread Karl Sutt
Have you symlinked /etc/nginx/sites-available/mysite.comto /etc/nginx/sites-enabled/ mysite.com ? Karl Sutt On Thu, May 3, 2012 at 10:23 PM, easypie wrote: > I'm not sure if I should post this in this thread of mine or start new > one. But it's still about the config files. &

Re: Django psycopg error

2012-05-10 Thread Karl Sutt
Hello, Open up a Python shell and try import psycopg2 And let us know what happens. Karl Sutt On Thu, May 10, 2012 at 5:17 PM, Mike Di Domenico < didomenico.mi...@gmail.com> wrote: > Good afternoon, > I am working on installing Django to work with a postgresql on ubuntu > 10.0

Re: pre_save vs post_save

2012-05-12 Thread Karl Sutt
just one of the use cases, but I'm sure you can think of others. Karl Sutt On Sat, May 12, 2012 at 10:46 AM, Alireza Savand wrote: > Hi > > What is the different between pre_save signal and post_save singal. > I know post_save will emited after model instance saved, and pr

Re: pre_save vs post_save

2012-05-12 Thread Karl Sutt
Could you provide some code (paste it to dpaste.org for example)? Specifically, it would be useful to see your model definition and signal connectors etc. Karl Sutt On Sat, May 12, 2012 at 11:38 AM, Alireza Savand wrote: > Thanks for your answer Karl > Actually yes, i want to d

Re: pre_save vs post_save

2012-05-12 Thread Karl Sutt
peak), you should to something like sender.objects.get(id=kwargs['instance'].id) This would get you the current state of the that instance. Hope this is clear and helps. Karl Sutt On Sat, May 12, 2012 at 12:00 PM, Alireza Savand wrote: > Okay > here the paste > http://dpas

Re: pre_save vs post_save

2012-05-12 Thread Karl Sutt
Awesome! No problem. Karl Sutt On Sat, May 12, 2012 at 12:35 PM, Alireza Savand wrote: > Thank you very much Karl, it works! > > > On Sat, May 12, 2012 at 3:13 PM, Karl Sutt wrote: > >> Thanks. So, in onPreSave, you use kwargs['instance'], assuming it's the

Re: pre_save vs post_save

2012-05-13 Thread Karl Sutt
I think you can just change the "id" in instance = sender.objects.get(id=kwargs['instance'].id) to "iso" and that should to the trick. Try it, as I haven't verified it. And let us know. Good luck, Karl Sutt On Sun, May 13, 2012 at 2:39 PM, Alireza Savand w

Re: pre_save vs post_save

2012-05-13 Thread Karl Sutt
Ahh, great! No problem. Karl Sutt On Sun, May 13, 2012 at 3:26 PM, Alireza Savand wrote: > Aha i solved it > > sender.objects.get(id=kwargs['instance'].id) > be > sender.objects.get(*pk*=kwargs['instance'].*pk*) > > Thank you again Karl ;) >

Re: Help - Which IDE is best to use.

2012-05-15 Thread Karl Sutt
e fancy add-ons. But the upside (in my opinion, anyway) is that you gain a deeper understanding of how these things fit together, giving you a better insight into whatever you're working on. Don't be afraid to get your hands dirty :-) Karl Sutt On Tue, May 15, 2012 at 10:51 AM, cougar

Re: django 1.4 + grappelli 2.4: missing css, img files.

2012-06-28 Thread Karl Sutt
ld do the trick. Tervitades/Regards Karl Sutt On Thu, Jun 28, 2012 at 5:07 AM, bruce wrote: > Dear All, > > I know this problem is related with grappelli. But it may be a django > configure problem. So I am posting my question here. > If it is inappropriate, please let me know. &g

Re: have an object available in every templates

2012-06-28 Thread Karl Sutt
I think you can do it with Middleware. https://docs.djangoproject.com/en/1.4/topics/http/middleware/#writing-your-own-middleware Specifically, I think it's worth looking into the "process_template_response" method. Tervitades/Regards Karl Sutt On Thu, Jun 28, 2012 at 3:11 PM,

Re: view didn't return an HttpResponse object....plz help

2012-07-06 Thread Karl Sutt
There is no HttpResponse object returned if the form is *not* valid. You might want to return a template saying that the form input was incorrect. Tervitades/Regards Karl Sutt On Fri, Jul 6, 2012 at 11:49 AM, manish girdhar wrote: > hii tom, > yeah i have rectidy rollno = cd["ro

Re: form.save() fails silently - how to debug?

2012-07-26 Thread Karl Sutt
I think > results = formset.save(commit=False) > formset.save() should be > results = formset.save(commit=False) > results.save() Tervitades/Regards Karl Sutt On Thu, Jul 26, 2012 at 10:35 AM, Derek wrote: > I'd appreciate some help with the following problem, under

Re: Adding more data to Generic Views

2012-07-31 Thread Karl Sutt
on.objects.filter(person_id=self.kwargs[self.pk_url_kwarg]) > return context I have not tested this, but it gives you the idea. You'll want to filter the Vacancy, Certificate and Compensation objects by the person's ID. Good luck Tervitades/Regards Karl Sutt On Tue, Jul 31, 2012 at

Allow users to have a online store on the site

2013-07-19 Thread Karl Arunachal
Hello, There's one plugin for wordpress called Marketpress E commerce, it has many features, but what i am interested is that, with that plugin users can create online store in your site and sell their products. So, is there any plugin or package like Marketpress for django, which have this feature

CSRF in javascript

2013-07-20 Thread Karl Arunachal
Hi, In my users page, i have in place editing with ajax. And when i click edit, it works fine. But when i submit the form, it don't do anything. When i checked, this is the error: CSRF verification failed. Request aborted. So, how do I place {% csrf_token %} in my javascript? Please advice. Than

Re: CSRF in javascript

2013-07-20 Thread Karl Arunachal
#x27;:url, 'title':title, 'tags':tags }) else: form = BookmarkSaveForm() variables = RequestContext(request, { 'form': form }) if ajax: return render_to_response( 'bookmark_save_

Re: CSRF in javascript

2013-07-21 Thread Karl Arunachal
Ok! I will check. Thank you! On Sun, Jul 21, 2013 at 4:27 AM, Fred Stluka wrote: > Karl, > > You are calling render_to_response() wrong. See the docs at: > > https://docs.djangoproject.com/en/dev/topics/http/shortcuts/#render-to-response > > Instead of: > >

tinymce

2013-07-26 Thread Karl Arunachal
Hi, I want to integrate tinymce in my text area. But i can't find any good tutorials for it. Can some someone please advice me how to do this. Thank you. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop rec

tinymce

2013-07-27 Thread Karl Arunachal
Hello, I am not able to use the tinymce editor in my flat pages. My tinymce is in this dir: C:\Users\Kakar\Downloads\Compressed\tinymce\js\tinymce\tinymce.min.js And in my template dir i have another admin folder for 'change_form.html', just below this line: i have added this line for tiymce:

flatpages-tinymce

2013-07-27 Thread Karl Arunachal
Hello, I am trying to use tinymce in the flat pages. But i just can't show it up in my admin. Please help me out where am going wrong. The javascript file is in: C:\Users\Kakar\web\cms\static\js\tinymce\tinymce.min.js urls.py: (r'^tiny_mce/(?P.*)$', 'django.views.static.serve', { 'document_root

background image

2013-07-29 Thread Karl Arunachal
Hello, What do I do to let user upload their own images, and as use it as their profile's background. I am out of clue. Please advice me. Thank you. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receivi

Re: flatpages-tinymce

2013-07-29 Thread Karl Arunachal
quot;? Which error are you > getting? > > > > > On 07/28/2013 08:35 AM, Karl Arunachal wrote: > > Hello, > I am trying to use tinymce in the flat pages. But i just can't show it up > in my admin. Please help me out where am going wrong. > > The java

Re: background image

2013-07-30 Thread Karl Arunachal
Thank you. I will try as you told me. Just one more question, how do i create different static directory for each user? On Tue, Jul 30, 2013 at 5:37 PM, Christian Erhardt < christian.erha...@mojo2k.de> wrote: > Generally speaking you could extend the users profile and add a field to > it. Then y

Re: Help getting started: Which server setup for a beginner? Apache? lighttpd? To use or not virtualenv?

2013-07-30 Thread Karl Arunachal
If you are in windows, I guess i can help you. On Tue, Jul 30, 2013 at 9:18 PM, Jared Nielsen wrote: > I'm trying to learn Django but finding myself lost in troubleshooting > hell. I can't find consistent information on the best approach for a > beginner to get set up. > > I started setting up A

south in windows

2013-08-11 Thread Karl Arunachal
Hi, I am trying to sync south in my db, but i can't sync it. Its giving me an error: (use ./manage.py migrate to migrate these) Is there anyway to do this command, "./manage.py", in windows. I could have done it by chmod + x manage.py in other os. But how do i do it in windows? Is there any other w

Re: south in windows

2013-08-12 Thread Karl Arunachal
Thank you! That solved my problem. On Mon, Aug 12, 2013 at 5:05 AM, Mike Dewhirst wrote: > On 12/08/2013 5:36am, Karl Arunachal wrote: > >> Hi, >> I am trying to sync south in my db, but i can't sync it. Its giving me >> an error: >> (use ./manage.py migrate t

message_set filter

2013-08-16 Thread Karl Arunachal
Hello, I have a model for messaging between the users. models.py: class Message(models.Model): description = models.TextField() date_added = models.DateTimeField(default=datetime.now) sender = models.ForeignKey(User, related_name='sent_set') recipient = models.ForeignKey(User, rel

Re: As a New Bee

2013-08-17 Thread Karl Arunachal
Pycharm! On Fri, Aug 16, 2013 at 7:58 PM, Apokalyptica Painkiller < apokalyptic...@gmail.com> wrote: > Hello Sujeet try this IDE: http://ninja-ide.org/ > > I hope you like it! > > > 2013/8/16 Sujeet Buddiga > >> Hi Djano'ans, >>Im a new bee to Django and would like to work w

Re: message_set filter

2013-08-18 Thread Karl Arunachal
Thank you. On Sun, Aug 18, 2013 at 2:17 PM, Avraham Serour wrote: > so what's the question? > > > On Sat, Aug 17, 2013 at 7:52 AM, Karl Arunachal < > kakararunachalserv...@gmail.com> wrote: > >> Hello, >> I have a model for messaging between

Re: Resize image size in the view

2013-09-10 Thread Karl Arunachal
Hello Carlos! I tried using sorl thumbnail, but whenever I uploads the image, it does upload the image cause I can see it in the folder, but the apache server does not load the uploaded image. But when I load it through the django's inbuilt server it loads the image correctly. On Wed, Sep 11, 201

Re: [Deployment + Apache2] difference between development server & production server

2013-09-18 Thread Karl Arunachal
Its always a pleasure. Have fun coding! On Mon, Sep 16, 2013 at 11:20 PM, hung david wrote: > > > On Monday, September 16, 2013 2:05:56 AM UTC+7, Kakar wrote: >> >> I dont know what you actually mean, but I think just by passing the url >> that you have created in the urls.py, which points to th

django summernote not working properly

2013-10-13 Thread Karl Arunachal
I am using django-summernote as a wysiwyg editor. And till now, I can save the post from the summernote editor and can display it too using the safe filter. But some of its functionalities are not there in my template. 1. There is no image upload butt

Re: help with foreign keys in admin

2011-02-02 Thread Karl Bowden
ble to do this with python property decorators for both these questions. Ie: class Inventory(models.Model): @property def touched_by_name(self): return self.LastTouchedBy.get_full_name() @property def inventory_option_name(self): return self.AppSettings.InventoryOption

Links to files

2018-01-05 Thread Karl Ritchie
Hi I'm very new to Django. I tried searching for this but the answers I found aren't very clear. I'm wanting to create links to PDF documents. I've created an app called writing with a static folder with PDF files. At first I just put an html link in the template file but it when I ran it it

Create account that can either be a person or a group

2016-05-19 Thread Karl Arunachal
I want to create user accounts for my website. The account can be either a person or a group. So for *person* account I want to get different information from them (such as First name, Last Name, ...), and for *group* account get different information (such as Group name, ...). Basically different