Grasping apps / projects and shared data

2009-04-14 Thread Leon
shown, but the blog app shouldn't know about the groups? How can I make the apps share data? Who's incharge of what? How can I make one app filter out data in another? Cheers // Leon --~--~-~--~~~---~--~~ You received this message because you are subscr

How to overwrite the hyperlink of objects in change list template of django admin?

2008-04-13 Thread Leon
Hi, I use django admin to manage a table. There is a hyperlink for each object in the change_list template, which will bring me to the change_form template. I want to change that hyperlink and redirect it to another url to handle. I didn't want to customize the current change_form for this m

Re: How to overwrite the hyperlink of objects in change list template of django admin?

2008-04-14 Thread Leon
assed to template. I had expected there is a magic function in model class to change it. : ( On Apr 14, 9:23 am, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > On Sun, 2008-04-13 at 06:20 -0700, Leon wrote: > > Hi, > > I use django admin to manage a table. There i

Re: How to overwrite the hyperlink of objects in change list template of django admin?

2008-04-14 Thread Leon
Great. I'll wait for the newforms-admin branch integration. Is there any document about this newforms-admin? On Apr 15, 9:22 am, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > On Mon, 2008-04-14 at 04:04 -0700, Leon wrote: > > I've tried that method and make

Re: How to overwrite the hyperlink of objects in change list template of django admin?

2008-04-20 Thread Leon
here the "%s" will be filled with object pk On Apr 15, 12:17 pm, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > On Mon, 2008-04-14 at 20:50 -0700, Leon wrote: > > Great. I'll wait for the newforms-admin branch integration. > > > Is there any document about t

Re: Web Developer Training

2006-07-16 Thread Leon
heck yes, django is scary for non-programmers. training would be great, I'll be your first trainee. On 7/16/06, bobj <[EMAIL PROTECTED]> wrote: > > I am currently working on putting together a project plan (for my grad > project) to create training on how to use web 2.0 frameworks > (specifically

Re: Web Developer Training

2006-07-16 Thread Leon
i meant non-programmers as in people who are programming literate, but don't consider themselves the programmer or spend their life in code. On 7/16/06, Kenneth Gonsalves <[EMAIL PROTECTED]> wrote: > > > On 17-Jul-06, at 12:47 AM, Leon wrote: > > > heck yes, django

Re: Adding to Models without breaking

2006-08-15 Thread Leon
Thanks for the responses guys, that clears alot of things up. On 8/15/06, Derek Anderson <[EMAIL PROTECTED]> wrote: > > hey leon, > > the schema evolution feature i'm working on should cover the vast > majority of model modifications like you mention, without &

Re: Allowing users to partially update model

2006-09-15 Thread Leon
Thanks guys, using 'follow' worked perfectly. --~--~-~--~~~---~--~~ 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,

Re: CSS in media folder

2006-09-15 Thread Leon
In your template, define your css urls in your like you would a regular html page. The css url is simply your MEDIA_URL plus the css file name. Picio wrote: > Hello, > where can I find a simple guide about how to use CSS through the > "media" folder? > Thanks for any advice. > Picio --~--~---

django and thrift

2011-09-06 Thread leon
Hi, I have one question. Is it possible to use Django to write thrift (http://thrift.apache.org/) formated web service? If it is possible, is there any sample? Thank you! -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group,

A monthly Django session in Leicester with guest speakers on set topics - would this be of interest to you?

2011-04-18 Thread Leon
We are thinking of organising monthly Django sessions in Leicester with guest speakers on set topics that would interest fellow Djangonauts. Our plan is to organise a short 2 hour session each month on a particular topic (e.g. Django + Celery, Django + NoSQL, GeoDjango + MapServer, etc) with a pre

Re: A monthly Django session in Leicester with guest speakers on set topics - would this be of interest to you?

2011-04-20 Thread Leon
Brilliant, thanks Cal. Have you got anything I can see? Leon. On Apr 20, 11:02 am, "Cal Leeming [Simplicity Media Ltd]" wrote: > Hey Leon, > > I'm on the outskirts of Leicester, and would attend if the numbers were > good, and it was on a work friendly day (saturd

Re: A monthly Django session in Leicester with guest speakers on set topics - would this be of interest to you?

2011-04-20 Thread Leon
definitely attend. > > Cheers, > Matt. > > On Apr 18, 3:29 pm, Leon wrote: > > > > > > > > > We are thinking of organising monthly Django sessions in Leicester > > with guest speakers on set topics that would interest fellow > > Djangonau

Re: Generating widget based on class type for a Custom Form

2008-10-08 Thread Leon Yeh
Hi Ronny, Thanks ... that is a great idea! It works like I wanted. Leon Yeh New Avenue Systems Inc. Ronny Haryanto wrote: > On Tue, Oct 7, 2008 at 7:31 PM, Leon Yeh | New Avenue.net > <[EMAIL PROTECTED]> wrote: > >> Hi Ronny, terima kasih... :-) >> >

Re: nested list in templates

2009-09-15 Thread Leon Harris
>From a glance at your code looks it looks like the cat reference is not being updated to the sub category and is just endlessly looping over the top level category something more along these lines may help (where 'do_menu' is an inclusion tag) http://docs.djangoproject.com/en/dev/howto/custom-te

Re: Can not login on running behind Apache, but can when on development server

2008-01-15 Thread Leon Harris
I had a similar problem a while back and it turned out this was the cause : http://code.djangoproject.com/ticket/4220 On Ubuntu the problem was when php5 is enabled mod_python calculates MD5 wrong and breaks the login form. On Jan 14, 2:32 am, shabda <[EMAIL PROTECTED]> wrote: > The following lin

CMS functionality

2013-05-13 Thread Leon Chop
contained in xhtml. I am a seasoned pro in python but have not worked with web frameworks. Grateful for advice. regards Leon -- 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 i

CMS functionality

2013-05-13 Thread Leon Chop
t (static content). Furthermore, I would like to implement search on metadata in xhtml documents. I wonder if it's possible to use Django for that. Grateful for advice. regards Leon -- You received this message because you are subscribed to the Google Groups "Django users" g

Why serializer only works for QuerySet

2013-11-03 Thread Leon Sasson
Django serializer works really well when you need to serialize a QuerySet, but often times I need to serialize a JSON object with more than just a QuerySet. This leads me to serialize the QuerySet, and then load it again to a python dict and then serialize it again. Like this: peopleJSON = seri

db_manager with add method

2011-02-18 Thread Leon Liu
Regarding the ticket13358, the status of it is fixed. Does this work for RelatedManager's add() method as well? I tried with all(), and it did pick the right database. But with add(), it doesn't seem to work. I am using django 1.2.5. -- You received this message because you are subscribed to the

Writing some tests for new feature

2015-04-22 Thread ST LEON
I want to contribute one new feature to Django (doing this first time). I reading this and have one question. First, write tests. I want to improve work of ping_google()

Re: Push notifications in Django

2015-07-07 Thread Leon Han
EventSource+StreamingHttpResponse ? I am not sure. 在 2015年6月28日星期日 UTC+8上午11:51:36,harsh.rathore14写道: > > I am Rails developer and new to Django. I want to build an Webapp which > will have push notification on comments, mentions etc. Is it possible in > Django or I should move to node.js > --

Dictionary passed to widget attr gets mutated

2014-10-28 Thread Leon Sasson
When a dictionary is passed to a Widget as the `attr` kwarg, to be used in filling HTML attributes, this dictionary is mutated, so cannot be reused. See below example to see a clear problem with this. Note how in the first form, when printer as_p(), the second field (session_end) gets an incorre

Re: Why serializer only works for QuerySet

2013-12-19 Thread Leon Sasson
was documented until version 1.1, but then removed, although it is still implemented<https://github.com/django/django/blob/stable/1.6.x/django/core/serializers/__init__.py#L27> as of 1.6. On Sunday, November 3, 2013 3:11:14 PM UTC-5, Daniel Roseman wrote: > > On Sunday, 3 November 201

Re: Tutorial 1 doesn't work

2018-04-28 Thread Fidel Leon
Line 6 of polls/views, should be: def index(request): instead of def index*[*request*]*: Python function names get arguments using parenthesis, not square brackets. Fidel Leon El 28 de abril de 2018 a las 13:54:13, giwon@nexstreaming.com ( giwon@nexstreaming.com) escribió: I did

Re: Working through the Django tutorial and have run into a problem I cannot figure out. Help would be appreciated. What am I missing here? whenever is search the url "http://127.0.0.1:8000/polls/" th

2018-05-03 Thread Fidel Leon
itten (you have three function returns). Seems you are following the tutorial but not removing the previous examples: def index(request): latest_question_list = Question.objects.order_by('-pub_date')[:5] context = {'latest_question_list': latest_question_list} retur

Re: Need help: django-admin.py startproject [projectname] creates directory which I cannot access

2018-05-03 Thread Fidel Leon
users" group. >> To unsubscribe from this group and stop receiving emails from 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 https://groups.google.com/group/djang

Re: Need help: django-admin.py startproject [projectname] creates directory which I cannot access

2018-05-03 Thread Fidel Leon
email to django-users@googlegroups.com. > Visit this group at https://groups.google.com/group/django-users. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/CAJ0SFUA52autPYk95a9s4t%2BHXzdx-OYgj%3DzLyfynYX9XiM%3D6NQ%40mail.gmail.com > <https:

Re: Need help: django-admin.py startproject [projectname] creates directory which I cannot access

2018-05-03 Thread Fidel Leon
thing, so django-admin gets fooled. I haven’t used Comodo for decades so I can’t help with this exact issue, sorry - maybe disabling the antivirus while you’re at Django? O:-) Fidel Leon fi...@flm.cat El 3 de mayo de 2018 a las 18:19:06, Duška Miloradović ( daisyfields...@gmail.com) escribió

