Re: Postgres failure when trying to remove check constraint

2024-10-05 Thread Alan Evangelista
constrain and it worked fine. On Fri, Oct 4, 2024, 10:52 Alan Evangelista wrote: > Hi, everyone. > > I have the following db model: > > class Template(models.Model): > max_documents = models.PositiveIntegerField(default=1) > is_comparison = models.Boole

Postgres failure when trying to remove check constraint

2024-10-04 Thread Alan Evangelista
Hi, everyone. I have the following db model: class Template(models.Model): max_documents = models.PositiveIntegerField(default=1) is_comparison = models.BooleanField(default=False) ... class Meta: constraints = [ models.CheckConstraint( check=mo

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

2023-11-01 Thread Alan Evangelista
I haven't 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

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 settings.ALLOWED

post_save signal vs model's save()

2022-02-16 Thread Alan Evangelista
r model'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

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 m

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 informac

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 t

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.virginmoney

Trying to use tooltips in django 2.0 form

2018-02-26 Thread Alan
}{{ 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.virginmo

Re: object_list in html

2018-02-26 Thread Alan
sion.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 wrote: > >> Hi Constantine, >> >&

Re: object_list in html

2018-02-23 Thread Alan
ould have 'runFlag' in the template html? 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 wrote: > Hi Alan, > > How did you receive that `object_l

object_list in html

2018-02-22 Thread Alan
ning for a given user. I've been looking 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.virginmon

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 wrote: > Are you sure the socket is being created on /tmp? Because that's what the > error

Django 2.0 and MySql

2017-12-18 Thread Alan
{ 'ENGINE': 'django.db.backends.mysql', 'NAME': 'acpype_db', 'USER': 'acpype_mysql', 'PASSWORD': '_bla_bla_', 'HOST': 'localhost', 'PORT': &

Re: how to combine views in one template

2017-06-17 Thread Mark Alan Jones
ld, 'form': form }) Thanks all for help 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(re

Re: how to combine views in one template

2017-06-17 Thread Mark Alan Jones
Build.objects.get(pk=id) > > form = BuildForm(request.POST or None) > > if form.is_valid(): > >form.save() > > return render(request, 'app/builddetails.html', { 'build': build, > ‘form’: form }) > > > > > > &

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 t

Re: Will asgi become a PEP like wsgi is ?

2017-03-13 Thread Alan
.gmail.com?utm_medium=email&utm_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 Laboratory Wellcome Tru

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 wrote: > I'll reply to this in the same subject thread on django-developers. > > Andrew > > On Sat, Mar 11, 2017 at

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 wrote: > So I installed django 1.10 and then when I try to do this; > > python3.5 -m django --version > > Traceback (most recent call last): &g

Django 1.10 with Python 3.5 on Mac with Fink

2017-01-30 Thread Alan
idea why is trying to 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,

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 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 to 1.8, one minor version a

Moving from django 1.3 to 1.9

2017-01-27 Thread Alan
lly appreciated. 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 mess

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 &#x27;Alan Hicks' via Django users
o's and Jinja2's) so you 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

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() > template = 'pr

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 ema

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
a.org/wiki/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 matche

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
r/local/www/domain1.com then the wsgi.py 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

Multiple Users Logged into a page at the same time

2013-05-31 Thread Alan
le 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 isolat

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 cal

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 Googl

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 b

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): """ Dec

Re: PostgresSQL or MySql with django?

2013-03-21 Thread Alan Johnson
t; 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 > wrote: > >> Hi

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 disti

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 us

Re: Redirect and execute after 2 seconds?

2013-02-27 Thread Alan Plum
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 data.ite

Re: Setting up django-sentry?

2011-12-11 Thread Alan
; > > > > > > On Mon, Dec 12, 2011 at 00:28, Alan wrote: > > Did anyone have any trouble setting up django-sentry? > > > I followed the instructions for the 'integrated' (i.e., client = > > server) approach here: > >http://sentry.readthedocs.or

Setting up django-sentry?

2011-12-11 Thread Alan
ault. I created 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?

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 wrote: > I'm tryin

django-easyfilters examples?

2011-10-30 Thread Alan
in the 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
asyfilters/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 djan

Accuracy of GeoIP?

2011-10-26 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) c

mod_wsgi: URL appended to wsgi script location

2011-06-16 Thread Alan
m a novice 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 unsubscri

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 o

Re: how to turn off CSRF in django 1.2?

2010-08-27 Thread Alan
.AuthenticationMiddleware', '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 wrote: > what about 'django.contrib.csrf.middleware.CsrfMiddleware&

Re: how to turn off CSRF in django 1.2?

2010-08-26 Thread Alan
e: > go to your settings.py and comment out > django.middleware.csrf.CsrfViewMiddleware in your MIDDLEWARE_CLASSES > > On 26 August 2010 10:33, Alan wrote: > > > > > Hi there, > > > I developed in a system that uses django 1.2, but the server is still > &g

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 wrote: > go to your settings.py and comment out > django.middleware.csrf.CsrfViewMiddleware in your MIDDLEWARE_CLASSES > > On 26 August 2010 10:33, Alan wrote: > > > > > Hi there, > > &g

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', 'note

return pk id on Form

2010-08-02 Thread alan-l
admin "save and continue" where it retirects using the pk, so thought 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 Group

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 wrote: > Try this instead: > > def __unicode__(self): >    return u"%d&

return number instead of string in admin

2010-07-14 Thread alan-l
d returned 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 d

split views & shared tables for apps

2010-07-09 Thread alan-l
o show 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 g

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 wrote: > On Tue, Apr 20, 2010 at 8:57 AM, Alan wrote: > > I will try a partial answer to myself. > > > I notice in httpd.conf that alias has the same name for the folder re

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

2010-04-20 Thread Alan
er 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 wrote: >

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

2010-04-20 Thread Alan
er 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 wrote: > Hi there, > &g

link not in urls.py but showing folders content

2010-04-20 Thread Alan
ry <http://localhost/> - ..... How can fix that properly? 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 Ca

Re: logging not working with Django

2010-04-14 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 wrote: > On Wed, Apr 14, 2010 at 1:25 PM, Alan wrote: > > [SNIP] > > > handler = logging.handlers.TimedRotatingF

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 wrote: > OK, maybe it won't save the world. > > My name is Mark Morgan and I'm working on a project wh

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 wrote: > I got a solution. > > I undid what I did in ~/.subversion/config > Forget about Id, and used just  &quo

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 wrote: > Hi g

Re: OT: svn and '$Id$'

2009-03-24 Thread Alan
hange in " repositoryId = '$Id $' + '$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 wrote: > On Mar 24, 2009, at 10:09

OT: svn and '$Id$'

2009-03-24 Thread Alan
et at least date and time when 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. >

Re: login in django via plone

2009-02-20 Thread Alan
n | date_joined 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 wrote: > Hi there, thanks for your replie

Re: login in django via plone

2009-02-20 Thread Alan
ied). 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 wrote: > > Tricky...how do you write a meth

login in django via plone

2009-02-19 Thread Alan
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 wrote: > Hi There, > I am still working on CollapsedFieldsets.js and with help of Safari for > developer I got this error for the j

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&#x

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&lnk=gst&q=jsi18n+cache#e4b40ec5a482d155 How about a solution where the js i18n file would contain all the translations for all the languages (in a dictionary i

Re: collapsible form

2009-02-17 Thread Alan
h2.appendChild(document.createTextNode(')')); Everything else seems to be working (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 c

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 wrote: > > On Feb 13, 11:23 am, Alan wrote: > > Indeed, I have been looking athttp:// > docs.djangoproject.com/en/dev/intro/tutorial02/#s-customize-th.

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 wrote: > > > I really wonder how you could achieve this without javascript (unless > of course you plan on reloading the

collapsible form

2009-02-13 Thread Alan
that would 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 Dep

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 wrote: > > > > On Feb 12, 12:09 pm, Malcolm Tredinnick > wrote: > > On Tue, 2009-02-10 at 10:56 +, Alan wrote: > > > Hi list, > > > > > My problem is that: s

user env needed in apache with mod_wsgi

2009-02-10 Thread Alan
e). So if someone understood 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, Cambri

Re: request.user objects in base.html

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

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 wrote: > On Tue, Jan 13, 2009 at 1:21 PM, jhill10110 wrote: > >> >> I am getting a module load error but I can't tell what is ca

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 wrote: > > Answered at: > > http://groups.google.com/group/modwsgi/browse_frm/thread/6af0cf98b726e5fe > > Graham > > On Jan 11, 11:59 pm, Alan wrote: > > Oops, I found something. I am

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 weba

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 wrote: > > > > On Jan 10, 3:44 pm, Alan wrote: > > Hello List, > > So, using django serve

def clean_file works with django server but not with apache

2009-01-11 Thread Alan
igure out how come it happens. I tried big and small files (thinking it could be something related to InMemoryUploadedFile). I did just another thing: I removed the "try" to see what django debug would report under apache and I got this: AttributeError at /ccpngrid/ 'NoneType'

deploying in server and templates folder is wrong:

2009-01-10 Thread Alan
er (eg. "/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. -

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 wrote: > > It looks like it's clear video conversion is your bottleneck. > > I would also suggest doing that on a different worker process. > > You will a

Re: deploying a project

2009-01-10 Thread Alan
there I would find 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, Mal

Re: deploying a project

2009-01-10 Thread Alan
... I 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 wrote: > > > > On Jan 10, 7:32 pm, Alan wrote: > > I use mac book pro, and I didn't like the way I have to set put

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 wrote: > > On Sat, 2009-01-10 at 08:03 +,

  1   2   >