Re: User .get_all_permissions() vs. .has_perm() inconsistency

2012-02-10 Thread Andy McKay
On Fri, Feb 10, 2012 at 4:01 PM, dslowik  wrote:
 u.get_all_permissions()
> set([u'wb.delete_libraryitem', u'wb.change_libraryitem'])
 u.has_perm("wb.change_libraryitem")
> True
>
> ...Shouldn't that be False?

Why would it be False? get_all_permissions: Returns a set of
permission strings that the user has has_perm: Returns True if the
user has the specified permission.

https://docs.djangoproject.com/en/1.2/topics/auth/#django.contrib.auth.models.User.get_all_permissions

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



Re: Generating a list of available templates

2012-02-10 Thread Patrick Wellever
Thanks for the reply. Yes, this wouldn't be too tough if the directories in 
TEMPLATE_DIRS were all I had to worry about, but the glitch I mentioned earlier 
is that Django can also look for templates in places other than those listed 
explicitly in that setting.

For example, the template loader 
'django.template.loaders.app_directories.Loader', which is enabled by default, 
looks for a "templates" directory within each one of your "installed apps." So 
a solution that only considers paths in TEMPLATE_DIRS would not work in that 
situation.

- Patrick


On Friday, February 10, 2012 at 5:05 PM, Bill Beal wrote:

> I know nothing, but here's what I did:
> 
> python manage.py shell
> import os
> from settings import TEMPLATE_DIRS
> for x in TEMPLATE_DIRS:
>   print x
>   os.listdir(x)
> 
> It gave me a list of the files in the (each) template directory.
> 
> It looks like you already have a list of template directories in settings.py.

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



User .get_all_permissions() vs. .has_perm() inconsistency

2012-02-10 Thread dslowik
Here is the code form my Python 2.6.6 session which is puzzling me:

>>> from django.contrib.auth.models import User
>>> u = User.objects.get(username='clint')
>>> u.get_all_permissions()
set([u'wb.delete_libraryitem', u'wb.change_libraryitem'])
>>> u.has_perm("wb.change_libraryitem")
True

...Shouldn't that be False?


I'm really trying to use permission checking as in:
{% if perms.foo.can_vote %}
as discussed in:
https://docs.djangoproject.com/en/1.2/topics/auth/#authentication-data-in-templates
, where I was expecting a False and got that True, but I've tracked
the problem down to the above puzzle.

I'm running
>>> django.VERSION
(1, 2, 3, 'final', 0)


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



Re: Generating a list of available templates

2012-02-10 Thread Bill Beal
I know nothing, but here's what I did:

python manage.py shell
import os
from settings import TEMPLATE_DIRS
for x in TEMPLATE_DIRS:
  print x
  os.listdir(x)

It gave me a list of the files in the (each) template directory.

It looks like you already have a list of template directories in settings.py.

On Feb 10, 2012, at 4:51 PM, Patrick Wellever wrote:

> Thanks -- you must be on your way out the door now so I won't call, but 
> according to your area code it looks like we might be neighbors. ;) So 
> following the syntax I wrote out, what I still need to know is how do I get 
> to EVERY_DIRECTORY_DJANGO_LOOKS_FOR_TEMPLATES_IN. That's a variable that 
> represents wishful thinking on my part -- I don't actually know how to get an 
> iterable list of those directories.
> 
> There must be some way I can sort of hook into the logic Django uses to 
> construct a list of template directories...
> 
> - P
> 
> 
> On Fri, Feb 10, 2012 at 4:33 PM, Python_Junkie 
>  wrote:
> I think you have it with the syntax you just wrote down.
> 
> I will be available by phone until 4:45 if you want to call.
> 
> 781-...
> 
> On Feb 10, 4:19 pm, Patrick Wellever  wrote:
> >
> > I need something like:
> >
> > template_files = []
> > for dir in EVERY_DIRECTORY_DJANGO_LOOKS_FOR_TEMPLATES_IN:
> > template_files.extend(os.listdir(dir))
> 
> -- 
> 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...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/django-users?hl=en.

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



Re: Generating a list of available templates

2012-02-10 Thread Patrick Wellever
Sorry... I think that's a little more complicated than what I need,
actually. Django already handles searching for the template in all the
right locations, so I don't have any problem actually rendering the
template, and I shouldn't need to worry about absolute paths. Here's a
simplified bit of code from the flatpage view in contrib.flatpages:

DEFAULT_TEMPLATE = 'flatpages/default.html'

def flatpage_detail(request, url):
# ...
f = get_object_or_404(FlatPage, url__exact=url)

if f.template_name:
t = loader.select_template((f.template_name, DEFAULT_TEMPLATE))
else:
t = loader.get_template(DEFAULT_TEMPLATE)


So in the Django admin site, if you have a flatpage that you want to use a
template other than the default one, you enter the path to the template
into the "template_name" field as something like
'flatpages/custom_template.html'. I want the exact same functionality, but
I just want the admin site to display a select list of all templates in a
given directory instead of a blank text field. So within my templates
directory I'd make a directory at "flatpages/templates/" that includes
"default.html," "custom_template_a.html," "custom_template_b.html" and so
on.

I'm just stuck on how to generate a list of those templates to use as
choices in the admin site select menu. I want the list to populate based on
the actual files that exist in the directory and update itself when new
files are added. When you save the model instance, the template name you
selected is saved in a column on the model itself and rendering the correct
template is no problem.


On Fri, Feb 10, 2012 at 4:54 PM, Python_Junkie <
software.buy.des...@gmail.com> wrote:

> I think I just figured out what you want to do.
>
> You want one drop down list with all of the templates listed
> regardless of which folder the template lives in.
>
> So, as describe above you would create a dictionary of template_names
> by walking through the directories where the templates live
> and pass the dictionary back to the drop down list.
>
> Once the template is selected then you have to render back to the
> folder that the selected template lives in.
>
> You can create a database table with 2 columns , assuming all of the
> templates are named uniquely.
>
> column a contains the nameof all of the templates from the drop down
> list.
> column b contains the path that the template lives in.
>
> So, when  the user selects the template, the template value is passed
> to the view.
>
> The view can then perform a sql query
>
> select template_path from table where template ='template_name'
>
> value=crsr.fetchone()
>
> full_path=value+template_name
>
> render(full_path,  plus whatever values you want to pass that
> template)
>
>
> If you don't want to use a table you could have python walk through
> all of the directories until it achieves a match on the template name
>
> I hope this solves your question

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



Re: Generating a list of available templates

2012-02-10 Thread Python_Junkie
I think I just figured out what you want to do.

You want one drop down list with all of the templates listed
regardless of which folder the template lives in.

So, as describe above you would create a dictionary of template_names
by walking through the directories where the templates live
and pass the dictionary back to the drop down list.

Once the template is selected then you have to render back to the
folder that the selected template lives in.

You can create a database table with 2 columns , assuming all of the
templates are named uniquely.

column a contains the nameof all of the templates from the drop down
list.
column b contains the path that the template lives in.

So, when  the user selects the template, the template value is passed
to the view.

The view can then perform a sql query

select template_path from table where template ='template_name'

value=crsr.fetchone()

full_path=value+template_name

render(full_path,  plus whatever values you want to pass that
template)


If you don't want to use a table you could have python walk through
all of the directories until it achieves a match on the template name

I hope this solves your question