Re: Working through the Django tutorial and have run into a problem I cannot figure out. Help would be appreciated. What am I missing here? whenever is search the url "http://127.0.0.1:8000/polls/" th

2018-05-03 Thread Fidel Leon
ion_id): return HttpResponse("You're voting on question %s." % question_id) As a matter of advice, please use a fixed-width font when pasting code, because Python is indented with spaces and using any other type of font makes reading your mail difficult :) El jue., 3 may. 2018

Re: Admin site and Model

2018-05-04 Thread Fidel Leon
ommxT%3DCLjabwVo0T5ubJ-z8GhN8xwbCXMFcEHXpjR4DEw%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- Fidel Leon fi...@flm.cat Phone: +34 622 26 44 92 -- You received this message because you are subscribed to

Re: Admin site and Model

2018-05-04 Thread Fidel Leon
ups.google.com/d/msgid/django-users/CAMOFmommxT%3DCLjabwVo0T5ubJ-z8GhN8xwbCXMFcEHXpjR4DEw%40mail.gmail.com > <https://groups.google.com/d/msgid/django-users/CAMOFmommxT%3DCLjabwVo0T5ubJ-z8GhN8xwbCXMFcEHXpjR4DEw%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > For more options, visit htt

Re: importError

2018-05-04 Thread Fidel Leon
end an > email to django-users+unsubscr...@googlegroups.com. > To post to this group, send email to django-users@googlegroups.com. > Visit this group at https://groups.google.com/group/django-users. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django

