Wrong ordering of many-to-many fields with explicit intermediary model in Django admin

2023-11-01 Thread Alan Evangelista
investigated why. My question is: what's the motivation of ignoring the m2m field if the intermediary model is not auto created? Could this behavior be customized? Thanks in advance! Regards, Alan -- You received this message because you are subscribed to the Google Groups "Django users&q

Re: solution of You must set settings.ALLOWED_HOSTS if DEBUG is False.

2023-02-20 Thread Alan Wang
Please try to add "localhost" in your ALLOWED_HOSTS list. ALLOWED_HOSTS = ["localhost"] On Sunday, February 12, 2023 at 12:24:40 PM UTC-5 fatima zahra ait lhaj wrote: > it's setting.py file > [image: setting.png] > > ==> python manage.py runserver > CommandError: You must set

post_save signal vs model's save()

2022-02-16 Thread Alan Evangelista
del's save() method or register a function to be called on the post_save signal. What are the pros/cons of using one or the another approach? At first sight, using save() seems simpler to me. Regards, Alan -- You received this message because you are subscribed to the Google Groups "Djan

Renaming Django model without breaking existing migrations

2021-08-12 Thread Alan Evangelista
I want to rename a model in Django 3.2, keep my existing migrations and be able to both migrate a db with the old table name and create a db from scratch. I've started by renaming the model class and all references to it in the code. As "./manage.py makemigrations" did not automatically create a

Re: curva de aprendizaje

2021-04-06 Thread Alan Flavio Ruiz
Hola Luis, este post es buenísimo. https://youtube.com/playlist?list=PLCC34OHNcOtr025c1kHSPrnP18YPB-NFi El dom., 4 abr. 2021 20:20, LUIS GABRIEL CORTES JACANAMIJOY < lgcor...@uniguajira.edu.co> escribió: > hola buenas soy nuevo en esto, quisiera saber si alguien puede > suministrarme

Re: runserver problem

2021-04-06 Thread Alan Flavio Ruiz
Did you install virtual env? Pip install virtualen Python - m venv venv Souce venv/Scrpt/activate Then install django Pip instala django See in your env Its posible to instal deccouple Great Alan El dom., 28 mar. 2021 11:05, Sujit Mandal escribió: > i am totally new with django

Styling in Django

2019-12-03 Thread Alan Gómez
You can work with materializecss In django. You must configure the static path and put the materializecss files in these path. At night, I can send you an example. Regards. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from

What happened to CollapsedFieldsets.js?

2018-02-27 Thread Alan
Hi there, Well, I used that like 8 years ago. Just wondering what's the current solution for Django 2.0 if one want to collapse fields in forms. Thanks in advance, Alan -- I'll cycle across Britain in 2018 for a charity, would you consider supporting my cause? http://uk.virginmoneygiving.com

Trying to use tooltips in django 2.0 form

2018-02-26 Thread Alan
e.label}}{{ form.molecule_file }} But that is not working, neither any combination I tried with .title etc. Any suggestion would be very much appreciated. Many thanks in advance, Alan -- I'll cycle across Britain in 2018 for a charity, would you consider supporting my cause? http://uk.virginmoneygi

Re: object_list in html

2018-02-26 Thread Alan
data['is_running'] = Submission.objects.filter(juser=self.request.user > jstatus='Running').exists() > return data > > Then in your template {% if is_running %}x{% endif %} > > Dylan > > On Fri, Feb 23, 2018 at 8:00 AM, Alan <alanwil...@gmail.com> wrote: > >>

Re: object_list in html

2018-02-23 Thread Alan
? Sorry for those questions, I used to use Django 10 years ago and had solutions for that, now I am trying to learn Django 2.0. Alan On 23 February 2018 at 03:18, Costja Covtushenko <kostyak7...@gmail.com> wrote: > Hi Alan, > > How did you receive that `object_list`? > You shou

object_list in html

2018-02-22 Thread Alan
g at https://docs.djangoproject.com/en/2.0/ref/models/querysets ​but I couldn't work out a solution. ​Many thanks in advance, Alan​ -- I'll cycle across Britain in 2018 for a charity, would you consider supporting my cause? http://uk.virginmoneygiving.com/AlanSilva Many thanks! -- Alan Wilter SOUS

Re: Django 2.0 and MySql

