Re: Hosting Alwaysdata: install dajax libraries

2012-01-30 Thread Praveen Krishna R
*You can always copy the source folder of the dajax or whatever app into
your project folder.*
*
*
On Mon, Jan 30, 2012 at 7:19 PM, ElDoge <eld...@gmail.com> wrote:

> Hi, I am a newbie of Django and I have to try a web application (not
> made by me, but founded in the web)  that manages the shifts rounds of
> the volunteers of my association.
>
> I installaed it into alwaysdata.com free hosting, but the web app need
> the dajax and dajaxice library. It is possible to install it in the
> free hosting? How?
>
> Thanks for you 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.
>
>


-- 
Thanks and Regards,
*Praveen Krishna R*

-- 
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: Determine gender from first name

2012-01-25 Thread Praveen Krishna R
*I don't know if there are any databases or webservices available for the
purpose. But how would you handle the exceptions ?! Like if it does not
exist in the db, and common names used across genders ?!*
*
*
On Wed, Jan 25, 2012 at 11:49 AM, Demetrio Girardi <
demetrio.gira...@gmail.com> wrote:

> This is not a django-specific question, but I couldn't find anything
> useful on the subject and have no better place to ask.
>
> Let's say I want to put "welcome {{user.first_name}}" on top of my
> template. In many languages, "welcome" has to be declined by gender. I
> have no use for the user's gender otherwise, so I don't want to ask
> for it in the registration process.
>
> How can I go about this? Is there a publicly available database of
> first names divided by language and gender? A public web-service that
> guesstimates the gender?
>
> --
> 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.
>
>


-- 
Thanks and Regards,
*Praveen Krishna R*

-- 
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: Django admin date and time picker not working

2012-01-08 Thread Praveen Krishna R
*Please check If your media files are served properly, Check either 404
messages in the console, or take View Source option in browser and click on
the media links directly which should bring the js or css or whatever
otherwise it is not serving media files I guess.*
*
*

On Sat, Jan 7, 2012 at 6:57 AM, Santiago Ingold
<santiago.ing...@gmail.com>wrote:

> I'm following the 4 part tutorial at djangoproject.com.
>
> In the 2nd part of it (https://docs.djangoproject.com/en/1.3/intro/
> tutorial02/) im configuring the admin interface, it works fine, except
> for the fact that date and time javascript pickers does not appear.
>
> I've been following the tutorial step by step, so I can't imagine what
> i'm doing wrong.
>
> Also, the widget does not appear in admin/auth/user/1/ neither
>
> Any ideas? Thanks
>
> --
> 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.
>
>


-- 
Thanks and Regards,
*Praveen Krishna R*

-- 
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: particular permission

2012-01-08 Thread Praveen Krishna R
*You can add a Foreign Key in the model to django.contrib.auth.models.User,
 and then in the views or wherever you can filter based on the request.user
object.*
*something like -> SampleModel.objects.filter(user = request.user)
*
On Sat, Jan 7, 2012 at 9:46 PM, mirco fini <mirco.f...@gmail.com> wrote:

> hi!
>
> I would like to create a site where the user can read just database
> records written by him or by his group.
> Anybody knows how can I obtain that?
>
> thanks a lot
>
> Mirco
>
> --
> 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.
>
>


-- 
Thanks and Regards,
*Praveen Krishna R*

-- 
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: Help

2012-01-07 Thread Praveen Krishna R
*I have not tried any of these social auth apps myself. Yet if you want
help with any of those packages which you tried, then you can can dump the
detail error log or whatever here and get some help. It could be some
version compatibility issues or similiar, for which there may exist some
fixes.*
*
*
On Sat, Jan 7, 2012 at 3:22 PM, coded kid <duffleboi...@gmail.com> wrote:

> Hi guys, please I need your help. I've been trying all my best for the
> past 4days in order to get django-socialauth working but still no
> success. No django social packages I haven't tried. I've downloaded up
> to 10 different social packages but none is working. Though out of
> those 10 some fail to install. I do get AttributeError: No object
> named 'clone' I using windows 7. I'm fed up with all this!! Can anyone
> share with me tips or links to a good package that will work fine?
> Thanks.
>
> --
> 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.
>
>


-- 
Thanks and Regards,
*Praveen Krishna R*

-- 
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: Cheap Django hosting?

2012-01-04 Thread Praveen Krishna R
*Did you say $2 per month for an EC2 instance ?!!
*
On Tue, Jan 3, 2012 at 7:04 PM, Timothy Makobu
<makobu.mwambir...@gmail.com>wrote:

> Hi,
>
> If you must have root (mybe Twisted is one of your dependancies? or you
> need all 65535 ports?) Amazon EC2 is a prudent choice. For example, I pay 1
> to 2 USD/m, and sometimes cents on my micro instance. They charge me for
> only what I use, and their free quotas are generous.
>
>
>
> On Tue, Jan 3, 2012 at 5:16 PM, Sid <sidmitra@gmail.com> wrote:
>
>> @alec
>>
>> If you want to go with a VPS, try http://www.lowendbox.com/
>>
>> Plenty of cheap throwaway machines, i find webfaction, new PAAS like
>> gondor, ep.io to be too restrictive. Nothing beats root access, and
>> cheaply too!
>>
>> -Sid
>> http://www.sidmitra.com
>>
>> --
>> 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/-/ckNJjXg2HsAJ.
>>
>> 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.
>



-- 
Thanks and Regards,
*Praveen Krishna R*

-- 
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 integrate django forms with django.

2011-12-16 Thread Praveen Krishna R
*Integrating jQuery and jQuery UI have nothing to do with django, that
means you don't write anything in django to get it working. They will be
considered as static files, they will be included in your html templates as
usual. *
*
*
*If you know how to include jQuery and jQueryUI into an html file, then
there is no much difference integrating them into django templates. **May
be you would prefix something like {{ MEDIA_URL }} to the src or href or
whatever parameters.*
*
*
*And the form you would be rendering in your templates will look like
something like*
*{{ form.as_table }} *
*
*
*
*
On Sat, Dec 17, 2011 at 8:11 AM, Ganesh Kumar <bugcy...@gmail.com> wrote:

> Sorry typo How to integrate django forms with jquery
>
>
> Did I learn something today? If not, I wasted it.
>
>
>
> On Sat, Dec 17, 2011 at 10:39 AM, Ganesh Kumar <bugcy...@gmail.com> wrote:
> > Hi guys,
> >
> > I am beginner of django, I have created django from, How to add with
> > jquery and jqueryUI stuff, to my from , please guide me.
> >
> > -Ganesh.
> >
> > Did I learn something today? If not, I wasted 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.
>
>


-- 
Thanks and Regards,
*Praveen Krishna R*

-- 
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 handle the URL

2011-10-16 Thread Praveen Krishna R
*You need SlugField or even check the AutoSlugField app.
*
On Sun, Oct 16, 2011 at 7:29 AM, Tsung-Hsien <jasoniem9...@gmail.com> wrote:

> I want to build a gallery which connects to different photo sets.
> I have been completed the gallery main page, however, I meet two
> problems:
> 1) Use title name of cover image as the URL of photo page, but if the
> name include blank, then The URL is not complete. For example: the
> cover image named summer days, however ,only shows summer on the URL.
>
> 2)How to build the dynamic URL connecting to each photo sets?
>
> the models as below:
>
> class Item(models.Model):
>name = models.CharField(max_length=250)
>description = models.TextField()
>
>class Meta:
>ordering = ["name"]
>
>def __unicode__(self):
>return self.name
>
>def get_cover_photo(self):
>if self.photo_set.all().count() > 0:
>return self.photo_set.all()[0].image
>else:
>return None
>
>
>
>
> class Photo(models.Model):
>item = models.ForeignKey(Item)
>title = models.CharField(max_length=100)
>image = models.ImageField(uplo
>
>
> Thanks!!
>
> --
> 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.
>
>


-- 
Thanks and Regards,
*Praveen Krishna R*

-- 
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: Uploading and viewing images problem

2011-09-20 Thread Praveen Krishna R
*Have you done something like this in your project urls.py*
*
*
*
urlpatterns += patterns('',
*
(r'^site_media/(?P.*)$',
'django.views.static.serve',{'document_root': settings.MEDIA_ROOT}),
)
So that you can enable serving the media from the development server ?!
*my MEDIA_URL = '/site_media/'*

And html from the templates
* *


On Tue, Sep 20, 2011 at 7:43 AM, Rodney Topor <r.to...@gmail.com> wrote:

> I've written a small project to upload and view images using a recent
> development version of Django.  In settings.py, I've defined
> MEDIA_ROOT = join(PATH, 'media') # the full path to the media
> subdirectory of my project directory
> MEDIA_URL = '/media/'
> I've created subdirectories /media/images in my project directory.
> I've defined my model with an ImageField(upload_to='images'), defined
> a form with enctype="multipart/form-data/", etc.
> When I create a new object with a selected image, the image is
> correctly uploaded to /media/images/.  The HTML page intended to
> display the image correctly (?) uses the following HTML element:
>  width="100" />
> The development server displays a message of the form:
> [20/Sep/2011 14:35:04] "GET /media/images/foo.jpg HTTP/1.1" 404 2218
> I.e., the image is not found and the rendered page contains only a
> query where the image should be displayed.
> So the images are being uploaded correctly, the generated HTML
> contains  elements that refer to the correct locations of the
> images, but they are not being displayed.  The image and its
> containing directories are all world-readable.
> So can someone please explain what else I have to do to make this
> work?  Many thanks.
> Rodney
>
> --
> 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.
>
>


-- 
Thanks and Regards,
*Praveen Krishna R*

-- 
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: Login based in url for user

2011-09-11 Thread Praveen Krishna R
*You can filter the objects based on user. Which means you can include a
ForeignKey to User model in your models, and save the logged in user while
saving the model. In the views, while displaying, you can filter based on
the logged-in user. So no other user get to see your objects
*
On Tue, Aug 30, 2011 at 11:57 PM, Carsten Jantzen <cars...@jantzens.net>wrote:

> Hej I am new and trying to make a login for mysite.
> I have written a basic login which validates against another site and
> is working fine atm.
>
> I would like to make the auth related to the url.
> So that user a with permission 1 can access www.test.dk/1/content but
> he is not allowed to access www.test.dk/2/content
> user 2 with permission 4 can access www.test.dk/4/content but he is
> not allowed to access www.test.dk/1/content
>
> It there a good way to solved this?
>
> Is it possible extend the or use the @login_required tag to this solution.
>
> Hope for some input so I can find a solution.
>
> Regards
> Carsten
>
> --
> 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.
>
>


-- 
Thanks and Regards,
*Praveen Krishna R*

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



tiny mce with file browser

2011-09-08 Thread Praveen Krishna R
*Hi,*
*
*
*I hope somebody have implemented a file browser with tinymce, *
*I would like to know what module you used to implement it. *
*I don't want to use Grappelli to get this feature.*
*comments ?
*

-- 
Thanks and Regards,
*Praveen Krishna R*

-- 
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: time part of datetime not saved

2011-09-05 Thread Praveen Krishna R
*dump your code ?! *
*BTW, *
*You can set auto_now_add = true in the model, which will assign the current
datetime, while saving without any code at all.
*
On Mon, Sep 5, 2011 at 11:54 AM, het.oosten <het.oos...@gmail.com> wrote:

> I have a model start = models.DateTimeField()
>
> In my view I create a datetime:
> x = datetime.datetime(*(time.strptime(str(component.get('dtstamp')),'%Y
> %m%dT%H%M%SZ')[0:6])) .
>
> This return a valid datetime:
> >>> x
> datetime.datetime(2011, 9, 4, 8, 45, 32)
>
> The problem is that only the date part is saved in the database. The
> time is saved as zero's:
> >>> db.created
> datetime.datetime(2011, 9, 4, 0, 0)
>
> Do i need to convert the date before saving it into the database?
>
> --
> 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.
>
>


-- 
Thanks and Regards,
*Praveen Krishna R*

-- 
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: Django Development environment

2011-08-24 Thread Praveen Krishna R
On Windows
Notepad++, django development server, sqlite3, south

On Ubuntu
Vim, MySQL, south, virtualenv


-- 
Thanks and Regards,
*Praveen Krishna R*

-- 
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 an app independent on a specific site?

2011-08-24 Thread Praveen Krishna R
*Even if you write

from models import Publisher, Book, Author

its gonna work, inside the books application;
*
On Wed, Aug 24, 2011 at 7:09 AM, Jim <jianbao@gmail.com> wrote:

> Greetings, everyone.
>
> I am new to Django, and much of my knowledge comes from the Django book
> version 2 <http://www.djangobook.com/en/2.0/>. In the book, a site,
> mysite, is created for demo purposes. And an app, books, is also created for
> demo purposes. In the file, mysite/books/admin.py, there is a line like
> this:
>
>
> from mysite.books.models import Publisher, Author, Book
>
> It seems to me that this line makes the app dependent on the name of the
> site, which is mysite. There is a possibility that an app you have developed
> for a site might turn out to have generic use. So, I think it is a good idea
> to always keep an app independent on the site as much as possible.
>
> Here is the question. Is it possible that to store the site name into a
> variable, such as site_name, then construct a statement like the following?
>
> statement = 'from ' + site_name + '.books.models import Publisher' 
> exec(statement)
> # I am not sure if exec is a legitimate function. Here is just an example
>
>
>
>
>
>
>
>
>  --
> 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/-/Jn_07ca2t6MJ.
> 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.
>



-- 
Thanks and Regards,
*Praveen Krishna R*

-- 
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: Help installing django-sentry

2011-08-22 Thread Praveen Krishna R
*(I have never used the package you mentioned. )
Do you think you have configured the urls ( /sentry in your case ) for the
django-sentry !?
*
On Sun, Aug 21, 2011 at 11:18 PM, tharshan muthulingam <tharsha...@gmail.com
> wrote:

> Hi,
> I have been having alot of trouble trying to install and run django-sentry.
> My project directory is ~/django_projects/Project
>
> Inside there i have the simple polls app from the tutorial, and I have
> installed sentry using pip. I have added it to the list of installed apps.
>
> When I go to the sentry directory I got this error:
> http://127.0.0.1:8000/sentry/
>
> ViewDoesNotExist at /sentry/Tried result in module polls.views. Error was:
> 'module' object has no attribute 'result'
>
> I honestly have no clue what that means, and I would really appreciate some
> help with fixing this.
>
> Thank you!!
>
> --
> 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/-/XAczs-79BVMJ.
> 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.
>



-- 
Thanks and Regards,
*Praveen Krishna R*

-- 
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 create a sub-app directly

2011-08-21 Thread Praveen Krishna R
*Is there  a concept of sub-apps exist in Django !?*
*I knew some concepts like independant reusable apps.*
*You can easily handle the rest with your urls right ?! correct me?
*
On Sun, Aug 21, 2011 at 6:27 PM, Subhranath Chunder <subhran...@gmail.com>wrote:

> Extend the manage.py functionality, by adding your custom command.
> https://docs.djangoproject.com/en/dev/howto/custom-management-commands/
>
>
> On Sun, Aug 21, 2011 at 8:52 PM, Jim <jianbao@gmail.com> wrote:
>
>> Hello folks,
>>
>> Here is the story. I created a site, mysite, with this command django-admin
>> startproject mysite. Then, under the directory mysite/, I created an app
>> named apps with this command ./manage.py startapp apps. apps is meant to
>> hold all applications for mysite. Now, here comes the question:
>> *How do I create a sub-app under apps with manage.py directly?*
>>
>> I tried
>> ../manage.py startapp someapp
>> under apps/, but that created the someapp under mysite/ rather than under
>> apps/.
>>
>> I also tried
>> ./manage.py startapp apps/someapp
>> and
>> ./manage.py startapp apps.someapp
>> under mysite/, but neither worked.
>>
>> So, my current work-around is to create a sub-app under mysite/ first,
>> then move it into apps/ manually. But that seems dumb, and I suspect there
>> is a simpler way to do this.
>>
>> Thanks for reading this. Any help is certainly appreciated.
>>
>> Jim
>>
>> --
>> 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/-/QtvEmvU5QvMJ.
>> 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.
>>
>
>
>
> --
> Thanks,
> Subhranath Chunder.
> www.subhranath.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.
>



-- 
Thanks and Regards,
*Praveen Krishna R*

-- 
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: spam in response to posting to this list

2011-08-10 Thread Praveen Krishna R
*+1
*
On Wed, Aug 10, 2011 at 7:32 PM, Kayode Odeyemi <drey...@gmail.com> wrote:

> I have been getting this too.
>
>
> On Wed, Aug 10, 2011 at 5:15 PM, Tom Evans <tevans...@googlemail.com>wrote:
>
>> On Wed, Aug 10, 2011 at 5:06 PM, Eric Hutchinson
>> <eric.hutchin...@burgopakusa.com> wrote:
>> > I responded to the thread about ordering tables, and got this as a
>> > response
>> >
>>
>> I reported the same thing a couple of days ago. Russell Keith-Magee is
>> aware of the issue (he gets them too), but it seems almost impossible
>> to track down a specific subscriber from the info in that email.
>>
>> 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.
>>
>>
>
>
> --
> Odeyemi 'Kayode O.
> http://www.sinati.com. t: @charyorde
>
>
>  --
> 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.
>



-- 
Thanks and Regards,
*Praveen Krishna R*

-- 
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: dull look after install on ubuntu

2011-08-10 Thread Praveen Krishna R
*please dump your *settings.py ?!

On Wed, Aug 10, 2011 at 5:53 AM, Peter Kovgan <peter.kov...@gmail.com>wrote:

> Thank you guys.
>
> I use development server of django(manage.py runserver).
>
> I created an app. from the official site of the django, this one of the
> first tutorial.
>
> I did it on windows installation.
>
> Then I came home, installed the same app on ubuntu.
>
> Now my conf is:
>
> > django 1.3
> > on python 2.7.1
> > ubuntu 11.04
> > looking through firefox 4
>
> and it stopped show "stattic content"
>
> HERE IS COLLECTSTATIC::
>
> peter@peter-big:~/work/django/projects/src/mysite$ python manage.py
> collectstatic
> Traceback (most recent call last):
>   File "manage.py", line 14, in 
> execute_manager(settings)
>   File
> "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py",
> line 438, in execute_manager
> utility.execute()
>   File
> "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py",
> line 379, in execute
> self.fetch_command(subcommand).run_from_argv(self.argv)
>   File
> "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py",
> line 261, in fetch_command
> klass = load_command_class(app_name, subcommand)
>   File
> "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py",
> line 68, in load_command_class
> return module.Command()
>   File
> "/usr/local/lib/python2.7/dist-packages/django/contrib/staticfiles/management/commands/collectstatic.py",
> line 41, in __init__
> self.storage = get_storage_class(settings.STATICFILES_STORAGE)()
>   File
> "/usr/local/lib/python2.7/dist-packages/django/contrib/staticfiles/storage.py",
> line 23, in __init__
> raise ImproperlyConfigured("You're using the staticfiles app "
> django.core.exceptions.ImproperlyConfigured: You're using the staticfiles
> app without having set the STATIC_ROOT setting.
>
> I tried to resolve it myself, but nothing has worked.
>
> I used answers to another threads, but probably my installation is somehow
> different.
>
> What exactly I specify in MEDIA_ROOT = ''" ?
>
> Thank you.
>
>
>
>
>
>
>
>
> On 10 August 2011 00:29, Gelonida N <gelon...@gmail.com> wrote:
>
>> On 08/09/2011 09:58 PM, Peter Kovgan wrote:
>> > django 1.3
>> > on python 2.7.1
>> > ubuntu 11.04
>> > looking through firefox 4
>> >
>> > Dull look, like all javascript has been removed
>> > On windows looks nice, but here all works, but no colors, no styles,
>> > nothing...
>> >
>> > What could it be?
>>
>>
>> Well you don't really give a lot of info, so my guess might be
>> completely wrong.
>>
>>
>> Do you use the django development server (  manage.py runserver) or do
>> you run with apache / some existing server?
>>
>> Did you run the command "manage.py collectstatic"?
>>
>>
>>
>> --
>> 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.
>



-- 
Thanks and Regards,
*Praveen Krishna R*

-- 
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: Run an application periodically on django

2011-08-04 Thread Praveen Krishna R
*If you are on Linux machine, you can use cron jobs to schedule the jobs.*
*
*
*When I faced such a problem what I did was, I created a view to update my
site with a secret Url. I have scheduled a cron job to call this url. So
when the view gets called (with "curl" command I'm correct), the site gets
updated. **I can call this url from a browser also, anytime. **There should
be definitely  better methods of doing this, like importing django to make a
standalone app or something?! I haven't tried it yet!*
*
*
*
*
*On djcelery, I think you need to configure RabbitMQ or something to work
with!? correct me Kenneth, if I'm wrong. *

On Thu, Aug 4, 2011 at 8:12 AM, Mohamed Ghoneim <ghooo.gh...@gmail.com>wrote:

> Hey guys,
>
> I am new to djnago and I have heard a lot about its powerful capabilities,
> so I preferred it over other web frameworks.
>
> My problem is I have a webpage that its content should be updated
> automatically every 30 seconds as I build an app that gets data from another
> web page
> and parse it and then updates my webpage.
>
> My problem is how can I schedule this this app to run every 30 seconds? and
> can I do this on a hosting website?
> --
> Mohamed Sayed Ghoneim
>
>  --
> 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.
>



-- 
Thanks and Regards,
*Praveen Krishna R*

-- 
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: User based objects

2011-07-08 Thread Praveen Krishna R
*Shawn, Once again **thank you very much for your help,
*
*here is my code, if anybody could make use of it (I have changed my actual
model/form names)! *
*
*
*
class SampleForm(forms.Form):
head = forms.CharField()
body = forms.CharField(widget = forms.Textarea)
def __init__(self, *args, **kwargs):
self.user = kwargs.pop("user")
super(SampleForm, self).__init__(*args, **kwargs)
self.fields['mychoicefield'] = forms.ModelChoiceField(queryset =
MySampleModel.objects.filter(user__username__iexact = self.user.username))

in the view I use
new_form = SampleForm(user = request.user)
**

*
On Fri, Jul 8, 2011 at 8:36 PM, Shawn Milochik <sh...@milochik.com> wrote:

> On Fri, Jul 8, 2011 at 10:28 AM, Praveen Krishna R
> <rpraveenkris...@gmail.com> wrote:
> > Thank you, Shawn, I didn't knew that! I'm trying on that way now!
> >
>
> You're welcome. The one 'gotcha' is that you're going to have to
> remove the user from the kwargs before you call the __init__ of the
> superclass. Otherwise you'll get an 'unexpected keyword argument'
> exception.
>
> Example:
>
>
>def __init__(self, *args, **kwargs):
>
>self.user = kwargs.pop('user')
>
>super(MyForm, self).__init__(*args, **kwargs)
>
>
> You can then use self.user in your form's functions for filtering --
> probably starting right in __init__ after the super() call to set
> self.fields['field_name'].choices to be whatever they should be.
>
> --
> 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.
>
>


-- 
Thanks and Regards,
*Praveen Krishna R*

-- 
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: User based objects

2011-07-08 Thread Praveen Krishna R
*Thank you, Shawn, I didn't knew that! I'm trying on that way now!
*
On Fri, Jul 8, 2011 at 6:52 PM, Shawn Milochik <sh...@milochik.com> wrote:

> You can certainly pass request.user to the form from your view.
>
> --
> 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.
>
>


-- 
Thanks and Regards,
*Praveen Krishna R*

-- 
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 based objects

2011-07-08 Thread Praveen Krishna R
*Hi,
*
*
*
*This is one of my Model which has an owner, column - user.*
*
*
*
class MiscList(models.Model):
name = models.CharField(max_length= 30)
user = models.ForeignKey(User);
count = models.IntegerField()
createdate = models.DateTimeField(auto_now_add = True)
**
def __unicode__(self):
**
return self.name

*
*
In one of my forms I would like to have this list filtered by the currently
logged in user.
Anyone of you have solved a scenario like this.
Since this is not a view I am not able to pass request.user object to the
form, in any way, what is the
preferred way of doing this ?
*
*
*
-- 
Thanks and Regards,
*Praveen Krishna R*

-- 
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: Trying to keep upload filename from disappearing - with python 2.7.1/django 1.2.4

2011-06-12 Thread Praveen Krishna R
*Perhaps you should try validating the other fields with javascript/jQuery
?!, *
*If it is something like Required Field validations...
*
On Fri, Jun 10, 2011 at 6:37 PM, djangobeginner <henryversem...@yahoo.com>wrote:

> I'm new to django and python but I'm working on a new screen for a
> project I'm on. The screen is supposed to capture a bunch of text
> information as well as allow a user to browse and select a file on
> their local machine for uploading. I'm having a problem with the
> filename disappearing from the selected filename textbox, whenever I
> submit the screen to begin uploading the file and I have an error on
> the screen. If I have an error on the screen the screen is returned
> showng an error message, but without the original filename selected
> being displayed (empty filename textbox), which will force the user to
> reselect the file again. Has anyone had this problem before, and if so
> how do I prevent the filename from disappearing? I have tried making a
> copy of the request.FILES similar to the way I have done previously
> with a request.POST (request.POST.copy()) capturing the filename data
> when entering my view, but when I try to add it back to the
> request.FILES by doing this in my error logic branch:
>
> request.FILES['filename'] = filename
>
> I get an AttributeError exception "can't set attribute". So since this
> doesn't work what is the proper way to do this?
>
> --
> 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.
>
>


-- 
Thanks and Regards,
*Praveen Krishna R*

-- 
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: Django solved tutorial for download??

2011-06-09 Thread Praveen Krishna R
I don't understand what you mean by "django tutorial solved"
There is a tutorial which gets you up and running with django, if you are a
beginner. and its here ! https://docs.*django*
project.com/en/dev/intro/tutorial01/<https://docs.djangoproject.com/en/dev/intro/tutorial01/>
*
*
On Wed, Jun 8, 2011 at 5:09 PM, Pardini Andres <unpar...@gmail.com> wrote:

> Hi guys,
>
> I am looking for django tutorial solved, for downloading
>
> If anyone has a link, please share it :)
>
> Cheers!!
>
> --
> 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.
>
>


-- 
Thanks and Regards,
*Praveen Krishna R*

-- 
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: Preview for the new website..

2011-06-06 Thread Praveen Krishna R
*If you are a developer (with much less designing skills) and want to get up
and running with your site, **then I would suggest you to go and buy an html
template and integrate it with **django. I recommend themeforest.com (I'm
not affiliated with them anyways!). **Playing with html templates will make
you comfortable with html/css eventually.*

On Sun, Jun 5, 2011 at 9:52 AM, raj <nano.ri...@gmail.com> wrote:

> I'm a very beginner developer. I'm just wondering how you got the
> actual styling together? Did you bang all that out with photoshop/css/
> javascript or something? Cause I want to make a website, but I don't
> know if I should go ahead and learn this way, or if there is an easier
> way. Thank you.
> -Raj
>
> On Jun 4, 7:58 am, Shamail Tayyab <pleoma...@gmail.com> wrote:
> > Hi guys,
> >
> >From some time I've been working on thishttp://tunesdiary.com
> > which is now running live on Django.
> >
> > It was a cool learning experience with my first site in Django after I
> > came in from rails background and this group had been real supporting
> > to me (thanks for the support guys, this is one real active group).
> > Few things that I liked about Django are:
> >
> > * ORM/Signals - definitely makes your life so simple..
> > * Inbuilt support for authentication and its applicability..
> > * Middleware approach towards design..
> > * Powerful templating - especially the templatetags thing.
> > * And a lot more..
> >
> > I'ld like you to review my work and do tell me the goods and more
> > important, the bads..
> >
> > With best regards
> >
> > --
> > Shamail Tayyab
> >
> > P.S The site uses Facebook to login (as of now), I definitely has a
> > lot of plans to fix that, but being alone on this work is not
> > permitting time to get around to add standard login and some other
> > contexts like twitter/openID.
>
> --
> 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.
>
>


-- 
Thanks and Regards,
*Praveen Krishna R*

-- 
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: Serving static file on Windows

2011-05-31 Thread Praveen Krishna R
*Pasting one of my earlier replies to the same question*
***
*
*Please check django official docs to find out how static files are served
on production and development server.

in the dev server include a similiar snippet into your projects
urls.py, urlpatterns:

(r'^site_media/(?P.*)$', 'django.views.static.serve',{'document_root':
'D:/djangoprojects/praveensprofile/templates/static'}),

and in the templates something similar to the below text.


*
On Mon, May 30, 2011 at 1:57 PM, Alagu Madhu <alma...@gmail.com> wrote:

> urls.py
>
> from django.conf.urls.defaults import patterns, include, url
>
>
> urlpatterns = patterns('',
>(r'^$', 'hydra.views.index'),
>)
>
>
>
>
>
>
> On May 30, 12:28 pm, Praveen Krishna R <rpraveenkris...@gmail.com>
> wrote:
> > *could you dump your urls.py ?
> > *
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > On Mon, May 30, 2011 at 12:19 PM, Alagu Madhu <alma...@gmail.com> wrote:
> > > Hi,
> >
> > > sample/
> > > static/
> > >js/jquery.1.6.1.min.js
> > > css/
> >
> > > settings.py
> >
> > > APP_DIR = os.path.abspath(os.path.dirname(__file__))
> > > STATIC_ROOT = os.path.join(APP_DIR, 'static/')
> > > STATIC_URL = '/static/'
> > > INSTALLED_APPS = (
> > >'django.contrib.auth',
> > >'django.contrib.contenttypes',
> > >'django.contrib.sessions',
> > >'django.contrib.sites',
> > >'django.contrib.messages',
> > >'django.contrib.staticfiles',
> > > )
> >
> > > urls.py
> >
> > > urlpatterns = patterns('',
> > >(r'^$', 'hydra.views.index'),
> > > )
> >
> > >http://192.168.1.141:44/static/js/jquery.1.6.1.min.js
> >
> > > Page not found (404)
> > > 'js\jquery.1.6.1.min.js' could not be found
> >
> > > Thanks
> >
> > > Madhu
> >
> > > On May 24, 9:44 pm, shofty <m...@shofty.me> wrote:
> > > > ignore that last comment, im clearly behind a version!
> >
> > > > not sure why you're needing to static.serve the static files, if
> > > > you're on django 1.3 it does that bit for you.
> >
> > > > On May 24, 9:22 am, AlaguMadhu<alma...@gmail.com> wrote:
> >
> > > > > Hi,
> >
> > > > > sample/
> > > > >   media/
> > > > > js/jquery.1.6.1.min.js
> > > > >  css/
> > > > >static/
> > > > > js/jquery.1.6.1.min.js
> > > > >  css/
> >
> > > > > settings.py
> >
> > > > > import os
> > > > > PROJECT_DIR = os.path.abspath(os.path.dirname(__file__))
> > > > > MEDIA_ROOT = os.path.join(PROJECT_DIR, 'media/')
> > > > > MEDIA_URL = '/media/'
> > > > > STATIC_ROOT = os.path.join(PROJECT_DIR, 'static/')
> > > > > STATIC_URL = '/static/'
> >
> > > > > urls.py
> >
> > > > > urlpatterns = patterns('',
> > > > > (r'^media/(?P.*)$', 'django.views.static.serve',
> > > > > {'document_root': settings.MEDIA_ROOT}),
> > > > > (r'^static/(?P.*)$', 'django.views.static.serve',
> > > > > {'document_root': settings.STATIC_ROOT}),
> >
> > > > >http://192.168.1.141:44/static/js/jquery.1.6.1.min.js
> >
> > > > > Page not found (404)
> > > > > 'js\jquery.1.6.1.min.js' could not be found
> >
> > > > > Thanks
> >
> > > > >Madhu
> >
> > > --
> > > 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.
> >
> > --
> > Thanks and Regards,
> > *Praveen Krishna R*
>
> --
> 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.
>
>


-- 
Thanks and Regards,
*Praveen Krishna R*

-- 
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: Serving static file on Windows

2011-05-30 Thread Praveen Krishna R
*could you dump your urls.py ?
*
On Mon, May 30, 2011 at 12:19 PM, Alagu Madhu <alma...@gmail.com> wrote:

> Hi,
>
> sample/
> static/
>js/jquery.1.6.1.min.js
> css/
>
> settings.py
>
> APP_DIR = os.path.abspath(os.path.dirname(__file__))
> STATIC_ROOT = os.path.join(APP_DIR, 'static/')
> STATIC_URL = '/static/'
> INSTALLED_APPS = (
>'django.contrib.auth',
>'django.contrib.contenttypes',
>'django.contrib.sessions',
>'django.contrib.sites',
>'django.contrib.messages',
>'django.contrib.staticfiles',
> )
>
> urls.py
>
> urlpatterns = patterns('',
>(r'^$', 'hydra.views.index'),
> )
>
> http://192.168.1.141:44/static/js/jquery.1.6.1.min.js
>
> Page not found (404)
> 'js\jquery.1.6.1.min.js' could not be found
>
>
> Thanks
>
> Madhu
>
>
>
>
> On May 24, 9:44 pm, shofty <m...@shofty.me> wrote:
> > ignore that last comment, im clearly behind a version!
> >
> > not sure why you're needing to static.serve the static files, if
> > you're on django 1.3 it does that bit for you.
> >
> > On May 24, 9:22 am, AlaguMadhu<alma...@gmail.com> wrote:
> >
> >
> >
> >
> >
> >
> >
> > > Hi,
> >
> > > sample/
> > >   media/
> > > js/jquery.1.6.1.min.js
> > >  css/
> > >static/
> > > js/jquery.1.6.1.min.js
> > >  css/
> >
> > > settings.py
> >
> > > import os
> > > PROJECT_DIR = os.path.abspath(os.path.dirname(__file__))
> > > MEDIA_ROOT = os.path.join(PROJECT_DIR, 'media/')
> > > MEDIA_URL = '/media/'
> > > STATIC_ROOT = os.path.join(PROJECT_DIR, 'static/')
> > > STATIC_URL = '/static/'
> >
> > > urls.py
> >
> > > urlpatterns = patterns('',
> > > (r'^media/(?P.*)$', 'django.views.static.serve',
> > > {'document_root': settings.MEDIA_ROOT}),
> > > (r'^static/(?P.*)$', 'django.views.static.serve',
> > > {'document_root': settings.STATIC_ROOT}),
> >
> > >http://192.168.1.141:44/static/js/jquery.1.6.1.min.js
> >
> > > Page not found (404)
> > > 'js\jquery.1.6.1.min.js' could not be found
> >
> > > Thanks
> >
> > >Madhu
>
> --
> 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.
>
>


-- 
Thanks and Regards,
*Praveen Krishna R*

-- 
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: markup

2011-05-29 Thread Praveen Krishna R
*I have used tiny_mce with django.
*
On Sat, May 28, 2011 at 3:34 PM, Vladimir <veva...@yandex.ru> wrote:

> Has anyone any experience in CKeditor or tinymce using with django ?
>
> On 26 май, 20:25, Oscar Carballal <piz...@gmail.com> wrote:
> > 2011/5/26 Brett Parker <idu...@sommitrealweird.co.uk>:
> >
> > > On 26 May 08:27, Vladimir wrote:
> > >> Is there a tool to transform MS WORD file into HTML ? I know there is
> > >> markdown and textile, but I would prefer MS WORD.
> >
> > >http://wvware.sourceforge.net/
> >
> > > --
> > > Brett Parker
> >
> > Alsohttp://ginstrom.com/software/doc2html/
>
> --
> 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.
>
>


-- 
Thanks and Regards,
*Praveen Krishna R*

-- 
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: Reload a view pass X seconds

2011-05-29 Thread Praveen Krishna R
*This you could achieve with a javascript/jQuery snippet on the page.
*
On Sun, May 29, 2011 at 10:03 AM, javier <mithrand...@gmail.com> wrote:

> Hi,
>
> I'm developing a django project and I want to put a chronometer in one
> of my pages, so pass X seconds the view will be reload again.
>
> Can anyone help me?
>
> --
> 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.
>
>


-- 
Thanks and Regards,
*Praveen Krishna R*

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



Anyone using google closure library with django?

2011-05-24 Thread Praveen Krishna R
Hi guys,


Anybody here use closure library from google.  ?
How do u compare it to jQuery ?
I have used jQuery only yet



-- 
Thanks and Regards,
*Praveen Krishna R*

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



django deployment

2011-05-19 Thread Praveen Krishna R
*Hey,
*
*
*
*This Regarding the static file serving, What I understood, after reading
some docs on the internet is,*
*
*
*Keep a server like Nginx as a front end proxy infront of Apache, and nginx
 also serves the Static Files, *
*(please correct me if I am wrong.)
*
*
*
*My Question is If I use the Amazon CloudFront to serve the files, Do I need
to still keep the nginx there ?!*
*
*
-- 
Thanks and Regards,
*Praveen Krishna R*

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



App engine serving static files?

2011-02-15 Thread Praveen Krishna R
*Hey Guys,*
*
*
*Does Anyone has experience, serving static content with google app engine?*
*Does it make a big difference, than serving it with nginx on the same
server as django?*
*I currently use a shared hosting, and was just thinking to move the static
content to GAE*
*I would like to know your thoughts on this*
*
*
-- 
Thanks and Regards,
*Praveen Krishna R*

-- 
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: images

2011-02-15 Thread Praveen Krishna R
*plz Check django official docs to find out how static files are served on
production and development server.*
*
*
*in the dev server include a similiar snippet into your projects
urls.py, urlpatterns:*
*
*
*(r'^site_media/(?P.*)$',
'django.views.static.serve',{'document_root':
'D:/djangoprojects/praveensprofile/templates/static'}),*
*
*
***and in the templates something similar to the below text.*
*
*
*
*
*
*
On Tue, Feb 15, 2011 at 1:07 PM, Szabo, Patrick (LNG-VIE) <
patrick.sz...@lexisnexis.at> wrote:

> How do i check the logs !?
> I'm using the integrated webserver.
>
> Kind regards
>
>
> . . . . . . . . . . . . . . . . . . . . . . . . . .
> Patrick Szabo
>  XSLT-Entwickler
> LexisNexis
> Marxergasse 25, 1030 Wien
>
> mailto:patrick.sz...@lexisnexis.at
> Tel.: +43 (1) 534 52 - 1573
> Fax: +43 (1) 534 52 - 146
>
>
> -Ursprüngliche Nachricht-
>
> Von: django-users@googlegroups.com [mailto:django-users@googlegroups.com]
> Im Auftrag von Kenneth Gonsalves
> Gesendet: Dienstag, 15. Februar 2011 11:05
> An: django-users@googlegroups.com
> Betreff: Re: images
>
> On Tue, 2011-02-15 at 11:00 +0100, Szabo, Patrick (LNG-VIE) wrote:
> > Unfortunately i only get the "alt text" shown and not the image.
> > The image is in the same directory as the template.
>
> check your logs to see where it is searching for your image
> --
> regards
> KG
> http://lawgon.livejournal.com
> Coimbatore LUG rox
> http://ilugcbe.techstud.org/
>
> --
> 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.
>
>


-- 
Thanks and Regards,
*Praveen Krishna R*

-- 
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: Having trouble synchronizing the database, can someone help?

2011-02-14 Thread Praveen Krishna R
*Please try delete and recreate the database and do the syncdb again, *
*if you are learning. **If you are in production, use South for django, for
the schema migration.*

On Tue, Feb 15, 2011 at 10:06 AM, Chen Xu <xuche...@gmail.com> wrote:

> Hi, everyone:
> I have a question about Django models,
> so I created a Model:
>
> class Person(models.Model):
> name = models.CharField(max_length=60)
>
> and ran the follwing:
>
>python manage.py syncdb
>
>   this successfully did what I want, but later on, I added a new field into
> a model
>
> class Person(models.Model):
> GENDER_CHOICES = (
> (u'M', u'Male'),
> (u'F', u'Female'),
> )
> name = models.CharField(max_length=60)
> gender = models.CharField(max_length=2, choices=GENDER_CHOICES)
>
> and I tried to run:
>  python manage.py syncdb again to sync my database, but it does not do it:
>
> So I am wondering if it is because since Person model already exists, it
> will just simply ignore  checking if the field changes.
> And what I should do to sync the database?
>
>
> Thanks
>
>
>
>
> --
> ⚡ Chen Xu ⚡
>
> --
> 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.
>



-- 
Thanks and Regards,
*Praveen Krishna R*

-- 
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: Looking for IDE + FTP

2011-02-13 Thread Praveen Krishna R
*+1 Notepad++
*
On Sun, Feb 13, 2011 at 2:46 PM, Ori Livneh <ori.liv...@gmail.com> wrote:

> Karen,
>
> Windows lets you mount FTP and WebDAV shares. Linux additionally has SSHFS.
> (Less likely to be useful, but also worth mentioning, are SMB and NFS.)
> These are all good ways to have a remote folder behave as though it were a
> folder or a drive on your local computer, which allows you to use pretty
> much any editor you like to remote edit files. Googling any of these terms
> will produce helpful howtos.
>
> vim is wonderful, but has a rather steep learning curve.
>
> Notepad++ is a capable and free text editor has an FTP plugin.
> See
> http://sourceforge.net/apps/mediawiki/notepad-plus/index.php?title=Plugin_Central
>
>
> <http://sourceforge.net/apps/mediawiki/notepad-plus/index.php?title=Plugin_Central>
> Best,
> Ori
>
>
> On Sun, Feb 13, 2011 at 5:02 AM, Cal Leeming [Simplicity Media Ltd] <
> cal.leem...@simplicitymedialtd.co.uk> wrote:
>
>> Aptana looks nice, PYCharm looks a bit ugly :/
>>
>>
>> On Sat, Feb 12, 2011 at 5:10 PM, Dylan McCurry <notjoesm...@gmail.com>wrote:
>>
>>> I personally use Coda and love it.  Built in ftp, terminal, css
>>> editor, and code editor.
>>>
>>> On Feb 8, 3:30 pm, Karen McNeil <karenlmcn...@gmail.com> wrote:
>>> > I have three Django sites that I've been working on recently and I've
>>> > been doing most of the development work in Dreamweaver.  I don't use
>>> > any of the wysiwyg features (or, pretty much, any of the Dreamweaver
>>> > program features), but I like it because I can do all the the code
>>> > edits and the FTP transfers all in one program.  I like being able to
>>> > grab a remote file, make some code changes, save and upload all at
>>> > once, and view a nice graphical display of the file structure for the
>>> > local and remote sites.
>>> >
>>> > Problem is, Dreamweaver's code view is definitely not built for
>>> > Python, and it doesn't look like they have any plans to support it any
>>> > time in the foreseeable future.  Which means that I get no color-
>>> > coding of the code, and I'm constantly getting indentation errors.
>>> >
>>> > I've always had Dreamweaver on my computer (a Mac) and so have never
>>> > used a separate FTP program, and the only IDE I've ever used is IDLE.
>>> > I used IDLE when I was first learning Python, but now that I'm working
>>> > with the websites, I find it much more convenient to just open the
>>> > files from within DW.  Does anyone know of another, Python-friendly,
>>> > program that I could use for both code-editing and ftp?
>>> >
>>> > Thanks,
>>> > Karen
>>>
>>> --
>>> 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.
>>
>
>  --
> 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.
>



-- 
Thanks and Regards,
*Praveen Krishna R*

-- 
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: looking cheap Python/Django/mySQL hosting

2011-01-26 Thread Praveen Krishna R
*webfaction.com is also good, you can go live with your app in minutes.*
*See http://djangofriendly.com for a list of django friendly web hosts...
*
On Wed, Jan 26, 2011 at 4:20 PM, Jonas Geiregat <jo...@geiregat.org> wrote:

>
>
>
> > for small project.
> >
>
> I use djangoeurope.com. They have server in Paris and Zurich.
>
>
>
> --
> 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<django-users%2bunsubscr...@googlegroups.com>
> .
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>


-- 
*Praveen Krishna R*

-- 
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: looking cheap Python/Django/mySQL hosting

2011-01-26 Thread Praveen Krishna R
Free hosting @  *http://www.alwaysdata.com/*

On Wed, Jan 26, 2011 at 8:36 AM, GSV <svyatoslav.zhurov...@gmail.com> wrote:

> for small project.
>
> Thank you
>
> --
> 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<django-users%2bunsubscr...@googlegroups.com>
> .
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>


-- 
*Praveen Krishna R*

-- 
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: ForeignKey to User

2011-01-18 Thread Praveen Krishna R
*Thank You
*
On Tue, Jan 18, 2011 at 12:08 PM, Ivo Brodien <i...@brodien.de> wrote:

>
> from the 
> docs<http://docs.djangoproject.com/en/dev/ref/models/fields/#django.db.models.ForeignKey.related_name>
> :
>
> If you'd prefer Django didn't create a backwards relation, set
> related_name to '+'. For example, this will ensure that the Usermodel
> won't get a backwards relation to this model:
>
> If your Model is called: MyModel then you could do for a user instance:
>
> user.mymodel_set , but if you define a '+’ as related_name, you can’t
> because django does not create the ‘reverse relationship’
>
>
>
>
> On 18.01.2011, at 10:00, Praveen Krishna R wrote:
>
> *Hi,*
> *
> *
> *Could any of you tell me about the things which I should take care while
> defining a *
> *foreign key to User model. ? *
> *
> *
> *Do I need to define the related_name ='+' as it says in the
> documentation? and what does it do?*
> *
>
> user = models.ForeignKey(User, related_name='+')
>
>  *
> --
> *Praveen Krishna R*
>
>
> --
> 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<django-users%2bunsubscr...@googlegroups.com>
> .
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>



-- 
*Praveen Krishna R*

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



ForeignKey to User

2011-01-18 Thread Praveen Krishna R
*Hi,*
*
*
*Could any of you tell me about the things which I should take care while
defining a *
*foreign key to User model. ? *
*
*
*Do I need to define the related_name ='+' as it says in the documentation?
and what does it do?*
*

user = models.ForeignKey(User, related_name='+')

*
-- 
*Praveen Krishna R*

-- 
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: GROUP BY fields appearance, bug or feature?

2011-01-16 Thread Praveen Krishna R
*First of all did you try accessing the email subject with a dotted
notation?*
try
u = User.objects.all()
and
u[0].subject


On Sun, Jan 16, 2011 at 12:53 PM, Jari Pennanen <jari.penna...@gmail.com>wrote:

> Hi!
>
> Suppose following model:
>
> class UserEmail(models.Model):
>"""User email"""
>
>user = models.ForeignKey(User, db_index=True,
> null=True, blank=True, editable=False)
>"""User recieving the email"""
>
>added = models.DateTimeField(_("added"), auto_now_add=True)
>"""Added to database"""
>
>subject = models.CharField(_('subject'), max_length=128)
>"""Subject"""
>
>message = models.TextField(_('message'))
>"""Message"""
>
> How can I retrieve list of users and their latest email subject?
>
> This almost works:
>
> User.objects.all()\
>  .annotate(latest_email_added=Max('useremail__added'))
>
> But it does not give me the other fields of latest email such as
> subject, so I try to add other fields using extra:
> User.objects.all()\
>  .annotate(latest_email_added=Max('useremail__added'))\
>  .extra(select={'email_subject' : 'myapp_useremail.subject'})
>
> Suddenly it adds a GROUP BY to the query with a long list of fields
> that should not be there, which breaks everything, now I get multiple
> rows per user which is not wanted.
>
> If I try to modify the group_by manually, like this:
> a = User.objects.all()\
>  .annotate(latest_email_added=Max('useremail__added'))\
>  .extra(select={'email_subject' : 'dmusic_useremail.subject'});
> a.query.group_by = [('auth_user', 'id')];
> print a.query
>
> There is still one extra field in group by making it break:
> ... GROUP BY "auth_user"."id", (dmusic_useremail.subject)
>
> Can someone elaborate this behavior?
>
> Any help is appreciated, thanks!
>
> --
> 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<django-users%2bunsubscr...@googlegroups.com>
> .
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>


-- 
*Praveen Krishna R*

-- 
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: Problem with DJANGO_SETTINGS_MODULE is undefined

2011-01-15 Thread Praveen Krishna R
*try *
*manage.py runserver
*
On Sat, Jan 15, 2011 at 10:58 AM, Chen Xu <xuche...@gmail.com> wrote:

> Hi, Django developers:
> I am very new here, trying to set up my Django
> I have a project called 'mysite'
> when I run:
> $ django-admin.py runserver
>
> the terminal gives:
> Error: Settings cannot be imported, because environment variable
> DJANGO_SETTINGS_MODULE is undefined
>
> then I tried this:
> $ export DJANGO_SETTINGS_MODULE=mysite.settings
>
> the terminal then gives me:
> django-admin.py runserverError: Could not import settings 'mysite.settings'
> (Is it on sys.path? Does it have syntax errors?): No module named
> mysite.settings
>
>
> can anyone help me with this?
>
> Thanks very much
>
>
>
>
>  --
> 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<django-users%2bunsubscr...@googlegroups.com>
> .
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>



-- 
*Praveen Krishna R*

-- 
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: Customize the admin look and feel

2011-01-02 Thread Praveen Krishna R
*Good to know that It worked. Good luck, anyways
*
On Sun, Jan 2, 2011 at 6:01 PM, Anthony Pearce <coden...@gmail.com> wrote:

> That has worked. Puzzling to me though since we left off the admin
> directory in TEMPLATE_DIRS
>
> None the less, thank you very much. I will continue with the tutorial
> and see how much farther I can get.
>
> On Jan 2, 11:46 pm, Praveen Krishna R <rpraveenkris...@gmail.com>
> wrote:
> > Could you please try moving the base_site.html to
> > C:\DjangoProjects\mysite\mytemplates\admin
> > folder and Leave the TEMPLATE_DIRS as it is, which is "*
> > C:/DjangoProjects/mysite/mytemplates*" only. and please try removing the
> /
> > slash at the end.
> >
> >
> >
> >
> >
> > On Sun, Jan 2, 2011 at 5:36 PM, Anthony Pearce <coden...@gmail.com>
> wrote:
> > > TYVM for your response. My first reply does not show, so hopefully I'm
> > > not double posting.
> >
> > > This is what I have so far:
> >
> > > TEMPLATE_DIRS   "C:/DjangoProjects/mysite/mytemplates/"
> > > base_site.html location   C:\DjangoProjects\mysite\mytemplates
> >
> > > This is what base_site.html reads.
> > > {% extends "admin/base.html" %}
> > > {% load i18n %}
> > > {% block title %}{{ title }} | {% trans 'Django site admin' %}{%
> > > endblock %}
> > > {% block branding %}
> > > {% trans 'Django Administration' %}
> > > {% endblock %}
> > > {% block nav-global %}{% endblock %}
> >
> > > If this supposed to help me change the appearance?  I don't see how to
> > > change anything here.
> >
> > > On Jan 2, 4:36 pm, Praveen Krishna R <rpraveenkris...@gmail.com>
> > > wrote:
> > > > Hi,
> >
> > > > Your TEMPLATE_DIRS should contain a path to a folder where you want
> to
> > > keep
> > > > your templates. Say if your project is in *D:/myproject* then create
> a
> > > > folder named
> > > > template under *D:\myproject*, and in that folder create a folder
> named
> > > *admin
> > > > *and then copy and paste base_site.html into the admin folder.
> >
> > > >  TEMPLATE_DIRS section should look like the below snippet in
> settings.py
> >
> > > > *
> > > > TEMPLATE_DIRS = (
> > > > 'D:/myproject /templates'
> > > > )
> >
> > > > *
> >
> > > > On Sun, Jan 2, 2011 at 10:04 AM, Anthony Pearce <coden...@gmail.com>
> > > wrote:
> > > > > I have made it to the "Writing your first Django app, part 2" page
> > > > > down to "Customize the admin look and feel", at the bottom.  I'm
> stuck
> > > > > with this paragraph..
> >
> > > > > Now copy the template admin/base_site.html from within the default
> > > > > Django admin template directory in the source code of Django itself
> > > > > (django/contrib/admin/templates) into an admin subdirectory of
> > > > > whichever directory you're using in TEMPLATE_DIRS. For example, if
> > > > > your TEMPLATE_DIRS includes "/home/my_username/mytemplates", as
> above,
> > > > > then copy django/contrib/admin/templates/admin/base_site.html to
> /home/
> > > > > my_username/mytemplates/admin/base_site.html. Don't forget that
> admin
> > > > > subdirectory.
> >
> > > > > I found the "base_site" at C:/Django-1.2.4/django/contrib/admin/
> > > > > templates/admin/base_site.html.
> >
> > > > > I have no idea where this is supposed to be copied and pasted to.
> >
> > > > > Any help please?
> >
> > > > > --
> > > > > 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<django-users%2bunsubscr...@googlegroups.com>
> <django-users%2bunsubscr...@google­groups.com>
> > > <django-users%2bunsubscr...@google­groups.com>
> > > > > .
> > > > > For more options, visit this group at
> > > > >http://groups.google.com/group/django-users?hl=en.
> >
> > > > --
> > > > *Praveen Krishna 

Re: Customize the admin look and feel

2011-01-02 Thread Praveen Krishna R
Could you please try moving the base_site.html to
C:\DjangoProjects\mysite\mytemplates\admin
folder and Leave the TEMPLATE_DIRS as it is, which is "*
C:/DjangoProjects/mysite/mytemplates*" only. and please try removing the /
slash at the end.

On Sun, Jan 2, 2011 at 5:36 PM, Anthony Pearce <coden...@gmail.com> wrote:

> TYVM for your response. My first reply does not show, so hopefully I'm
> not double posting.
>
> This is what I have so far:
>
> TEMPLATE_DIRS   "C:/DjangoProjects/mysite/mytemplates/"
> base_site.html location   C:\DjangoProjects\mysite\mytemplates
>
> This is what base_site.html reads.
> {% extends "admin/base.html" %}
> {% load i18n %}
> {% block title %}{{ title }} | {% trans 'Django site admin' %}{%
> endblock %}
> {% block branding %}
> {% trans 'Django Administration' %}
> {% endblock %}
> {% block nav-global %}{% endblock %}
>
> If this supposed to help me change the appearance?  I don't see how to
> change anything here.
>
>
> On Jan 2, 4:36 pm, Praveen Krishna R <rpraveenkris...@gmail.com>
> wrote:
> > Hi,
> >
> > Your TEMPLATE_DIRS should contain a path to a folder where you want to
> keep
> > your templates. Say if your project is in *D:/myproject* then create a
> > folder named
> > template under *D:\myproject*, and in that folder create a folder named
> *admin
> > *and then copy and paste base_site.html into the admin folder.
> >
> >  TEMPLATE_DIRS section should look like the below snippet in settings.py
> >
> > *
> > TEMPLATE_DIRS = (
> > 'D:/myproject /templates'
> > )
> >
> > *
> >
> >
> >
> >
> >
> > On Sun, Jan 2, 2011 at 10:04 AM, Anthony Pearce <coden...@gmail.com>
> wrote:
> > > I have made it to the "Writing your first Django app, part 2" page
> > > down to "Customize the admin look and feel", at the bottom.  I'm stuck
> > > with this paragraph..
> >
> > > Now copy the template admin/base_site.html from within the default
> > > Django admin template directory in the source code of Django itself
> > > (django/contrib/admin/templates) into an admin subdirectory of
> > > whichever directory you're using in TEMPLATE_DIRS. For example, if
> > > your TEMPLATE_DIRS includes "/home/my_username/mytemplates", as above,
> > > then copy django/contrib/admin/templates/admin/base_site.html to /home/
> > > my_username/mytemplates/admin/base_site.html. Don't forget that admin
> > > subdirectory.
> >
> > > I found the "base_site" at C:/Django-1.2.4/django/contrib/admin/
> > > templates/admin/base_site.html.
> >
> > > I have no idea where this is supposed to be copied and pasted to.
> >
> > > Any help please?
> >
> > > --
> > > You received this message because you are subscribed to the Google
> Groups
> > > "Django users" group.
> > > To post to this group, send email to django-us...@googlegroups.com.
> > > To unsubscribe from this group, send email to
> > > django-users+unsubscr...@googlegroups.com<django-users%2bunsubscr...@googlegroups.com>
> <django-users%2bunsubscr...@google­groups.com>
> > > .
> > > For more options, visit this group at
> > >http://groups.google.com/group/django-users?hl=en.
> >
> > --
> > *Praveen Krishna R*- Hide quoted text -
> >
> > - Show quoted text -
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To post to this group, send email to django-us...@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com<django-users%2bunsubscr...@googlegroups.com>
> .
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>


-- 
*Praveen Krishna R*

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



Re: Customize the admin look and feel

2011-01-02 Thread Praveen Krishna R
Hi,

Your TEMPLATE_DIRS should contain a path to a folder where you want to keep
your templates. Say if your project is in *D:/myproject* then create a
folder named
template under *D:\myproject*, and in that folder create a folder named *admin
*and then copy and paste base_site.html into the admin folder.

 TEMPLATE_DIRS section should look like the below snippet in settings.py

*
TEMPLATE_DIRS = (
'D:/myproject /templates'
)


*
On Sun, Jan 2, 2011 at 10:04 AM, Anthony Pearce <coden...@gmail.com> wrote:

> I have made it to the "Writing your first Django app, part 2" page
> down to "Customize the admin look and feel", at the bottom.  I'm stuck
> with this paragraph..
>
> Now copy the template admin/base_site.html from within the default
> Django admin template directory in the source code of Django itself
> (django/contrib/admin/templates) into an admin subdirectory of
> whichever directory you're using in TEMPLATE_DIRS. For example, if
> your TEMPLATE_DIRS includes "/home/my_username/mytemplates", as above,
> then copy django/contrib/admin/templates/admin/base_site.html to /home/
> my_username/mytemplates/admin/base_site.html. Don't forget that admin
> subdirectory.
>
> I found the "base_site" at C:/Django-1.2.4/django/contrib/admin/
> templates/admin/base_site.html.
>
> I have no idea where this is supposed to be copied and pasted to.
>
> Any help please?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To post to this group, send email to django-us...@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com<django-users%2bunsubscr...@googlegroups.com>
> .
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>


-- 
*Praveen Krishna R*

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