Re: How to operate with two models in one view

2018-05-15 Thread Fidel Leon
scribed 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 post to this group, send email to django-users@googlegroups.com. > Visit this group at https:

Re: ImportError : cannot import name include

2018-05-17 Thread Fidel Leon
You are using the wrong combination of Django and tutorial: “include” is available in Django 2 and up, but you’re using Django 1.11. Fidel Leon fi...@flm.cat Phone: +34 622 26 44 92 GPG: 2585 30C2 E3C7 7151 0864 946B 7423 F94B 5753 5FC7 El 17 de mayo de 2018 a las 20:56:56, Tristan Demot

Re: ImportError : cannot import name include

2018-05-18 Thread Fidel Leon
El vie., 18 may. 2018 a las 16:20, Journal-Immo () escribió: > Thank > > But (I use debian 9) > > Apt-get update > > Apt-get install python python3 python-django > > django-admin --version 1.11.13 > > Where is the problem ? > > Le 17/05/2018 à 21:01, Fidel Leon

Re: MySQL caching_sha2_password

2018-05-19 Thread Fidel Leon
% *reachable from the Internet*: MySQL Error 1045 (28000): Access denied for user 'root'@'92.187.87.65' (using password: YES) Not the best idea... Fidel Leon fi...@flm.cat Phone: +34 622 26 44 92 GPG: 2585 30C2 E3C7 7151 0864 946B 7423 F94B 5753 5FC7 El 19 de mayo de 2018 a las 0:

Re: Starting a poll

2018-05-25 Thread Fidel Leon
see the "error". Fidel Leon fi...@flm.cat Phone: +34 622 26 44 92 El día 25 de mayo de 2018 a las 3:43:19, James Farris ( jamesafar...@gmail.com) escrito: > If you open the app once the server is started by going to 127.0.0.1:8000 > is it loading the website or are you getting a 404

Re: Page not found (404).Please check i am unable to run server.It is showing error