2017-12-18 Thread Alan
Thanks Julio, I realised my mistake, mixing anaconda with vanilla ubuntu was not a good mix and then I removed the /tmp line. Best regards, Alan On 18 December 2017 at 18:57, Julio Biason <julio.bia...@azion.com> wrote: > Are you sure the socket is being created on /tmp? Because th

Django 2.0 and MySql

2017-12-18 Thread Alan
', 'USER': 'acpype_mysql', 'PASSWORD': '_bla_bla_', 'HOST': 'localhost', 'PORT': '', 'HOST': '/tmp/mysql.sock', } } Many thanks in advance, Alan -- I'll cycle across Britain in 2018 for a charity, would you consider supporting my cause? http://uk.virgi

Re: how to combine views in one template

2017-06-17 Thread Mark Alan Jones
On Sunday, June 18, 2017 at 12:51:00 AM UTC+1, Mark Alan Jones wrote: > > Thank you very much for the help Matthew, that is absolutely spot on, and > greatly appreciated. > > My view now looks like this: > def builddetails(request, id): > if request.method == 'POST': >

Re: how to combine views in one template

2017-06-17 Thread Mark Alan Jones
form = BuildForm(request.POST or None) > > if form.is_valid(): > >form.save() > > return render(request, 'app/builddetails.html', { 'build': build, > ‘form’: form }) > > > > > > > > *From:* django...@googlegroups.com [mailto: > django...@g

how to combine views in one template

2017-06-15 Thread Mark Alan Jones
Hello Django Community, I am new to Django and tackling my first app outside of the tutorial. The app I'm working on is a simple ticket system for build requests at my IT Company. I only have one model 'Build', and I have checkboxes that denote how far the build has been done. I have a page

Re: Will asgi become a PEP like wsgi is ?

2017-03-13 Thread Alan
5ttOmx_GTt7k%3DQ%40mail.gmail.com?utm_medium=email_source=footer> > . > > For more options, visit https://groups.google.com/d/optout. > -- Alan Wilter SOUSA da SILVA, DSc Senior Bioinformatician, UniProt European Bioinformatics Institute (EMBL-EBI) European Molecular Biology Labora

Re: Will asgi become a PEP like wsgi is ?

2017-03-13 Thread Alan
Would you mind replying here too please? I'd rather avoid another list for me to subscribe. Thanks, Alan On 13 March 2017 at 01:38, Andrew Godwin <and...@aeracode.org> wrote: > I'll reply to this in the same subject thread on django-developers. > > Andrew > > On Sat, Ma

Re: Django 1.10 with Python 3.5 on Mac with Fink

2017-01-31 Thread Alan
Found the problem, a old wrongly set DJANGO_SETTINGS_MODULE pointing to the offending module. On 30 January 2017 at 22:49, Alan <alanwil...@gmail.com> wrote: > So I installed django 1.10 and then when I try to do this; > > python3.5 -m django --version > > Traceback (

Django 1.10 with Python 3.5 on Mac with Fink

2017-01-30 Thread Alan
o import a module like 'ccpngrid' (which the closest thing related to python is that it is a django app within my Eclipse workspace, and no, I am not within these folders). So, I can at least try to start to sort this issue? Thanks, Alan -- Alan Wilter SOUSA da SILVA, DSc Senior Bioinformatician,

Re: Moving from django 1.3 to 1.9

2017-01-28 Thread Alan
Many thanks to you all guys, I will follow this path. Alan On 27 January 2017 at 22:05, bobhaugen <bob.hau...@gmail.com> wrote: > I agree with all the advice to go a step at a time. > > Here's a bunch of clues and chatter in github issues about how we upgraded > from 1.4

Moving from django 1.3 to 1.9

2017-01-27 Thread Alan
ppreciated. Thanks, Alan -- Alan Wilter SOUSA da SILVA, DSc Senior Bioinformatician, UniProt European Bioinformatics Institute (EMBL-EBI) European Molecular Biology Laboratory Wellcome Trust Genome Campus Hinxton Cambridge CB10 1SD United Kingdom Tel: +44 (0)1223 494588 -- You received this message b

Diving into Django 2016

2016-02-09 Thread Alan Auckland
Hi everyone, I have been doing lots of reading about which way to go for web development and programming. I think I have finally decided to dive into Python with Django. I really like the idea that it is such a versatile language spreading across many areas. What resources

Re: Transitioning existing login portal to Django

2015-12-02 Thread 'Alan Hicks' via Django users
could use the existing ones until you have translated them into your preferred format. Regards, Alan On 01/12/2015 22:15, Evan Palmer wrote: Hello, Does anyone have experience with transitioning an existing database /including user login data/ to Django? I am about to begin work on a startup's

Re: problema con un select

2015-11-11 Thread Alan Ávalos Hernández
En el método del view, no estás regresando la colección de objetos tipo Medio. Sent from my iPhone > On Nov 11, 2015, at 12:19 PM, miguel angel lopez mendo > wrote: > > view > > def medios(request): > medios = Medio.objects.filter() >

App tables are created in db_1 but requests are routed to db_2.

2015-09-14 Thread Alan Kavanagh
I'm not sure why the tables are created in the other database. Can anyone offer insight how I could solve this issue? -- 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

Re: How to master django?

2015-06-24 Thread Alan Ávalos Hernández
Two Scoops of Django is a great book to become proficient in django. Although you mention that you need to get a project done, so, having completed the tutorial that should suffice to start your project and keep as a reference the django documentation (which is great) Sent from my iPhone > On

Re: Future for Django, Jobs, Confused :/

2015-03-06 Thread Alan Ávalos Hernández
Also, it's important to always understand the core concepts of what you're doing. Programming languages and frameworks are tools to get the job done. Those come and go. But if you really have a good grasp of the theory behind those, only certain details are going to have a relevant role in your

Re: Any benefit in storing shorter strings or numbers to represent data for a choice char field?

2014-12-17 Thread Alan Hicks
/Database_normalization https://en.wikipedia.org/wiki/PostgreSQL https://en.wikipedia.org/wiki/NoSQL Alan On 17/12/2014 16:56, Radomir Wojcik wrote: The official django doc uses this as an example (see below). Is there any point to storing 'FR' instead of 'Freshman" so the choice matches what is stored? Is it f

Re: Can't get MySQLdb

2014-06-10 Thread Alan Sawyer
> > I believe I got it to work. I had to change the Engine per this article. > http://dev.mysql.com/doc/connector-python/en/connector-python-django-backend.html -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group

Can't get MySQLdb

2014-06-09 Thread Alan Sawyer
Please excuse me if this is a dumb question, but I've been stuck on this for about 3 hours, and getting a bit frustrated I am a noob to Django/Python. I am trying to get this setup on Windows 7 laptop. I installed Python 3.4 but have also tried 3.3 I then installed Pip I then installed Django

Re: [ELI5] how to deploy django

2014-03-04 Thread Alan Hicks
y file should contain something like the following six lines: import os import sys sys.path.append('/usr/local/www/domain1.com') os.environ.setdefault("DJANGO_SETTINGS_MODULE", "mywebsite.settings") from django.core.wsgi import get_wsgi_application application = get_wsgi_applic

Multiple Users Logged into a page at the same time

2013-05-31 Thread Alan
to display all the active users on a page. How do I go about building this in my Django-based website? Help and suggestions would be appreciated. Thanks. :) Thanks, Alan -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubs

Re: Django 1.5 with uwsgi(threaded)/mysql seems to magically cache querysets

2013-04-02 Thread Alan Johnson
It's tough to know what the deal is without any info on your code or database, but two things come to mind. One is some of the new caching in Django 1.5 for related models (https://docs.djangoproject.com/en/dev/releases/1.5/#caching-of-related-model-instances), and the other is database

Re: Doubt regarding JSON/SQL in Django

2013-03-30 Thread Alan Johnson
You almost certainly don't want to use JSON as your storage method. This is a database problem, and the Django ORM really shines at letting you solve it without having to think super hard about database modeling. You wouldn't create a table for each user's task list. You would create a model

django-cache-machine with Redis

2013-03-28 Thread Alan Johnson
How does one configure this? The documentation only explains how to use locmem or memcached, and yet the commit logs reference Redis multiple times, so it must be doable. Does anybody have any advice or experience with this? -- You received this message because you are subscribed to the

Automated Django benchmarking with New Relic

2013-03-21 Thread Alan Johnson
I've got a Django web app with a complicated data model that's experiencing performance issues. Using New Relic, I was pretty much instantaneously able to isolate what the problem to a particular query. But there are a number of different solutions I can try. What I'd like to do is be able to

Conditionally defined model field in abstract model

2013-03-21 Thread Alan Johnson
I've got an abstract model in my project that I want to use to define a field by default on concrete subclasses, but also to allow that field to be redefined as something other than the default dynamically. All of this works right now: class classproperty(object): """

Re: PostgresSQL or MySql with django?

2013-03-21 Thread Alan Johnson
om> > wrote: > > Frocco, > > > > No, he's saying you can have two databases set up at the same time. > > You can have X databases (I presume). > > > > Cheers > > L. > > > > On 22 March 2013 01:13, frocco <far...@gmail.com > wrote:

Re: Django split setting and environment variables

2013-03-21 Thread Alan Johnson
I think hardcoding local machine development passwords is fine, but it's still better to store the production passwords in a key-value file that stays out of source control and is permissioned such that only authorized developers can directly access the server or the credential file. Of course

Re: PostgresSQL or MySql with django?

2013-03-21 Thread Alan Johnson
I want to echo the support for Postgres. I find it to be a bit more arcane than MySQL, but even in an extremely DB intensive app, Django's ORM is so slick that I rarely have to muck around in Postgres land. I think it's * slightly* better supported by Django, if you need to use things like

Conditionally defined model field in abstract model

2013-03-06 Thread Alan Johnson
(cross-posted from StackOverflow, answer there if you prefer, but I thought it might be too low level to get much help there alone) I've got an abstract model in my project that I want to

Re: Redirect and execute after 2 seconds?

2013-02-27 Thread Alan Plum
and screencasts available online if you want to learn more about jQuery or other front-end libraries or just JavaScript in general. Yours, Alan On 27.02.2013 15:01, Maria wrote: Hi everyone! :) I am working on a project for my studies, it is a web poll where you can only answer yes or no by clicking

