Thursday, July 1, 2010

Re: Valid objects are returning an http 404 response

When you say "an apache 404 error" do you mean a non-Django styled
one? If so, I think there's something wrong with your apache
configuration and not your Django app. What mechanism are you using to
serve the application? I have seen issues like with this mod_wsgi when
the reload mechanism isn't triggered correctly and you have to restart
apache to get it work correctly. I think in that case it was because
I'd compiled apache slightly incorrectly. I never got to the bottom of
the problem.

On Jul 1, 2:54 pm, vjimw <im.a.machobea...@gmail.com> wrote:
> We are having an issue where valid model objects are returning an
> apache 404 error. Often times, if you hit refresh in the browser a few
> times, the object is returned with the same URL.
>
> We are using Django 1.2.1

--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

Re: how to develop cms on django

On 30 juin, 12:16, Kenneth Gonsalves <law...@au-kbc.org> wrote:
> On Wednesday 30 June 2010 15:40:20 samie wrote:
>
> > > Everything or almost.
>
> > i dont have time i need to start development within  a month..
>
> > plz tell me all those crucial topics that i should learn
>
> 1. python
> 2. css
> 3. html
> 4. javascript
> 5. Database design
> 6. django installation, set up and deployment

You forgot the HTTP protocol !-)

--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

Re: Django on multiple servers? (Deployment Problem)

On 1 juil, 02:40, nano <nano3...@gmail.com> wrote:
> Ok, so i've written my Django app on computer A with the dev server,
> and have pushed it to server B, running apache (implemented with
> mod_wsgi). The server also has Django installed, but cannot find the
> settings for some reason.

It's probably either a pythonpath or permissions problem.

> what i've gathered is that because i've
> never run the 'makeproject' command that the Django instance on the
> server simply doesn't know the project exists.

And you're plain wrong.

There's nothing like a "Django instance" to starts with, all you have
is a django package somewhere in your pythonpath, and a "django
project" (ie : your app) package somewhere else that imports stuff
from the django package. The "startproject" command only creates a
"stub" project package, period.


> the project on the
> server has a slightly different path than it did on the original
> computer, however i have changed settings.py to reflect that.
> Now, my assumption is that the fix will be to go into the django files
> and edit whatever file notes what projects exist,

Once again : django is nothing else than a Python package so it don't
"do" anything by itself, and is *totally* ignorant of your project.
NB : if you don't know what's a Python package is, please read
Python's official tutorial, with special attention to the part about
modules, packages and the pythonpath).

> however i dont even
> know where to start looking. any help?

Read your apache's error log, you should get more information about
why your settings file is not found.

--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

Valid objects are returning an http 404 response

We are having an issue where valid model objects are returning an
apache 404 error. Often times, if you hit refresh in the browser a few
times, the object is returned with the same URL.

We are using Django 1.2.1

--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

Re: best translation solution for my project

On 1 juil, 10:18, grimmus <graham.col...@gmail.com> wrote:
> Hi,
>
> Sorry if this has been asked before, but i only seem to be finding
> bit's and pieces for what i am after.
>
> I have a simple website that needs to be available in English and
> French.
>
> I am using locale-url so all pages can have an independent url ( e.g.
> en/page and fr/page)
>
> There is a locale folder in my project that contains the .po and .mo
> files, all this is working correctly when i switch languages.
>
> The question is, how can my client translate the model fields in the
> admin area ? For example, there is a client list page that uses a
> model with a title and a body text. If they initially entered the
> client list in English, how would they add it in French ?
>
> I have heard about something called Rosetta but have not looked too
> much into it yet.
>
> Thanks for any advice on what solution would be best based on my
> requirements.

Rosetta can be helpful for all the .po/.mo stuff, but won't help for
your model-based content.

We're using currently using Transmetta on one of projects - the first
that had this requirement - and it works fine so far. One of the nice
points is that it has very minimal impact on your existing code AND
data so you can add it afterwards without much pain.

http://code.google.com/p/django-transmeta/

--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

Translation problem

Hi all,

I have a problem getting the correct translation using gettext in the
following situation:

I have a view which calls a custom function to send an email. This
functions takes three arguments
- subject of the email (string)
- the language of the email
- the template to render the content of the email:

e.g: my_mail(ugettext_lazy('This is the subject'), 'es', 'invitation')

Now, my_mail looks basically like this:

def my_mail(subject, lang, tpl):
translation.activate(lang)
content = render_to_string(....)
email = EmailMessage(subject, content, from_addr, to_addr)
email.send()

Now my problem is, that the content of the email is always sent in the
desired language given by the "lang" variable. While the subject of the
email is always sent in the language of the user calling the view.

What am I doing wrong? And how can I tell my function to translate the
subject correctly? I thought that is exactly what ugettext_lazy is for,
but obviously I misunderstood the concept.

Thanks,
Daniel

--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

Looking for Django Developer(s) in Long Island for part time and full time

Hello Django User group...

I am looking on the site for how to post a job opening to your
community...and I apologize in advance if I am not doing the right.

We are looking for 1 or 2 local (NY Metro area - preferably Long
Island) Django developers to work with me on a new audible Tweet
platform we developed called http://ShoutOmatic.com

If you, or anyone you know is looking for part time or full time work
please contact me normlevy @ shoutomatic <dot> com

We are an exciting start-up and build our platforms with Django...

Thank you for any guidance you may have for us to find Django
developers

Norm Levy
ShoutOmatic

--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.