2018-05-25 Thread Fidel Leon
/groups.google.com/group/django-users. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/85ba21bf-3c98-4bbe-877f-716eff7b73d2%40googlegroups.com > <https://groups.google.com/d/msgid/django-users/85ba21bf-3c98-4bbe-877f-716eff7b73d2%40googleg

Re: Error while doing django tutorial part 2

2018-05-26 Thread Fidel Leon
> Visit this group at https://groups.google.com/group/django-users. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/0e27456c-eefa-4a1e-bf4f-a44d9e8dcad1%40googlegroups.com > <https://groups.google.com/d/msgid/django-users/0e27456c-eefa

Using AuditTrail in 1.6+

2017-01-11 Thread Leon Sasson
Hello, I've been using AuditTrail from here (https://code.djangoproject.com/wiki/AuditTrail) for quite a while, in 1.6, and it's great. Now, I'm upgrading django to 1.9 and running into some troubles with this specifically. It seems that some model internals have changed and can't quite figure

Re: button not responding when click but when press return key than works

2018-06-13 Thread Fidel Leon
s group, send email to django-users@googlegroups.com. > Visit this group at https://groups.google.com/group/django-users. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/5f518cba-fcdc-4b2a-9f75-fad87b0e3cd0%40googlegroups.com > <https://groups

How to serve this static file

2018-08-11 Thread Sandy Leon
Hello everyone, I recently completed the Django first app tutorial and am decently happy with what I have. I would like to continue adding to the site by making small improvements here and there. Anyways I found a cool cube clock on freefrontend.com but I can't seem to figure out how to add it

Base Views error importing articles.models

2018-08-27 Thread Sandy Leon
Hello everyone, I am trying to add another simple 'home' page to my website which is at this point just the basic site after you finish the tutorial. I am following the 'Base Views' documentation but keep getting an error when trying to import 'from articles.models import Articles' the error reads

__init__.py Won't Upload To Github Respository

2018-09-01 Thread Sandy Leon
Hello everyone, I am trying to upload my Django site files to github to then deploy with Heroku. I have had no major problems except in trying to upload the folder that contains my Django site, github gets stuck on trying to upload ' /mysite/polls/__pycache__/__init__.cpython-36.pyc' Just to be c

Re: __init__.py Won't Upload To Github Respository

2018-09-01 Thread Sandy Leon
I am removing the files as you suggested. I am having a bit of trouble with 'git commit' at the moment as it keeps crashing haha. I should be able to resolve it on my own, thanks again for your help. On Saturday, September 1, 2018 at 11:18:02 AM UTC-4, Sandy Leon wrote: > > Hel

relation "polls_article" does not exist

2018-09-04 Thread Sandy Leon
Hello everyone, I have been using Heroku to try and deploy my Django site. When running the command 'heroku open' Django gives me this error Environment: Request Method: GET Request URL: https://secure-waters-81472.herokuapp.com/ Django Version: 2.0 Python Version: 3.6.6 Installed Applications

Possible Bug: when using memcache backend, fragment templates aren't stored

2021-01-11 Thread Leon Albrecht
So, in my Project I have template that generates a lot of prcedual html (for loop with about 150 entries at once) so cahcing that "snippet" is a reasonable choice, but after activating caching for that project and this template, I still got consistent long generation times, so I looked in the

Re: President of India: Save Nallamala Forest from Uranium Mining @rashtrapatibhvn @TelanganaCMO

2019-09-15 Thread Leon Vaks
eUeN%2BHok0GtgQ%40mail.gmail.com?utm_medium=email&utm_source=footer> >> . >> > -- > 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 > ema

Re: Choosing MySQL or PostGres on Heroku

2019-11-28 Thread Leon Vaks
coming release. I hope this helps, Happy Holiday to Everyone. Leon On Wed, Nov 27, 2019 at 6:34 PM Tim Johnson wrote: > Using python 3.7.2, Django 2.1.5 on Linux development workstation with > deployment to Heroku. > > I retired several ago, primarily coding in python and mostly worki

How to include choice value into queryset?

2020-02-02 Thread Leon Vaks
on_delete=models.CASCADE) interactioncatid = models.IntegerField(choices=interactionCategories, default=3) # choices taskdatetime = models.DateTimeField( blank=True, null=True) duration = models.IntegerField(blank=True, null=True) durationunits = models.CharField(max_length=20, blank=True, null=True) ob

Best practice for shareable web application