django- accessing items in a python dictionary

2012-04-29 Thread Alan Mo
My dictionary is as follows: data={"BE1234":"abc", "BA3212":"efg", etc} I call it through django templates. According to the online manual, they say "if your context contained a dictionary data, the following would display the keys and values of the dictionary": {% for key, value in

Re: Setting up django-sentry?

2011-12-11 Thread Alan
plication > > > > > > > > > > On Mon, Dec 12, 2011 at 00:28, Alan <alan.ill...@gmail.com> wrote: > > Did anyone have any trouble setting up django-sentry? > > > I followed the instructions for the 'integrated' (i.e., client = > > server) approach h

Setting up django-sentry?

2011-12-11 Thread Alan
a view that only raises an exception & it's not being stored in my sentry_messages table - and nothing gets populated on localhost:8000/sentry I installed using pip, and the interface works fine for me. Any tips or suggestions? Did this not work out-of-the-box for anyone? Thanks! -alan --

Re: django-easyfilters for filtering data in a view

2011-10-31 Thread Alan
If anyone else is having trouble here, my problem was in passing the template when loaded from an external file--specifying the template inline worked fine for me. The context variables are provided in the documentation. Good luck -alan On Oct 30, 9:21 pm, Alan <alan.ill...@gmail.com>

django-easyfilters examples?

2011-10-30 Thread Alan
e template (where x is the count). Instead of resolving the choices as the values in the query set. thanks -alan -- 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.

django-easyfilters for filtering data in a view

2011-10-30 Thread Alan
/filterset.html I correctly return a template but I'm not sure how to provide the context data from the derived FilterSet class. Thanks -alan -- 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@google

Accuracy of GeoIP?

2011-10-27 Thread Alan
Does anyone have experience with the accuracy of GeoIP? I'm getting locations that are wildly off... When I plug in the IP from http://whatismyipaddress.com/ I get somewhere in the middle of Kansas when I'm in Chicago. On the other hand using a Google IP address (mentioned in the example below)

mod_wsgi: URL appended to wsgi script location

2011-06-16 Thread Alan
apache user; can someone please explain why this happens & how I can fix it? Thanks! -Alan -- 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 th

So, we're trying to hire a front-end Django developer (Kansas City, Missouri)

2010-11-18 Thread Alan Christopher Thomas
I'm a Django guy in Kansas City, MO, and work at a company called Liquid 9. Liquid 9 has its roots as a video company, in the entertainment industry.. music videos, etc. However, over the last year or so, the Interactive department here (consisting of Travis, the designer, and myself), has taken

Re: how to turn off CSRF in django 1.2?

2010-08-27 Thread Alan
', 'django.middleware.doc.XViewMiddleware', 'django.contrib.csrf.middleware.CsrfMiddleware', ) And everything seems to be working fine. Alan On 26 Aug, 17:50, João Rodrigues <jvrodrig...@gmail.com> wrote: > what about 'django.contrib.csrf.middleware.CsrfMiddleware' > ?http://docs.djangopr

Re: how to turn off CSRF in django 1.2?

2010-08-26 Thread Alan
rig...@gmail.com> wrote: > go to your settings.py and comment out > django.middleware.csrf.CsrfViewMiddleware in your MIDDLEWARE_CLASSES > > On 26 August 2010 10:33, Alan <alanwil...@gmail.com> wrote: > > > > > Hi there, > > > I developed in a system that use

Re: how to turn off CSRF in django 1.2?

2010-08-26 Thread Alan
Thanks João, you got exactly what I need. On 26 Aug, 15:54, João Rodrigues <jvrodrig...@gmail.com> wrote: > go to your settings.py and comment out > django.middleware.csrf.CsrfViewMiddleware in your MIDDLEWARE_CLASSES > > On 26 August 2010 10:33, Alan <alanwil...@gmail.com

how to turn off CSRF in django 1.2?

2010-08-26 Thread Alan
computer. How can I do this simply and easily? Many thanks, Alan -- 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 unsubscribe from this group, send email to dj

Re: return pk id on Form

2010-08-02 Thread alan-l
Thank you for the point in the right direction. In the end i now have: @models.permalink def get_absolute_url(self): return ('c_viewcontact', [str(self.id)]) class ContactForm(ModelForm): class Meta: model = Contacts fields = ('contact_type', 'firstname', 'surname',

return pk id on Form

2010-08-02 Thread alan-l
ght there would be an obvoius answer im missing. Would appreciate it if it could be pointed out what im doing wrong. Thank you, Alan -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to djan

Re: return number instead of string in admin

2010-07-14 Thread alan-l
brilliant, thank you. is there a python or django page that layouts all the available options that can be after the percentage and what they mean? Thanks, Alan On Jul 14, 11:35 am, Subhranath Chunder <subhran...@gmail.com> wrote: > Try this instead: > > def __unicode__(self): &

return number instead of string in admin

2010-07-14 Thread alan-l
when looking at the class in admin? Thanks, Alan -- 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 unsubscribe from this group, send email to django-user

split views & shared tables for apps

2010-07-09 Thread alan-l
w me the particular django documentation page that explores the above or if i could have a very basic example, it would be most appreciated. Kind regards, Alan -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this gro

app inheriting from others app's models.py

2010-04-21 Thread Alan
; +---+---+--+--+- +--+---+ | juser | jname | fileName | jdate| jobdir | jstatus | jpid | +---+---+--+--+- +--+---+ |alan | test | test | Tue Apr 6 13:34:17 2010 | test

Re: link not in urls.py but showing folders content

2010-04-20 Thread Alan
Thanks Tom, it's exactly what I was looking for. Cheers, Alan On Apr 20, 9:54 am, Tom Evans <tevans...@googlemail.com> wrote: > On Tue, Apr 20, 2010 at 8:57 AM, Alan <alanwil...@gmail.com> wrote: > > I will try a partial answer to myself. > > > I notice in http

Re: link not in urls.py but showing folders content

2010-04-20 Thread Alan
to contents in these folders but I definitely don't want stranger sniffing the folders. So far I can remedy this situation putting 'index.html' everywhere, but this doesn't sound good solution at all. Many thanks, Alan On Tue, Apr 20, 2010 at 08:23, Alan <alanwil...@gmail.com> wrote:

Re: link not in urls.py but showing folders content

2010-04-20 Thread Alan
to contents in these folders but I definitely don't want stranger sniffing the folders. So far I can remedy this situation putting 'index.html' everywhere, but this doesn't sound good solution at all. Many thanks, Alan On Apr 20, 8:23 am, Alan <alanwil...@gmail.com> wrote: > Hi there,

link not in urls.py but showing folders content

2010-04-20 Thread Alan
For the moment I am putting a index.html in every folder that is be showing explicitly. Many thanks in advance, Alan -- Alan Wilter S. da Silva, D.Sc. - CCPN Research Associate Department of Biochemistry, University of Cambridge. 80 Tennis Court Road, Cambridge CB2 1GA, UK. >>http://www

Re: logging not working with Django

2010-04-15 Thread Alan
Many thanks Rolando, I can't believe I calling the wrong function... Fixed and working now. Cheers, Alan On 14 Apr, 19:07, Rolando Espinoza La Fuente <dark...@gmail.com> wrote: > On Wed, Apr 14, 2010 at 1:25 PM, Alan <alanwil...@gmail.com> wrote: > >

logging not working with Django

2010-04-14 Thread Alan
8:22:04 2010] [error] [client ::1] __import__(name) [Wed Apr 14 18:22:04 2010] [error] [client ::1] File "/Users/alan/ workspace/webapps/settings.py", line 21, in [Wed Apr 14 18:22:04 2010] [error] [client ::1] handler = logging.handlers.TimedRotatingFileHandler(LOG_FILENAME, back

a 4 years old bug is still there?

2010-04-14 Thread Alan
Hi there, Today, for my surprise, I saw this very issue happening to me: http://code.djangoproject.com/ticket/1375 And the solution in the last post really worked. I am using django-py26-1.1.1-1 from Fink, on Mac OSX 10.6.3. Is the solution OK? If so, why not committed yet? Thanks, Alan

Re: soliciting interest in a medical open source project to save the world

2010-04-01 Thread Alan
on a notebuilder without bookmarking, social, etc. Once you go social, aren't you going to have to start worrying about HIPPA, etc... best, alan On Mar 29, 12:32 pm, Mark <joanna.m...@gmail.com> wrote: > OK, maybe it won't save the world. > > My name is Mark Morgan and I'm working on a proj

Re: OT: svn and '$Id$'

2009-03-25 Thread Alan
'$Id$' is working too, if I do find . -name "*.py" -exec svn propset svn:keywords "Id" {} \; On Mar 24, 10:36 pm, Alan <alanwil...@gmail.com> wrote: > I got a solution. > > I undid what I did in ~/.subversion/config > Forget about Id, and used just  "$D

Re: OT: svn and '$Id$'

2009-03-24 Thread Alan
I got a solution. I undid what I did in ~/.subversion/config Forget about Id, and used just "$Date$" in my *.py, then find . -name "*.py" -exec svn propset svn:keywords "Date" {} \; commit it and it worked. Cheers, Alan On Mar 24, 5:34 pm, Alan <alanwil...@g

Re: OT: svn and '$Id$'

2009-03-24 Thread Alan
$' + '$Revision$' + '$Date$' ", like I would see if I were using CVS. I am using Eclipse btw, but svn ci is not doing better either. Many thanks, Alan On Mar 24, 5:25 pm, David Lindquist <david.lindqu...@gmail.com> wrote: > On Mar 24, 2009, at 10:09 AM, Alan wrote: > > >

OT: svn and '$Id$'

2009-03-24 Thread Alan
the files are committed ( svn on googlecode) in the file itself. Many thanks in advance. Alan -- Alan Wilter S. da Silva, D.Sc. - CCPN Research Associate Department of Biochemistry, University of Cambridge. 80 Tennis Court Road, Cambridge CB2 1GA, UK. >>http://www.bio.cam.ac.uk/

Re: login in django via plone

2009-02-20 Thread Alan
Should it work right? Except for one thing that I didn't figure out yet how to solve: field password which in plone is raw and if django db should be hashtype$salt$hash. Any comments? Alan On Fri, Feb 20, 2009 at 11:22, Alan <alanwil...@gmail.com> wrote: > Hi there, thanks for you

Re: login in django via plone

2009-02-20 Thread Alan
). And AFAIU Malcolm, if using (1), I still need to use django api to create the object user (if plone external method returns TRUE), right? Well, let's see what can I get first. Cheers, Alan On Thu, Feb 19, 2009 at 23:29, Kevin Audleman <kevin.audle...@gmail.com>wrote: > > Tricky...how

login in django via plone

2009-02-19 Thread Alan
and pass from Plone, including new users that would register at Plone and then access to django portals automatically. Any idea here would be very appreciated. Many thanks in advance. Alan -- Alan Wilter S. da Silva, D.Sc. - CCPN Research Associate Department of Biochemistry, University of Cambridge

Re: collapsible form

2009-02-17 Thread Alan
Hi, I got it working. I found the missing pieces in /sw/lib/python2.5/site-packages/django/views/i18n.py. Cheers, Alan On Tue, Feb 17, 2009 at 15:36, Alan <alanwil...@gmail.com> wrote: > Hi There, > I am still working on CollapsedFieldsets.js and with help of Safari for >

Re: collapsible form

2009-02-17 Thread Alan
Hi There, I am still working on CollapsedFieldsets.js and with help of Safari for developer I got this error for the javascript: Can't find variable: gettext file:///Users/alan/Desktop/CollapsedFieldsets.js (line 34) Line 34: collapse_link.innerHTML = gettext('Show'); I don't know javascript

idea on how to cache django javascript message file ('/jsi18n/') with apache (production setup)

2009-02-17 Thread alan
Following up on this discussion: http://groups.google.com/group/django-users/browse_thread/thread/83f7b9b93973671f/e4b40ec5a482d155?hl=fr=gst=jsi18n+cache#e4b40ec5a482d155 How about a solution where the js i18n file would contain all the translations for all the languages (in a dictionary

Re: collapsible form

2009-02-17 Thread Alan
like class with "errors" will expand collapsed fields, CollapsedFieldsets.show(0); and so on). I am using Firefox with Firebug plugin to help me here. Well, I hope someone else can give an idea why I am missing this very last point. Many thanks in advance. Alan On Fri, Feb 13, 2009 at