On Feb 10, 4:33 pm, Python_Junkie 
wrote:
> I think you have it with the syntax you just wrote down.
>
> I will be available by phone until 4:45 if you want to call.
>
> 781-248-6557
>
> On Feb 10, 4:19 pm, Patrick Wellever  wrote:
>
>
>
>
>
>
>
> > Sorry, this question is turning out to be much more difficult to articulate
> > than I originally expected. Thanks for bearing with me. ;)
>
> > You definitely have the right idea of what I'm trying to do -- the only
> > problem with this method is that Django looks for templates in multiple
> > places, so I don't actually know the absolute path to the directory the
> > templates are in. You quoted the critical bit from the docs in your earlier
> > message: if 'django.template.loaders.app_directories.Loader' is included in
> > your TEMPLATE_LOADERS setting, Django will search for a directory called
> > 'templates' in each installed app, *in addition to all the directories
> > specified in TEMPLATE_DIRS*, when trying to load a template.
>
> > So if I have an app called 'myapp' and my settings.py contains this:
>
> > TEMPLATE_DIRS = ('/home/django/templates',)
>
> > TEMPLATE_LOADERS = (
> >     'django.template.loaders.filesystem.Loader',
> >     'django.template.loaders.app_directories.Loader',
> > )
>
> > ... then both "/home/django/templates/myapp/" and
> > "/path/to/myapp/templates/myapp/" are legitimate places to stick the
> > templates for the app. I'm trying to find a solution that would list the
> > contents of my specified directory in either of these locations.
>
> > I need something like:
>
> > template_files = []
> > for dir in EVERY_DIRECTORY_DJANGO_LOOKS_FOR_TEMPLATES_IN:
> >     template_files.extend(os.listdir(dir))
>
> > I have to agree about the spoken word, though... Happy to discuss this by
> > phone if you'd like, and thanks again for your help.
>
> > - Patrick
>
> > On Fri, Feb 10, 2012 at 3:25 PM, Python_Junkie <
>
> > software.buy.des...@gmail.com> wrote:
> > > The internet is a wonderful invention, but sometimes the interchange
> > > of the spoken word is more efficient.
>
> > > Let's see if I have this straight.
>
> > > You know which directory the templates are in.
>
> > > 'templates/flatpages/page_templates/   for example.
> > > Is that correct?
>
> > > Then when you pass from the url.py to the specific view that you are
> > > directed to by the url  you simply call the function
> > > *
> > > files=os.listdir('templates/flatpages/page_templates/ ')
>
> > > template_qty=len(files)
>
> > > for xxx in range(template_qty):
> > >             #perform the logic to add values to the dictionary
> > >           template_dictionary=(  a:'a',b:'b')     ### I forget the
> > > exact syntax
>
> > > render(form_template_listing.html,template_dictionary)    -  ## I
> > > forget the exact syntax
>
> > > **
>
> > > Then in the form_template_listing.html  , template unpack the template
> > > dictionary in the drop down list.
>
> > > I believe this is what you are asking.
>
> > > If not I can send you my cell phone number and we can discuss it.

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



Re: Generating a list of available templates

2012-02-10 Thread Patrick Wellever
Thanks -- you must be on your way out the door now so I won't call, but
according to your area code it looks like we might be neighbors. ;) So
following the syntax I wrote out, what I still need to know is how do I get
to EVERY_DIRECTORY_DJANGO_LOOKS_FOR_TEMPLATES_IN. That's a variable that
represents wishful thinking on my part -- I don't actually know how to get
an iterable list of those directories.

There must be some way I can sort of hook into the logic Django uses to
construct a list of template directories...

- P


On Fri, Feb 10, 2012 at 4:33 PM, Python_Junkie <
software.buy.des...@gmail.com> wrote:

> I think you have it with the syntax you just wrote down.
>
> I will be available by phone until 4:45 if you want to call.
>
> 781-...
>
> On Feb 10, 4:19 pm, Patrick Wellever  wrote:
> >
> > I need something like:
> >
> > template_files = []
> > for dir in EVERY_DIRECTORY_DJANGO_LOOKS_FOR_TEMPLATES_IN:
> > template_files.extend(os.listdir(dir))
>

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



Re: Generating a list of available templates

2012-02-10 Thread Python_Junkie
I think you have it with the syntax you just wrote down.

I will be available by phone until 4:45 if you want to call.

781-248-6557

On Feb 10, 4:19 pm, Patrick Wellever  wrote:
> Sorry, this question is turning out to be much more difficult to articulate
> than I originally expected. Thanks for bearing with me. ;)
>
> You definitely have the right idea of what I'm trying to do -- the only
> problem with this method is that Django looks for templates in multiple
> places, so I don't actually know the absolute path to the directory the
> templates are in. You quoted the critical bit from the docs in your earlier
> message: if 'django.template.loaders.app_directories.Loader' is included in
> your TEMPLATE_LOADERS setting, Django will search for a directory called
> 'templates' in each installed app, *in addition to all the directories
> specified in TEMPLATE_DIRS*, when trying to load a template.
>
> So if I have an app called 'myapp' and my settings.py contains this:
>
> TEMPLATE_DIRS = ('/home/django/templates',)
>
> TEMPLATE_LOADERS = (
>     'django.template.loaders.filesystem.Loader',
>     'django.template.loaders.app_directories.Loader',
> )
>
> ... then both "/home/django/templates/myapp/" and
> "/path/to/myapp/templates/myapp/" are legitimate places to stick the
> templates for the app. I'm trying to find a solution that would list the
> contents of my specified directory in either of these locations.
>
> I need something like:
>
> template_files = []
> for dir in EVERY_DIRECTORY_DJANGO_LOOKS_FOR_TEMPLATES_IN:
>     template_files.extend(os.listdir(dir))
>
> I have to agree about the spoken word, though... Happy to discuss this by
> phone if you'd like, and thanks again for your help.
>
> - Patrick
>
> On Fri, Feb 10, 2012 at 3:25 PM, Python_Junkie <
>
>
>
>
>
>
>
> software.buy.des...@gmail.com> wrote:
> > The internet is a wonderful invention, but sometimes the interchange
> > of the spoken word is more efficient.
>
> > Let's see if I have this straight.
>
> > You know which directory the templates are in.
>
> > 'templates/flatpages/page_templates/   for example.
> > Is that correct?
>
> > Then when you pass from the url.py to the specific view that you are
> > directed to by the url  you simply call the function
> > *
> > files=os.listdir('templates/flatpages/page_templates/ ')
>
> > template_qty=len(files)
>
> > for xxx in range(template_qty):
> >             #perform the logic to add values to the dictionary
> >           template_dictionary=(  a:'a',b:'b')     ### I forget the
> > exact syntax
>
> > render(form_template_listing.html,template_dictionary)    -  ## I
> > forget the exact syntax
>
> > **
>
> > Then in the form_template_listing.html  , template unpack the template
> > dictionary in the drop down list.
>
> > I believe this is what you are asking.
>
> > If not I can send you my cell phone number and we can discuss it.

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



Re: Generating a list of available templates

2012-02-10 Thread Patrick Wellever
Sorry, this question is turning out to be much more difficult to articulate
than I originally expected. Thanks for bearing with me. ;)

You definitely have the right idea of what I'm trying to do -- the only
problem with this method is that Django looks for templates in multiple
places, so I don't actually know the absolute path to the directory the
templates are in. You quoted the critical bit from the docs in your earlier
message: if 'django.template.loaders.app_directories.Loader' is included in
your TEMPLATE_LOADERS setting, Django will search for a directory called
'templates' in each installed app, *in addition to all the directories
specified in TEMPLATE_DIRS*, when trying to load a template.