2008-11-28 Thread Leon Yeh | New Avenue.net
. Thanks in advance, -- Leon Yeh Imagination Delivered. www.newavenue.net --~--~-~--~~~---~--~~ 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@googlegro

Re: Best practice for shareable web application

2008-11-29 Thread Leon Yeh | New Avenue.net
found any thing that I would considered optimal solution. Somebody must have seen this problem before and could have solved it. I am going back to see if pinax project has something like this. Anyhow, back to my research. Leon Yeh Graham Dumpleton wrote: > > > On Nov 29, 2:34 pm, &

Multiple host for one single django project

2008-07-18 Thread Leon Yeh | New Avenue.net
different view. I tried to look into multihost middleware and site middleware, and I think those approach is a bit overkill for my problem. Is there anyway to have urlpattern to look into the host name portion of the url? I was hoping to do all of this into urls.py. Thanks in advance Leon Yeh

Generating widget based on class type for a Custom Form

2008-10-06 Thread Leon Yeh | New Avenue.net
}} {{ field }} {% else %} It is not select field {% endifequal %} {% endfor %} I am having hard time to do the ifequal statement. It does not get the correct comparison. It always return true. Any idea how to fix this ? Thanks in advance, Leon Yeh New Avenue Systems Inc

Re: Generating widget based on class type for a Custom Form

2008-10-07 Thread Leon Yeh | New Avenue.net
Hi Ronny, terima kasih... :-) I am trying to generate different output for css styling purpose. For example for select widget I need to generate and for other controls, I need to generate I don't know how field.as_widget would help. Leon Yeh New Avenue Systems Inc. Office: (62

Re: Generating widget based on class type for a Custom Form

2008-10-07 Thread Leon Yeh | New Avenue.net
Hi, I also need to switch the and tags, so attrs would not help. For example for select widget I need to generate and for other controls, I need to generate Thanks Leon Yeh Ulises wrote: >> and for other controls, I need to generate >> > > How about

Display image in django admin

2008-06-19 Thread Leon Yeh | New Avenue.net
uot;"" % (self.photo) class Admin: list_display = ('title','content', 'thumbnail') Thanks, Leon Yeh New Avenue Systems Inc. --~--~-~--~~~---~--~~ You received this message because you are su

message mark_safe and redirect results in message still showiing with encoded tags

2011-08-22 Thread Leon van der Ree
Hello all, I think I have found a bug, but this time I am not completely sure, so I post it first in this group. What I want to do is set an error message in the message-queue and show this to the user after a redirect. Something pretty common I guess. So I have the following code: m

Re: message mark_safe and redirect results in message still showiing with encoded tags

2011-08-23 Thread Leon van der Ree
Thanks Andy that explains why I experience this issue. However doesn't it suppose to work like this; Why should a safe string become unsafe again after deserialisation? I understand this is a current limitation of the serialisation process, but this is not exactly what you would expect, is it. So

Re: message mark_safe and redirect results in message still showiing with encoded tags

2011-08-24 Thread Leon van der Ree
performing the testing if it is safe, to set the extra flag, and when presenting I have to test for this flag again as well), but at least it is allowed when marked safe! On 23 aug, 16:48, Andy McKay wrote: > On 2011-08-23, at 1:08 AM, Leon van der Ree wrote: > > > that explains why I

(extendable) social network plugin

2011-05-20 Thread Leon van der Ree
t this would be greatly appreciated! Leon -- 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...@googlegro

Re: (extendable) social network plugin

2011-05-23 Thread Leon van der Ree
Thanks for your response Matias, Unfortunately some things have come in between, but I will definitely take another look at social-auth once I've get some time and let you know about the result! Regards Leon On 20 mei, 17:52, Matías Aguirre wrote: > Excerpts from Leon van der Ree'

Re: (extendable) social network plugin

2011-05-25 Thread Leon van der Ree
once I have some more time. Regards Leon On 23 mei, 14:32, Leon van der Ree wrote: > Thanks for your response Matias, > > Unfortunately some things have come in between, but I will definitely > take another look at social-auth once I've get some time and let you > know about the

Re: DRF simplejwt refresh access_token stored in httponlycookies

2021-05-08 Thread 'OCHIENG LEON' via Django users
Are you using Redux for State management? You could pass in the UserInfo which will include the refresh and access token to the states. On Sat, 8 May 2021, 5:49 am narendra...@gmail.com, < narendrathapa...@gmail.com> wrote: > i'm using django as my backend and react as frontend. i'm using simplej