Re: collapsible form

2009-02-13 Thread Alan
Gosh, you're right. From the source of admin: Thanks a lot, Alan On Fri, Feb 13, 2009 at 12:51, Daniel Roseman <roseman.dan...@googlemail.com > wrote: > > On Feb 13, 11:23 am, Alan <alanwil...@gmail.com> wrote: > > Indeed, I have been looking athttp:// > docs.dja

Re: collapsible form

2009-02-13 Thread Alan
Thanks for your reply Bruno. On Fri, Feb 13, 2009 at 10:50, bruno desthuilliers < bruno.desthuilli...@gmail.com> wrote: > > On 13 fév, 09:24, Alan <alanwil...@gmail.com> wrote: > > > I really wonder how you could achieve this without javascript (unless > of course y

collapsible form

2009-02-13 Thread Alan
help with that because in the end what I would like is to keep collapsible just the form entries that are not mandatory (required=False). Any tips towards this objective would be very appreciated. Many thanks in advance. Alan -- Alan Wilter S. da Silva, D.Sc. - CCPN Research Associate Department

Re: user env needed in apache with mod_wsgi

2009-02-11 Thread Alan
and tweaking css etc. Cheers, Alan On Thu, Feb 12, 2009 at 03:42, Graham Dumpleton <graham.dumple...@gmail.com>wrote: > > > > On Feb 12, 12:09 pm, Malcolm Tredinnick <malc...@pointy-stick.com> > wrote: > > On Tue, 2009-02-10 at 10:56 +, Alan wrote: > > > Hi

user env needed in apache with mod_wsgi

2009-02-10 Thread Alan
my problem and could give some tip on that, it would be very much appreciated. Many thanks in advance. Alan -- Alan Wilter S. da Silva, D.Sc. - CCPN Research Associate Department of Biochemistry, University of Cambridge. 80 Tennis Court Road, Cambridge CB2 1GA, UK. >>http:

Re: request.user objects in base.html

2009-01-14 Thread Alan
readme.html: {% extends "base.html" %} ... I hope it helps. Cheers, Alan On Wed, Jan 14, 2009 at 07:15, izzy_dizzy <zanu...@gmail.com> wrote: > > Hi all, > > I'm having a hard time on how to use request.user objects in > base.html. I know that we can use requ

Re: How to find out more info about "Error: No module named ..."

2009-01-14 Thread Alan
Assuming you are in your project dir, I think it has to be: python -v ./manage.py validate Alan On Wed, Jan 14, 2009 at 02:59, Karen Tracey <kmtra...@gmail.com> wrote: > On Tue, Jan 13, 2009 at 1:21 PM, jhill10110 <jhill10...@gmail.com> wrote: > >> >> I am get

Re: def clean_file works with django server but not with apache

2009-01-11 Thread Alan
Thanks a lot dear Graham. Alan On Sun, Jan 11, 2009 at 20:56, Graham Dumpleton <graham.dumple...@gmail.com>wrote: > > Answered at: > > http://groups.google.com/group/modwsgi/browse_frm/thread/6af0cf98b726e5fe > > Graham > > On Jan 11, 11:59 pm, Alan <alanwil

Re: def clean_file works with django server but not with apache

2009-01-11 Thread Alan
Oops, I found something. I am using apache2 + mod_wsgi and I notice that instead of using my Fink python ('/sw/bin/python') it's using my mac python ('/usr/bin/python'). I compiled mod_wsgi with fink python, even though I had to put something like: WSGIDaemonProcess webapps user=alan group=staff

Re: deploying in server and templates folder is wrong:

2009-01-11 Thread Alan
Many thanks Steve. I thought I had designed my apps bulletproof for local setups but I clearly failed. Thanks a lot again. Cheers, Alan On Sat, Jan 10, 2009 at 21:47, Steve Potter <steven.pot...@gmail.com> wrote: > > > > On Jan 10, 3:44 pm, Alan <alanwil...@gmail.com&g

def clean_file works with django server but not with apache

2009-01-11 Thread Alan
: I removed the "try" to see what django debug would report under apache and I got this: AttributeError at /ccpngrid/ 'NoneType' object has no attribute 'startswith' Any help would be very appreciated. Many thanks in advance. Cheers, Alan -- Alan Wilter S. da Silva, D.Sc. - CCPN R

deploying in server and templates folder is wrong:

2009-01-10 Thread Alan
g. "/Users/alan/templates/index.html" but it is in " /Users/alan/workspace/webapps/templates") and obviously they are not there. Any idea of what is going wrong here? Any help would be very appreciated. Many thanks in advance. Alans. -- Alan Wilter S. da Silva, D.Sc. - CCPN