So if I have an app called 'myapp' and my settings.py contains this:

TEMPLATE_DIRS = ('/home/django/templates',)

TEMPLATE_LOADERS = (
'django.template.loaders.filesystem.Loader',
'django.template.loaders.app_directories.Loader',
)

... then both "/home/django/templates/myapp/" and
"/path/to/myapp/templates/myapp/" are legitimate places to stick the
templates for the app. I'm trying to find a solution that would list the
contents of my specified directory in either of these locations.

I need something like:

template_files = []
for dir in EVERY_DIRECTORY_DJANGO_LOOKS_FOR_TEMPLATES_IN:
template_files.extend(os.listdir(dir))

I have to agree about the spoken word, though... Happy to discuss this by
phone if you'd like, and thanks again for your help.

- Patrick



On Fri, Feb 10, 2012 at 3:25 PM, Python_Junkie <
software.buy.des...@gmail.com> wrote:

> The internet is a wonderful invention, but sometimes the interchange
> of the spoken word is more efficient.
>
> Let's see if I have this straight.
>
> You know which directory the templates are in.
>
> 'templates/flatpages/page_templates/   for example.
> Is that correct?
>
> Then when you pass from the url.py to the specific view that you are
> directed to by the url  you simply call the function
> *
> files=os.listdir('templates/flatpages/page_templates/ ')
>
> template_qty=len(files)
>
> for xxx in range(template_qty):
> #perform the logic to add values to the dictionary
>   template_dictionary=(  a:'a',b:'b') ### I forget the
> exact syntax
>
> render(form_template_listing.html,template_dictionary)-  ## I
> forget the exact syntax
>
> **
>
> Then in the form_template_listing.html  , template unpack the template
> dictionary in the drop down list.
>
>
> I believe this is what you are asking.
>
> If not I can send you my cell phone number and we can discuss it.

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



Re: Generating a list of available templates

2012-02-10 Thread Python_Junkie
The internet is a wonderful invention, but sometimes the interchange
of the spoken word is more efficient.

Let's see if I have this straight.

You know which directory the templates are in.

'templates/flatpages/page_templates/   for example.
Is that correct?

Then when you pass from the url.py to the specific view that you are
directed to by the url  you simply call the function
*
files=os.listdir('templates/flatpages/page_templates/ ')

template_qty=len(files)

for xxx in range(template_qty):
 #perform the logic to add values to the dictionary
   template_dictionary=(  a:'a',b:'b') ### I forget the
exact syntax

render(form_template_listing.html,template_dictionary)-  ## I
forget the exact syntax

**

Then in the form_template_listing.html  , template unpack the template
dictionary in the drop down list.




I believe this is what you are asking.

If not I can send you my cell phone number and we can discuss it.





On Feb 10, 3:01 pm, "Demetrio Girardi" 
wrote:
> On 10 Feb 2012 at 14:50, Patrick Wellever wrote:
>
> > I want to make it a choice field that justs lists all the files in, for 
> > example,
> > 'templates/flatpages/page_templates/', so the user can see what templates 
> > are available and just
> > choose one from a select list.
>
> you can read the filesystem in the form's (or form field's) __init__.

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



Re: Generating a list of available templates

2012-02-10 Thread Demetrio Girardi
On 10 Feb 2012 at 14:50, Patrick Wellever wrote:

> I want to make it a choice field that justs lists all the files in, for 
> example, 
> 'templates/flatpages/page_templates/', so the user can see what templates are 
> available and just 
> choose one from a select list.

you can read the filesystem in the form's (or form field's) __init__.

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



Re: Generating a list of available templates

2012-02-10 Thread Patrick Wellever
Sorry to be unclear... Basically the functionality I want is just like 
incontrib.flatpages -- the model has a field called 'template' that 
allows the user to specify an alternate template for the object detail page. 
But in the flatpages app, the field is just a charfield, so the user has to 
know which templates are available, then enter something like 
'flatpages/some_template.hrml' in the field.

I want to make it a choice field that justs lists all the files in, for 
example, 'templates/flatpages/page_templates/', so the user can see what 
templates are available and just choose one from a select list.

Don't need to create templates dynamically or store them in the db.

Thanks for your patience.

Patrick



On Feb 10, 2012 2:00 PM, Python_Junkie software.buy.des...@gmail.com 
wrote: 

I am not sure that I follow you.



When you mention creating new templates (you would be creating these

dynamically?) and have them show up in your database (model?)



Please explain or provide an example


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



Re: Generating a list of available templates

2012-02-10 Thread Python_Junkie
I am not sure that I follow you.

When you mention creating new templates (you would be creating these
dynamically?) and have them show up in your database (model?)

Please explain or provide an example



On Feb 10, 1:45 pm, Patrick Wellever  wrote:
> Right, I understand the loader works this way… What I'm trying to do is 
> generate a list of 'choices' for a model field that populates itself 
> automatically with available templates in a given directory, that works 
> regardless of whether the specified directory is on a template path specified 
> in the TEMPLATE_DIRS setting or a template path loaded by some loader other 
> than the filesystem loader.
>
> I want to scan a directory on the template path and return a list of all the 
> files in that directory, ideally by hooking into whatever functions Django 
> uses to locate templates, so that my list will populate correctly whether the 
> directory is on an app-specific template path or one explicitly defined in 
> the TEMPLATE_DIRS setting. Does that make sense? Point is I want to be able 
> to just create new template files in this particular directory and have them 
> automatically show up as available choices for a "template" field on my model.
>
>
>
>
>
>
>
> On Friday, February 10, 2012 at 1:33 PM, Python_Junkie wrote:
>
> >https://docs.djangoproject.com/en/dev/ref/templates/api/
>
> > Search on template loaders and this url will explain it.

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



Re: Generating a list of available templates

2012-02-10 Thread Patrick Wellever
Right, I understand the loader works this way… What I'm trying to do is 
generate a list of 'choices' for a model field that populates itself 
automatically with available templates in a given directory, that works 
regardless of whether the specified directory is on a template path specified 
in the TEMPLATE_DIRS setting or a template path loaded by some loader other 
than the filesystem loader.

I want to scan a directory on the template path and return a list of all the 
files in that directory, ideally by hooking into whatever functions Django uses 
to locate templates, so that my list will populate correctly whether the 
directory is on an app-specific template path or one explicitly defined in the 
TEMPLATE_DIRS setting. Does that make sense? Point is I want to be able to just 
create new template files in this particular directory and have them 
automatically show up as available choices for a "template" field on my model.


On Friday, February 10, 2012 at 1:33 PM, Python_Junkie wrote:

>  
> https://docs.djangoproject.com/en/dev/ref/templates/api/
>  
> Search on template loaders and this url will explain it.

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



Re: Generating a list of available templates

2012-02-10 Thread Python_Junkie


https://docs.djangoproject.com/en/dev/ref/templates/api/

Search on template loaders and this url will explain it.





The following is from this url

django.template.loaders.app_directories.Loader

Loads templates from Django apps on the filesystem. For each app
in INSTALLED_APPS, the loader looks for a templates subdirectory. If
the directory exists, Django looks for templates in there.

This means you can store templates with your individual apps. This
also makes it easy to distribute Django apps with default templates.

For example, for this setting:

INSTALLED_APPS = ('myproject.polls', 'myproject.music')

...then get_template('foo.html') will look for templates in these
directories, in this order:

/path/to/myproject/polls/templates/foo.html
/path/to/myproject/music/templates/foo.html

Note that the loader performs an optimization when it is first
imported: It caches a list of which INSTALLED_APPS packages have a
templates subdirectory.

This loader is enabled by default.



On Feb 10, 1:21 pm, Patrick Wellever  wrote:
> Thanks, I think that gets me most of the way there, but the part I'm having 
> more trouble with is figuring out how to deal with the other template 
> loaders, such as 'django.template.loaders.app_directories.Loader', that don't 
> pull from the 'TEMPLATE_DIRS' setting. I'd like the solution to take those 
> into account if possible.
>
> Is there any way to iterate over whatever list of source directories Django 
> builds when it wants to go looking for a template?
>
> Thanks,
> Patrick
>
>
>
>
>
>
>
> On Friday, February 10, 2012 at 1:03 PM, Python_Junkie wrote:
> > The setttings file is a python module.
>
> > See page
> >https://docs.djangoproject.com/en/dev/topics/settings/
>
> > Since the path is set for the templates.
> > ***
> > frrom the example
>
> > TEMPLATE_DIRS = ('/home/templates/mike')
>
> > in the view
>
> > templates=os.listdir(TEMPLATE_DIRS)
> > ###template_count=len(templates)
>
> > create a dictionary of templates and pass it back to the rendered
> > template and you have it.

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



Re: Generating a list of available templates

2012-02-10 Thread Patrick Wellever
Thanks, I think that gets me most of the way there, but the part I'm having 
more trouble with is figuring out how to deal with the other template loaders, 
such as 'django.template.loaders.app_directories.Loader', that don't pull from 
the 'TEMPLATE_DIRS' setting. I'd like the solution to take those into account 
if possible.

Is there any way to iterate over whatever list of source directories Django 
builds when it wants to go looking for a template?

Thanks,
Patrick


On Friday, February 10, 2012 at 1:03 PM, Python_Junkie wrote:

> The setttings file is a python module.
> 
> See page
> https://docs.djangoproject.com/en/dev/topics/settings/
> 
> Since the path is set for the templates.
> ***
> frrom the example
> 
> TEMPLATE_DIRS = ('/home/templates/mike')
> 
> in the view
> 
> templates=os.listdir(TEMPLATE_DIRS)
> ###template_count=len(templates)
> 
> create a dictionary of templates and pass it back to the rendered
> template and you have it.
> 
> 

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



Re: Generating a list of available templates

2012-02-10 Thread Python_Junkie
The setttings file is a python module.

See page
https://docs.djangoproject.com/en/dev/topics/settings/

Since the path is set for the templates.
***
frrom the example

TEMPLATE_DIRS = ('/home/templates/mike')

in the view

templates=os.listdir(TEMPLATE_DIRS)
###template_count=len(templates)

create a  dictionary of templates and pass it back to the rendered
template and you have it.





On Feb 10, 12:42 pm, Micky Hulse  wrote:
> On Fri, Feb 10, 2012 at 6:40 AM, Patrick Wellever  wrote:
> > I guess the main question is, is there some function I can use to return a
> > directory on the template path?
>
> I'm interested in this also.
>
> I too have my own static pages app and have always thought it would be
> easier for folks to choose from a list of files rather than have to
> remember what's there on the file system.
>
> I suppose one way to do it would be to create an FK to another model
> what someone has entered the paths to available templates... But, I do
> like the idea of reading the contents of a folder and having a
> dropdown that updates dynamically (with code portability in mind).
>
> Patrick, if you find a solution please post it back here to the list.
> I will do the same.
>
> Thanks!
> M

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



Re: Generating a list of available templates

2012-02-10 Thread Micky Hulse
On Fri, Feb 10, 2012 at 6:40 AM, Patrick Wellever  wrote:
> I guess the main question is, is there some function I can use to return a
> directory on the template path?

I'm interested in this also.

I too have my own static pages app and have always thought it would be
easier for folks to choose from a list of files rather than have to
remember what's there on the file system.

I suppose one way to do it would be to create an FK to another model
what someone has entered the paths to available templates... But, I do
like the idea of reading the contents of a folder and having a
dropdown that updates dynamically (with code portability in mind).

Patrick, if you find a solution please post it back here to the list.
I will do the same.

Thanks!
M

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



Re: [Error] Mixing Two databases

2012-02-10 Thread Subhodip Biswas
Hi,



On Fri, Feb 10, 2012 at 7:27 PM, Dennis Lee Bieber
 wrote:
> On Fri, 10 Feb 2012 09:32:02 +0530, Subhodip Biswas
>  wrote:
>
>
>        
>>I am getting a error like this :
>>django.db.utils.DatabaseError: Ordering can't span tables on
>>non-relational backends
>>
>        You don't, by some chance, have a model in one with a foreign key
> reference in the other?

I am trying to setup Geodjango over postgres. Since I am explicitly
mentioning my model to use postgres and not mongoDB. I thought I had
clear shot. but that is not the case and  might be the cause of the
problem. So how do I handle the settings now?

Any Ideas and pointers would help.




-
Regards
Subhodip Biswas


GPG key : FAEA34AB
Server : pgp.mit.edu
http://subhodipbiswas.wordpress.com
http:/www.fedoraproject.org/wiki/SubhodipBiswas

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



Re: Creating a hospital erp (hospital management) in Django

2012-02-10 Thread Alec Taylor
On Fri, Feb 10, 2012 at 9:58 PM, Saadat  wrote:
> Hello All,
> I'm in my final year of computer science engineering and for my final
> year project, i'm creating a hospital erp. I'm a bit confused about
> where to start from. Any sort of help will be appreciated. Thanks a
> lot.
>
> Cheers
> Saadat
>

A lot of ERP is general across any field.

I recommend working from the AGPL licensed OpenERP into Django
(http://apps.openerp.com/addon/4533): http://openerp.com

Then just build in all the hospital ERP related functions, streamline
all the interfaces (including config and admin interfaces).

If you find yourself finishing the project early, just throw in some
scope-creep :P, it's an ERP afterall!

Good luck ;)

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



Re: how do I model an auto-populate name from admin authorised users list

2012-02-10 Thread K.C. Smith
You have a lot of big questions and you'll need to do some more
learning of and practice Django to answer them all.  But, I will try
to answer some and point you in the right direction.