Re: What's the best configuration for Apache + mod_wsgi + nginx

2009-01-10 Thread Alan
Can't you use crontab to submit your conversion task? Cheers, Alan On Sat, Jan 10, 2009 at 09:19, Stefan Tunsch <stun...@gmail.com> wrote: > > It looks like it's clear video conversion is your bottleneck. > > I would also suggest doing that on a different worker process. >

Re: deploying a project

2009-01-10 Thread Alan
ind it too, but, gosh, the day has only 24 h and I have no clones). All the best. Cheers, Alan PS: to not mention that we have "life" as well, in my case a baby daughter and a wife who ordered me to clean the house now (apache and wsgi later). On Sat, Jan 10, 2009 at 10:58, Malcolm Tredin

Re: deploying a project

2009-01-10 Thread Alan
will give another look, but if you have a good how to, please, I'd love to read it. Cheers, Alan On Sat, Jan 10, 2009 at 09:04, Graham Dumpleton <graham.dumple...@gmail.com>wrote: > > > > On Jan 10, 7:32 pm, Alan <alanwil...@gmail.com> wrote: > > I use mac book pr

Re: deploying a project

2009-01-10 Thread Alan
I use mac book pro, and I didn't like the way I have to set put apache2 + mod_wsgi in mac osx... poor documentation by the way. I will give a 2nd thought about it. Thanks Malcolm. Alan On Sat, Jan 10, 2009 at 08:27, Malcolm Tredinnick <malc...@pointy-stick.com>wrote: > > On Sat

Re: deploying a project

2009-01-10 Thread Alan
, if I don't success at first I will have to wait another hour... or her do restart (if available), not just 2 min for me unfortunately :-) Many thanks, Alan On Sat, Jan 10, 2009 at 01:16, Malcolm Tredinnick <malc...@pointy-stick.com>wrote: > > On Fri, 2009-01-09 at 14:03 +

Re: deploying a project

2009-01-09 Thread Alan
dy working with wsgi. Is that? Many thanks in advance. Alan On Thu, Jan 8, 2009 at 08:40, Malcolm Tredinnick <malc...@pointy-stick.com>wrote: > > On Thu, 2009-01-08 at 08:33 +, Alan wrote: > > Dear List, > > > > > > > > > > So, I developed a pro

  1   2   >