First, you linked a snippet of what seems to be your "models.py" file,
but much of what you wish to do will probably have to be accomplished
at the view layer in the "view.py" file.  At the view layer, you
handle requests and the user model for the current/requesting user is
accessible there.  (See here, for detailed information:
https://docs.djangoproject.com/en/1.2/topics/auth/#users .)  Code that
might allow you to get the user's name and email information might
look like this:

if request.user.is_authenticated() :
contextdict['email'] = request.user.email
contextdict['fn'] = request.user.first_name
contextdict['ln'] = request.user.last_name
if request.user.is_staff :
contextdict['sho_alnk'] = True
return render_to_response('template.html', contextdict )

Then you could access those var.s in the contextdict from your web
template and use them to pre-populate your form, or display them
statically perhaps.

The link above also has information about groups and permissions,
which should help with your second question.  Another technique that
might help in getting a list of usernames into a model (and hence a
drop-down selection on the admin page) would be to add a field like
this to the model:

approver = models.ForeignKey(User , limit_choices_to =
{'is_staff':True} )

That's not exactly what you've described, but there ought to be a way
to modify it to get "limit_choices_to" to use the group you create
rather than the boolean field User.is_staff .

Good luck.

K.C.

On Feb 3, 4:40 am, Krondaj  wrote:
> Hi,
>
> I have written a model for a web form (of sorts) I'm making that
> people can fill in from the admin site.  I have set permissions from
> the admin end so they can only write or change new posts of the form
> (seehttp://dpaste.org/BZ5Nm/). it's still work in progress  but I
> have two problems.
>
> First instead of using a CharField to take their name, i'd like it to
> auto populate, there full name and email address as they will be
> logged in and authenticated at the admin login site.
>
> Secondly instead of having a set of name choices for the approver i'd
> like to make a group in the admin called approver, and have it let you
> select from a list (so if we have a new approver i can just add them
> to the group).  I know how to make the group, i just don't know how to
> get the model to display these in the admin site as a drop-down list.
>
> I'd also like the database to link the first form and the second
> form... and make it so only the person who has been requested to do
> the work can fill in the required fields.
>
> Can anyone give me some clues/ell me how to do this My coding
> skillz are somewhat lacking!!??!! so i'd really appreciate any help!

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



Generating a list of available templates

2012-02-10 Thread Patrick Wellever
Hi all,

An app I'm working on has a model that, similar to the Flatpages app model, has 
a "template" field to allow users to specify an alternate template for 
displaying the object detail view.

What I'd like to do though is to make this a choice field that pulls its 
options dynamically from a directory on the template path. So for example, I 
can create a directory like "templates/myapp/entry_detail/" and have the choice 
field simply look into that directory and list its contents as options. I could 
figure it out using an absolute filesystem path, but I'd like to make it work 
within the context of the "template_dirs" behavior, so it's more portable.

I guess the main question is, is there some function I can use to return a 
directory on the template path?

Thanks for any assistance!

Best,
Patrick

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



Re: how to make a small change for apps installed under /site-packages dir

2012-02-10 Thread Tom Evans
On Mon, Feb 6, 2012 at 8:23 AM, bruno desthuilliers
 wrote:
> Depends on how much you need to modify the third part app. Forking the
> app is sometimes the best solution, but it means you'll have a hard
> time keeping in sync with the original code when bugfixes and new
> features will be released.

It's really not that hard assuming that you are using some decent
source control. In subversion, a new release is handled by the tool
'svn_load_dirs', which is trivial to use, and then merging the changes
that required the branch.

If the changes are minimal, then there is really not much work
involved in merging them to a newer release.

Once you have the forked project tracked in source control, installing
your patched version in production is simply a case of referencing it
correctly via pip. Ideally you should keep all dependencies tracked in
a requirements.pip file, so this simply requires changing a line like
so:

-django==1.3.1
+svn+http://my.repo.host/python/vendor/django/1.3.1-barorg#egg=django

At $JOB, we go a step further and roll these up into packages which we
serve up from our own pypi (well, a directory with a collection of
tar.gz files in it), so we can use the simpler format. Plus, our
production machines have no direct access to the internet, so it is
kind of necessary anyway :)

Cheers

Tom

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



Re: regarding an error in settings.py

2012-02-10 Thread kalyani ram
i am not able to attach the screen shots. i will mail it to you.


On Feb 10, 4:35 pm, Stanwin Siow  wrote:
> can you show the actual error output?
>
> Best Regards,
>
> Stanwin Siow
>
> On Feb 10, 2012, at 4:58 PM, kalyani ram wrote:
>
>
>
>
>
>
>
> > Thank you very much. I managed to come out of this error and ended up
> > with a new one.
> > I get an error saying that the Name field is wrong. If i have not
> > mistaken, should the name filed be the table name ? or is it something
> > new?
> > thanks in advance.
>
> > On Feb 9, 7:30 pm, Stanwin Siow  wrote:
> >> Hi
>
> >> You need to install the package psycopg2. Google  and install the package.
>
> >> It should work
>
> >> Best Regards,
>
> >> Stanwin Siow
>
> >> On Feb 9, 2012, at 10:10 PM, kalyani ram wrote:
>
> >>> Hey all,
> >>> Tday is my first day with django and i tried configuring postgresql as
> >>> a backend and got an error like this:
>
> >>> raise ImproperlyConfigured("Error loading psycopg2 module: %s" % e)
> >>> django.core.exceptions.ImproperlyConfigured: Error loading psycopg2
> >>> module: No module named psycopg2
>
> >>> Please help me. Thanks in advance.
>
> >>> --
> >>> 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...@googlegroups.com.
> >>> For more options, visit this group 
> >>> athttp://groups.google.com/group/django-users?hl=en.
>
> > --
> > 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...@googlegroups.com.
> > For more options, visit this group 
> > athttp://groups.google.com/group/django-users?hl=en.

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



Re: Creating a hospital erp (hospital management) in Django

2012-02-10 Thread Python_Junkie
Is the project referenced in this link written in Django.

Was your goal for your class project to write a Django app?



On Feb 10, 8:27 am, Richard House  wrote:
> Hi Saadat,
> Rather than creating something new, have you looked at contributing to 
> software from such lists like 
> this?http://en.wikipedia.org/wiki/List_of_open-source_healthcare_software
>
> Regards,
> Richard
>
> On 10 Feb 12, at 10:58, Saadat wrote:
>
>
>
>
>
>
>
> > Hello All,
> > I'm in my final year of computer science engineering and for my final
> > year project, i'm creating a hospital erp. I'm a bit confused about
> > where to start from. Any sort of help will be appreciated. Thanks a
> > lot.
>
> > Cheers
> > Saadat
>
> > --
> > 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...@googlegroups.com.
> > For more options, visit this group 
> > athttp://groups.google.com/group/django-users?hl=en.

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



Re: Creating a hospital erp (hospital management) in Django

2012-02-10 Thread Patricio Valarezo

El 10/02/12 8:26, Python_Junkie escribió:

I had not completed my previous post, and hit the send button by
mistake.

One wire frame work is
http://www.balsamiq.com/products/mockups/manifesto

And you can download a free trial.

If you search on Frameworks then you will find a number of others that
are open source, or you can simply use yellow stickies, as some of
these web sites suggest as an alternative.

Then convert the yellow stickies into web pages and link them to the
backend database.

Good luck


On Feb 10, 8:18 am, Python_Junkie
wrote:

Not sure from your post, which piece you are stuck on.

1. Have you used Django before?
If not start with the tutorial

https://www.djangoproject.com/

2. If you have a basic understanding of Django, have you been able to
set up a basic project /app and connect run syncdb.
One can always connect to the sqllite database, because it is built
in, but getting some other database to connect can be a time consuming
process if the procedure has not been established on your machine.

3. If you have done the above 2 items then you should move in a
parallel path.

a. Start defining your database model to support the business and the
workflow that you intend to create.
b. Use some sort of wire frame (framework) to lay out your web pages
to support and interact step 3 a.

On Feb 10, 8:06 am, adesantoas...@gmail.com wrote:








Hello, nice thread.
**tagged to keep following..
+adesst
-Original Message-
From: Saadat
Sender: django-users@googlegroups.com
Date: Fri, 10 Feb 2012 02:58:16
To: Django users
Reply-To: django-users@googlegroups.com
Subject: Creating a hospital erp (hospital management) in Django
Hello All,
I'm in my final year of computer science engineering and for my final
year project, i'm creating a hospital erp. I'm a bit confused about
where to start from. Any sort of help will be appreciated. Thanks a
lot.




What about choosing a system development methodology? A simple one could 
you give some clues, the code is always the last thing to do.



--
Patricio Valarezo Lozano.
patov...@pupilabox.net.ec
www.pupilabox.net.ec
"las cosas no se hacen solas, alguien las tiene que hacer..."

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



Re: Thread local storage issue under Apache

2012-02-10 Thread Alessandro Candini

On 02/10/2012 01:11 PM, Tom Evans wrote:

On Fri, Feb 10, 2012 at 11:00 AM, Alessandro Candini  wrote:

Hi everyone.

…

But if I run the same application under the Apache web server, I get the
following error:
Fatal Python error: Couldn't create autoTLSkey mapping

…

I'm using Apache/2.2.20 on Ubuntu-11.10 mod_wsgi-3.3 Python-2.7.2
django-1.3.1


Wait for python 2.7.3 to be released...

http://bugs.python.org/issue13156
http://groups.google.com/group/modwsgi/browse_thread/thread/d6f929486f4eeb1?tvc=2=1

Cheers

Tom


Nice to know, but at the moment I have solved in the following way:
as reported at 
http://groups.google.com/group/modwsgi/browse_thread/thread/d6f929486f4eeb1?tvc=2
I have added the line "WSGIApplicationGroup %{GLOBAL}" in my 
/etc/apache2/sites-available/jsonopenlayers file reported above.


Now everything works as expected also using apache web server!

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



Re: how do I model an auto-populate name from admin authorised users list

2012-02-10 Thread Krondaj
Can anybody help me here???

On Feb 3, 9:40 am, Krondaj  wrote:
> Hi,
>
> I have written a model for a web form (of sorts) I'm making that
> people can fill in from the admin site.  I have set permissions from
> the admin end so they can only write or change new posts of the form
> (seehttp://dpaste.org/BZ5Nm/). it's still work in progress  but I
> have two problems.
>
> First instead of using a CharField to take their name, i'd like it to
> auto populate, there full name and email address as they will be
> logged in and authenticated at the admin login site.
>
> Secondly instead of having a set of name choices for the approver i'd
> like to make a group in the admin called approver, and have it let you
> select from a list (so if we have a new approver i can just add them
> to the group).  I know how to make the group, i just don't know how to
> get the model to display these in the admin site as a drop-down list.
>
> I'd also like the database to link the first form and the second
> form... and make it so only the person who has been requested to do
> the work can fill in the required fields.
>
> Can anyone give me some clues/ell me how to do this My coding
> skillz are somewhat lacking!!??!! so i'd really appreciate any help!

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



Re: Creating a hospital erp (hospital management) in Django

2012-02-10 Thread Richard House
Hi Saadat,
Rather than creating something new, have you looked at contributing to software 
from such lists like this?
http://en.wikipedia.org/wiki/List_of_open-source_healthcare_software

Regards,
Richard

On 10 Feb 12, at 10:58, Saadat wrote:

> Hello All,
> I'm in my final year of computer science engineering and for my final
> year project, i'm creating a hospital erp. I'm a bit confused about
> where to start from. Any sort of help will be appreciated. Thanks a
> lot.
> 
> Cheers
> Saadat
> 
> -- 
> 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...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/django-users?hl=en.
> 

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



Re: Creating a hospital erp (hospital management) in Django

2012-02-10 Thread Python_Junkie
I had not completed my previous post, and hit the send button by
mistake.

One wire frame work is
http://www.balsamiq.com/products/mockups/manifesto

And you can download a free trial.

If you search on Frameworks then you will find a number of others that
are open source, or you can simply use yellow stickies, as some of
these web sites suggest as an alternative.

Then convert the yellow stickies into web pages and link them to the
backend database.

Good luck


On Feb 10, 8:18 am, Python_Junkie 
wrote:
> Not sure from your post, which piece you are stuck on.
>
> 1. Have you used Django before?
> If not start with the tutorial
>
> https://www.djangoproject.com/
>
> 2. If you have a basic understanding of Django, have you been able to
> set up a basic project /app and connect run syncdb.
> One can always connect to the sqllite database, because it is built
> in, but getting some other database to connect can be a time consuming
> process if the procedure has not been established on your machine.
>
> 3. If you have done the above 2 items then you should move in a
> parallel path.
>
> a. Start defining your database model to support the business and the
> workflow that you intend to create.
> b. Use some sort of wire frame (framework) to lay out your web pages
> to support and interact step 3 a.
>
> On Feb 10, 8:06 am, adesantoas...@gmail.com wrote:
>
>
>
>
>
>
>
> > Hello, nice thread.
>
> > **tagged to keep following..
>
> > +adesst
>
> > -Original Message-
> > From: Saadat 
>
> > Sender: django-users@googlegroups.com
> > Date: Fri, 10 Feb 2012 02:58:16
> > To: Django users
> > Reply-To: django-users@googlegroups.com
> > Subject: Creating a hospital erp (hospital management) in Django
>
> > Hello All,
> > I'm in my final year of computer science engineering and for my final
> > year project, i'm creating a hospital erp. I'm a bit confused about
> > where to start from. Any sort of help will be appreciated. Thanks a
> > lot.
>
> > Cheers
> > Saadat
>
> > --
> > 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...@googlegroups.com.
> > For more options, visit this group 
> > athttp://groups.google.com/group/django-users?hl=en.

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



Re: https://code.djangoproject.com/ticket/16909

2012-02-10 Thread Sandro Dutra
[...]Django 1.4, scheduled for March 2012.[...]

from https://docs.djangoproject.com/en/dev/releases/1.4-alpha-1/

2012/2/10 Craig Blaszczyk :
> Hi All,
>
> I need the bugfix from this ticket. This ticket is assigned to Version 1.3,
> and was closed as fixed 5 months ago. This was fixed after the 1.3.1
> release. Is there going to be a 1.3.2 release which includes this fix?
>
> Cheers,
> --Craig Blaszczyk
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/django-users/-/MifZKL58YukJ.
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.

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



Re: Creating a hospital erp (hospital management) in Django

2012-02-10 Thread Python_Junkie
Not sure from your post, which piece you are stuck on.

1. Have you used Django before?
If not start with the tutorial

https://www.djangoproject.com/

2. If you have a basic understanding of Django, have you been able to
set up a basic project /app and connect run syncdb.
One can always connect to the sqllite database, because it is built
in, but getting some other database to connect can be a time consuming
process if the procedure has not been established on your machine.

3. If you have done the above 2 items then you should move in a
parallel path.

a. Start defining your database model to support the business and the
workflow that you intend to create.
b. Use some sort of wire frame (framework) to lay out your web pages
to support and interact step 3 a.



On Feb 10, 8:06 am, adesantoas...@gmail.com wrote:
> Hello, nice thread.
>
> **tagged to keep following..
>
> +adesst
>
>
>
>
>
>
>
> -Original Message-
> From: Saadat 
>
> Sender: django-users@googlegroups.com
> Date: Fri, 10 Feb 2012 02:58:16
> To: Django users
> Reply-To: django-users@googlegroups.com
> Subject: Creating a hospital erp (hospital management) in Django
>
> Hello All,
> I'm in my final year of computer science engineering and for my final
> year project, i'm creating a hospital erp. I'm a bit confused about
> where to start from. Any sort of help will be appreciated. Thanks a
> lot.
>
> Cheers
> Saadat
>
> --
> 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...@googlegroups.com.
> For more options, visit this group 
> athttp://groups.google.com/group/django-users?hl=en.

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



Re: Creating a hospital erp (hospital management) in Django

2012-02-10 Thread adesantoasman
Hello, nice thread. 

**tagged to keep following..


+adesst

-Original Message-
From: Saadat 
Sender: django-users@googlegroups.com
Date: Fri, 10 Feb 2012 02:58:16 
To: Django users
Reply-To: django-users@googlegroups.com
Subject: Creating a hospital erp (hospital management) in Django

Hello All,
I'm in my final year of computer science engineering and for my final
year project, i'm creating a hospital erp. I'm a bit confused about
where to start from. Any sort of help will be appreciated. Thanks a
lot.

Cheers
Saadat

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

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



Creating a hospital erp (hospital management) in Django

2012-02-10 Thread Saadat
Hello All,
I'm in my final year of computer science engineering and for my final
year project, i'm creating a hospital erp. I'm a bit confused about
where to start from. Any sort of help will be appreciated. Thanks a
lot.

Cheers
Saadat

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



Re: Custom times in admin time selector

2012-02-10 Thread Tom Evans
On Wed, Feb 8, 2012 at 2:15 PM, Sebastian Goll  wrote:
> Hi all,
>
> For DateTimeFields, the admin presents selector widgets for both the
> date and time form fields. The default choices for the time selector
> are: Now, Midnight, 6 a.m., Noon.
>
> I'd like to replace those default choices with something different,
> depending on the ModelAdmin instance in question.
>
> Can this be done easily? How would I do this?
>
> Best wishes,
> Sebastian.
>

This is added by javascript, and so not that easy to change. The file
in question is django/contrib/admin/media/js/DateTimeShortcuts.js,
around line 85.

Cheers

Tom

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



Re: regarding an error in settings.py

2012-02-10 Thread Python_Junkie
The name field is the database name.

You always need to create an empty database for any new
implementation.

Have you created a database and can you attach to it with the
credentials that are supplied in the settings.py file

On Feb 10, 6:35 am, Stanwin Siow  wrote:
> can you show the actual error output?
>
> Best Regards,
>
> Stanwin Siow
>
> On Feb 10, 2012, at 4:58 PM, kalyani ram wrote:
>
>
>
>
>
>
>
> > Thank you very much. I managed to come out of this error and ended up
> > with a new one.
> > I get an error saying that the Name field is wrong. If i have not
> > mistaken, should the name filed be the table name ? or is it something
> > new?
> > thanks in advance.
>
> > On Feb 9, 7:30 pm, Stanwin Siow  wrote:
> >> Hi
>
> >> You need to install the package psycopg2. Google  and install the package.
>
> >> It should work
>
> >> Best Regards,
>
> >> Stanwin Siow
>
> >> On Feb 9, 2012, at 10:10 PM, kalyani ram wrote:
>
> >>> Hey all,
> >>> Tday is my first day with django and i tried configuring postgresql as
> >>> a backend and got an error like this:
>
> >>> raise ImproperlyConfigured("Error loading psycopg2 module: %s" % e)
> >>> django.core.exceptions.ImproperlyConfigured: Error loading psycopg2
> >>> module: No module named psycopg2
>
> >>> Please help me. Thanks in advance.
>
> >>> --
> >>> 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...@googlegroups.com.
> >>> For more options, visit this group 
> >>> athttp://groups.google.com/group/django-users?hl=en.
>
> > --
> > 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...@googlegroups.com.
> > For more options, visit this group 
> > athttp://groups.google.com/group/django-users?hl=en.

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



Re: Is it possible to implement an ODBC for Django

2012-02-10 Thread Python_Junkie
Thanks for your response, but that was not exactly what I was looking
for.

I use pyodbc module for all of my sql connections through python in
general.
It is very powerful.
But it does not allow me to configure the settings.py file for an ODBC
connection

I wanted to how I would implement ODBC through the settings.py file.

I have been unable to implement a MYSQL / python module on Mac OS Lion

I really do  not want this post to be explanations of how to install
MYSQL
I have spent enough time failing in that route.

I would like to know if anyone has had success
1. setting up an ODBC connection - I have done that on Lion and can
connect successfully through pyodbc module to the database
2. Configure the settings.py file for the ODBC connection that I have
set up successfully.

Thanks in advance.




On Feb 10, 4:00 am, Renne Rocha  wrote:
>   Try:
>
>  http://pyodbc.sourceforge.net/andhttp://code.google.com/p/django-pyodbc/
>
>   Renne Rocha
>  http://rennerocha.com/
>
> On Fri, Feb 10, 2012 at 1:29 AM, Python_Junkie <
>
>
>
>
>
>
>
> software.buy.des...@gmail.com> wrote:
> > I wanted to know if the settings.py will support a generic ODBC
> > connection and if it could what the syntax would be in the database
> > section of the , settings.py file
>
> > --
> > 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...@googlegroups.com.
> > For more options, visit this group at
> >http://groups.google.com/group/django-users?hl=en.

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



Re: QuerySet and subselect

2012-02-10 Thread Oleg Korsak
Yeah, you are right. Actually I'm trying to get most actual (latest by
timestamp) records per group.

2012/2/10 Dennis Lee Bieber :
> On Fri, 10 Feb 2012 02:39:33 +0200,  ??
>  wrote:
>
>>Is it possible to write ORM-way request to be same as this SQL:
>>SELECT mo.* FROM (SELECT mi.* FROM my_model mi) AS mo WHERE mi.a=mo.a
>>AND mi.b=mo.b;
>>
>>There is also an agregation+group by statements in subselect, but let's
>>assume that we don't have them.
>>
>        I'm going to guess that the aggregation and group by portions are
> what makes a subselect needed... Otherwise the SQL would be the almost
> meaningless:
>
> select mo.* from my_model as mo
> inner join my_model as mi
> on mo.a = mi.a and mo.b = mi.b
> --
>        Wulfraed                 Dennis Lee Bieber         AF6VN
>        wlfr...@ix.netcom.com    HTTP://wlfraed.home.netcom.com/
>
> --
> 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...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/django-users?hl=en.
>

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



Re: Thread local storage issue under Apache

2012-02-10 Thread Tom Evans
On Fri, Feb 10, 2012 at 11:00 AM, Alessandro Candini  wrote:
> Hi everyone.
>
> …
>
> But if I run the same application under the Apache web server, I get the
> following error:
> Fatal Python error: Couldn't create autoTLSkey mapping
>
>…
>
> I'm using Apache/2.2.20 on Ubuntu-11.10 mod_wsgi-3.3 Python-2.7.2
> django-1.3.1
>

Wait for python 2.7.3 to be released...

http://bugs.python.org/issue13156
http://groups.google.com/group/modwsgi/browse_thread/thread/d6f929486f4eeb1?tvc=2=1

Cheers

Tom

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



https://code.djangoproject.com/ticket/16909

2012-02-10 Thread Craig Blaszczyk
Hi All,

I need the bugfix from this ticket. This ticket is assigned to Version 1.3, 
and was closed as fixed 5 months ago. This was fixed after the 1.3.1 
release. Is there going to be a 1.3.2 release which includes this fix? 

Cheers,
--Craig Blaszczyk

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/MifZKL58YukJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Multiple Django Virtual Hosts on Apache+mod_wsgi but only one gets served

2012-02-10 Thread Tom Evans
On Tue, Feb 7, 2012 at 12:55 AM, Chris Cuilla  wrote:
> I've been struggling to figure out the following problem and am hoping
> someone else has seen this.
>
> I have a server running Apache 2 w/mod_wsgi. I've setup multiple,
> different Django apps. Each has its own virtual host configuration
> (see below).
>
> This is on a local test server and my client machines have /etc/hosts
> configured to point both app_a and app_b hostnames to the same
> machine.
>

Two things:

You must use valid hostnames for ServerName. '_' is not valid in a hostname.
Do you have the directive "NameVirtualHost *:80" ?


Cheers

Tom

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



Re: regarding an error in settings.py

2012-02-10 Thread Stanwin Siow
can you show the actual error output?


Best Regards,

Stanwin Siow



On Feb 10, 2012, at 4:58 PM, kalyani ram wrote:

> Thank you very much. I managed to come out of this error and ended up
> with a new one.
> I get an error saying that the Name field is wrong. If i have not
> mistaken, should the name filed be the table name ? or is it something
> new?
> thanks in advance.
> 
> 
> On Feb 9, 7:30 pm, Stanwin Siow  wrote:
>> Hi
>> 
>> You need to install the package psycopg2. Google  and install the package.
>> 
>> It should work
>> 
>> Best Regards,
>> 
>> Stanwin Siow
>> 
>> On Feb 9, 2012, at 10:10 PM, kalyani ram wrote:
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>>> Hey all,
>>> Tday is my first day with django and i tried configuring postgresql as
>>> a backend and got an error like this:
>> 
>>> raise ImproperlyConfigured("Error loading psycopg2 module: %s" % e)
>>> django.core.exceptions.ImproperlyConfigured: Error loading psycopg2
>>> module: No module named psycopg2
>> 
>>> Please help me. Thanks in advance.
>> 
>>> --
>>> 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...@googlegroups.com.
>>> For more options, visit this group 
>>> athttp://groups.google.com/group/django-users?hl=en.
> 
> -- 
> 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...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/django-users?hl=en.
> 

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



Thread local storage issue under Apache

2012-02-10 Thread Alessandro Candini

Hi everyone.

I have a django project in where I've added a custom .py file which 
launches a shell command (a GDAL utility to manipulate shapefiles):

subprocess.call(["ogr2ogr", "-t_srs", "EPSG:900913", shpGoogle, shpOrig])

If I run the function containing this command using django web server 
everything works fine and my new file have produced and stored on the 
filesystem.


But if I run the same application under the Apache web server, I get the 
following error:

Fatal Python error: Couldn't create autoTLSkey mapping

Do you have any idea on how to solve this?

Thanks in advance

Configuration details follows...

I'm using Apache/2.2.20 on Ubuntu-11.10 mod_wsgi-3.3 Python-2.7.2 
django-1.3.1


My django.wsgi file is the following
import os, sys
sys.path.append('/home/candini/Repos/CanetaRepo/tmp/STO')
os.environ['DJANGO_SETTINGS_MODULE'] = 'settings'
import django.core.handlers.wsgi
application = django.core.handlers.wsgi.WSGIHandler()

And this is the mod_wsgi configuration:
NameVirtualHost jsonopenlayers:80

ServerAdmin cand...@meeo.it
ServerName jsonopenlayers
#DocumentRoot /var/www
DocumentRoot /home/candini/Repos/CanetaRepo/tmp/STO/jsonopenlayers

Options FollowSymLinks
AllowOverride None


#

Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all


Alias /static/ 
/home/candini/Repos/CanetaRepo/tmp/STO/jsonopenlayers/static/



Order deny,allow
Allow from all


WSGIScriptAlias / 
/home/candini/Repos/CanetaRepo/tmp/STO/apache/django.wsgi


ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/

AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all


ErrorLog ${APACHE_LOG_DIR}/error.log

# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn

CustomLog ${APACHE_LOG_DIR}/access.log combined

Alias /doc/ "/usr/share/doc/"

Options Indexes MultiViews FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
   Allow from 127.0.0.0/255.0.0.0 ::1/128



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



Re: email feature

2012-02-10 Thread kalyani ram
i ll have a forward button which when clicked will forward the MSG to
the recipient and add the message to the queue named "forward". This
queue should work using the django_cron package.

On Feb 10, 1:56 pm, kalyani ram  wrote:
> Hey all,
>
> I am trying to include a new feature to my email tool, which is used
> for forwarding the mail to the appropriate user and storing it in a
> separate queue using django_cron. Can someone tell me how to do this.
> It would be very help as i have limited idea on django.
> thanks in advance

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



Re: Is it possible to implement an ODBC for Django

2012-02-10 Thread Renne Rocha
  Try:

  http://pyodbc.sourceforge.net/ and
http://code.google.com/p/django-pyodbc/

  Renne Rocha
  http://rennerocha.com/



On Fri, Feb 10, 2012 at 1:29 AM, Python_Junkie <
software.buy.des...@gmail.com> wrote:

> I wanted to know if the settings.py will support a generic ODBC
> connection and if it could what the syntax would be in the database
> section of the , settings.py file
>
> --
> 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...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>

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



Re: regarding an error in settings.py

2012-02-10 Thread kalyani ram
Thank you very much. I managed to come out of this error and ended up
with a new one.
I get an error saying that the Name field is wrong. If i have not
mistaken, should the name filed be the table name ? or is it something
new?
thanks in advance.


On Feb 9, 7:30 pm, Stanwin Siow  wrote:
> Hi
>
> You need to install the package psycopg2. Google  and install the package.
>
> It should work
>
> Best Regards,
>
> Stanwin Siow
>
> On Feb 9, 2012, at 10:10 PM, kalyani ram wrote:
>
>
>
>
>
>
>
> > Hey all,
> > Tday is my first day with django and i tried configuring postgresql as
> > a backend and got an error like this:
>
> > raise ImproperlyConfigured("Error loading psycopg2 module: %s" % e)
> > django.core.exceptions.ImproperlyConfigured: Error loading psycopg2
> > module: No module named psycopg2
>
> > Please help me. Thanks in advance.
>
> > --
> > 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...@googlegroups.com.
> > For more options, visit this group 
> > athttp://groups.google.com/group/django-users?hl=en.

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



email feature

2012-02-10 Thread kalyani ram
Hey all,

I am trying to include a new feature to my email tool, which is used
for forwarding the mail to the appropriate user and storing it in a
separate queue using django_cron. Can someone tell me how to do this.
It would be very help as i have limited idea on django.
thanks in advance

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



Re: Contribute to Django

2012-02-10 Thread Gath
Sorry, had not seen that!

Thanks.

On Feb 9, 10:19 pm, yati sagade  wrote:
> Django docs explain this quite nicely :)
>
> https://docs.djangoproject.com/en/dev/internals/contributing/?from=ol...
>
>
>
>
>
>
>
>
>
> On Fri, Feb 10, 2012 at 12:46 AM, Gath  wrote:
> > Guys,
>
> > What do i need to learn/know before i start contributing to django
> > development?
>
> > Thanks
>
> > Gath
>
> > --
> > 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...@googlegroups.com.
> > For more options, visit this group at
> >http://groups.google.com/group/django-users?hl=en.
>
> --
> Yati Sagade 
>
> (@yati_itay )

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