Re: Is there a plan to modernize Django-admin?

2015-07-22 Thread Derek
Ignore the home page (its just for the company I think). Rather work with github and readthedocs. Also see the many comments here: https://github.com/sshwsfc/django-xadmin/issues/67 On Tuesday, 21 July 2015 18:56:33 UTC+2, Lee Hinde wrote: > > > On Sat, Jul 18, 2015 at 12:25 AM, Stuart Longlan

Re: Is there a plan to modernize Django-admin?

2015-07-22 Thread Derek
Well, 'responsive' is not a very well defined term... I have been using this package in projects for over two years, and it works well. As for mobile - no, users are not going to want to interact on an *admin* site via their mobile! But I have used this comfortably with a (standard) iPad. On

Re: Django 1.8 + jinja2 Encountered unknown tag 'static'

2015-07-22 Thread Yitao Jiang
​the same error​ On Thu, Jul 23, 2015 at 12:30 AM, James Schneider wrote: > Take out the parentheses () from your static tag. > > -James > On Jul 22, 2015 7:04 AM, "Yitao Jiang" wrote: > >> Do you guys have any idea? >> >> On Wednesday, July 22, 2015 at 3:47:38 PM UTC+8, Yitao Jiang wrote: >>>

Re: Django 1.8 + jinja2 Encountered unknown tag 'static'

2015-07-22 Thread Yitao Jiang
Thanks James and Tim here's my jinja2.py environment module from __future__ import absolute_import # Python 2 only from django.contrib.staticfiles.storage import staticfiles_storage from django.core.urlresolvers import reverse from jinja2 import Environment def environment(**options): env

Re: Django 1.8 + jinja2 Encountered unknown tag 'static'

2015-07-22 Thread Yitao Jiang
​​ Yes, i just copied the jinja2.py as documented On Thu, Jul 23, 2015 at 12:47 AM, Tim Graham wrote: > Did you configure your environment with staticfiles_storage.url as > documented? > > > https://docs.djangoproject.com/en/1.8/topics/templates/#django.template.backends.jinja2.Jinja2 > > On Wed

Re: Buttons

2015-07-22 Thread Alex Heyden
A fair bit of this is Javascript, which, strictly speaking, is outside the scope of Django. >From what you're saying, it sounds like your button does two things: make a backend database change and make a frontend display change. Ultimately, the action starts with a Javascript event handler. On but

Buttons

2015-07-22 Thread Jake Rudolph
I am trying to make a button on the index page that changes the boolean field of my object, and then displays that object in a different place on the page. I am not sure what to put as the action for this button, and where to put and call the function that will actually change the value in the

Re: All posts from same day django

2015-07-22 Thread Nkansah Rexford
Yeah, I figured that timezone thing too. Django runs in console with 'naive datetime' bla bla bla all the time without using the timezone -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails f

Re: Django 1.7 ORA-01461 Error on inserting session data >=2k characters

2015-07-22 Thread Vuppuluri Rohit
Steps to replicate this issue: Install Django 1.7.7 Install cx_oracle=5.2 Create a django project and a simple model. Go to the shell using python manage.py Run the following: https://dpaste.de/cpcV On Wednesday, July 22, 2015 at 12:20:17 PM UTC-5, Vuppuluri Rohit wrote: > > When trying to inser

Re: All posts from same day django

2015-07-22 Thread Carl Meyer
On 07/22/2015 02:26 PM, Nkansah Rexford wrote: > Thanks Carl > > Also got these approaches too, might help someone > too: > http://stackoverflow.com/questions/31571607/all-posts-from-same-day-only-django I just re-read your original post, and my suggestion was wrong - it gets you all posts from

Re: All posts from same day django

2015-07-22 Thread Nkansah Rexford
Thanks Carl Also got these approaches too, might help someone too: http://stackoverflow.com/questions/31571607/all-posts-from-same-day-only-django -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receivi

Re: Need Django Help Again.

2015-07-22 Thread Bill Freeman
Unless it has changed, the tutorial at docs.djangoproject.com shows creation of an app, use of templates, forms, etc. All the building blocks for the back end (which is what django is). Those are the skills that have been the base of several sites that I've built. If your site wants to have othe

Re: All posts from same day django

2015-07-22 Thread Carl Meyer
Hi, On 07/22/2015 12:54 PM, Nkansah Rexford wrote: > I currently have: > > | > @classmethod > defget_past_week(self): > start_date =datetime.now().date() > end_date =datetime.now().date()-timedelta(weeks=1) > > returnMyModel.objects.filter(pub_date__range=(end_date

Re: Using git to control the version for an app in my project

2015-07-22 Thread Stephen J. Butler
Are you saying that the entire project is already a git repo, but you want to have a seperate repo for just one of the apps? In that case, you should do a git submodule: http://git-scm.com/docs/git-submodule On Wed, Jul 22, 2015 at 9:51 AM, wrote: > Hello, I'm trying to start a git repo that o

Re: Need Django Help Again.

2015-07-22 Thread Steve Burrus
say do yoiu know of a handy series of tutorials I can use to actually do something in Django beyond merely connecting to the server and maybe configuring the admin? I am getting tired of just connecting to the server and then "calling it a day" if you know what I mean. On Wed, Jul 22, 2015 at 1:

Re: Using git to control the version for an app in my project

2015-07-22 Thread Nkansah Rexford
I couldn't understand your question properly, but I guess you're looking to ignore some parts of your git? Maybe .gitignore file is what you need? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving

All posts from same day django

2015-07-22 Thread Nkansah Rexford
I currently have: @classmethod def get_past_week(self): start_date = datetime.now().date() end_date = datetime.now().date() - timedelta(weeks=1) return MyModel.objects.filter(pub_date__range=(end_date, start_date )).aggregate(Sum('off_hours')) which simply pulls a

Re: Need Django Help Again.

2015-07-22 Thread Bill Freeman
That's actually a virtualenv mistake, rather than a django mistake. Whenever things don't behave in a VE try "pip freeze" to see if things are as you expect. On Wed, Jul 22, 2015 at 1:16 PM, Steve Burrus wrote: > *Okay it's a case of "my bad". I got it gpoing. I had just forgotten to do > this c

Django 1.7 ORA-01461 Error on inserting session data >=2k characters

2015-07-22 Thread Vuppuluri Rohit
When trying to insert session data with 2k characters or greater into the database, an error shows up: ORA-01461: can bind a LONG value only for insert into a LONG column T

Re: Need Django Help Again.

2015-07-22 Thread Steve Burrus
*Okay it's a case of "my bad". I got it gpoing. I had just forgotten to do this command : "pip install django" in the "burrus" virtual environment inst ance! I still have the shakiest knowledge of django in general so little mistakes like this I am gonna have a little while longer.* *On Wed, Jul

Re: Need Django Help Again.

2015-07-22 Thread Bill Freeman
I presume that you have actually checked for a django-admin.py file in the Scripts directory? On Wed, Jul 22, 2015 at 12:58 PM, Steve Burrus wrote: > > *well I haVE tried both this "python .\Scripts\django-admin.py > startproject me" and Bill's suggestion opf "python django-admin.py > startproj

Re: Need Django Help Again.

2015-07-22 Thread Steve Burrus
*well I haVE tried both this "python .\Scripts\django-admin.py startproject me" and Bill's suggestion opf "python django-admin.py startproject me" but both haVE failed! I'll try Bill's other suggestion of the forward slashes but I doubt it will work.* *On Wed, Jul 22, 2015 at 11:51 AM, Steve Bur

Re: Find Django Source Files

2015-07-22 Thread Bill Freeman
Note that this is a limitation of you shell. (I presume that you are using cmd.exe.) On linux in bash the tutorial version works fine. You are likely to find a number of things that are different from the experience of the document writers if you are using Windows. On Wed, Jul 22, 2015 at 12:46

Re: Need Django Help Again.

2015-07-22 Thread Steve Burrus
*well tom tjhanx for your attempted help but it still didn't work after I took care of that space after "\Scripts\"! here is my error message now : "python: can't open file '.\Scripts\django-admin.py': [Errno 2] No such file or directory".* *On Wed, Jul 22, 2015 at 11:34 AM, Tom Lockhart > wrot

Re: Django 1.8 + jinja2 Encountered unknown tag 'static'

2015-07-22 Thread Tim Graham
Did you configure your environment with staticfiles_storage.url as documented? https://docs.djangoproject.com/en/1.8/topics/templates/#django.template.backends.jinja2.Jinja2 On Wednesday, July 22, 2015 at 12:31:01 PM UTC-4, James Schneider wrote: > > Take out the parentheses () from your static

Find Django Source Files

2015-07-22 Thread tromba . dolce
In Windows, where are the Django source files located? In the 2nd section of the Django tutorial (docs.djangoproject.com/en/1.8/intro/tutorial02/) we find this: If you have difficulty finding where the Django source files are located on your system, run the following command: $ py

Re: Need Django Help Again.

2015-07-22 Thread Bill Freeman
Try no space between ".\Scripts\" and "django-admin.py" You could also try forward slashes on the django-admin.py line (I think that you need the back slashes on the activate line). And I don't think that you need the ".\" on the django-admin.py line. And, if that activate is activating a virtua

Re: Speedy Mail 2.0 - a new webmail platform in Python and Django

2015-07-22 Thread Uri Even-Chen
*Uri Even-Chen* [image: photo] Phone: +972-54-3995700 Email: u...@speedy.net Website: http://www.speedysoftware.com/uri/en/ > Speedyped

Re: Need Django Help Again.

2015-07-22 Thread Tom Lockhart
> On Jul 22, 2015, at 09:11, Steve Burrus wrote: > > I find myself in ned of help yet again w. django. Just to say parenthetically > I have had this problem before. just what am I doing wrong with the command > "python .\Scripts\ django-admin.py startproject me" to consistently get this > err

Re: Django 1.8 + jinja2 Encountered unknown tag 'static'

2015-07-22 Thread James Schneider
Take out the parentheses () from your static tag. -James On Jul 22, 2015 7:04 AM, "Yitao Jiang" wrote: > Do you guys have any idea? > > On Wednesday, July 22, 2015 at 3:47:38 PM UTC+8, Yitao Jiang wrote: >> >> Hi, >> >> I just followed the guide here >> https://docs.djangoproject.com/en/1.8/topi

Re: Speedy Mail 2.0 - a new webmail platform in Python and Django

2015-07-22 Thread Joachim Jablon
You probably want to have a close look at Mailpile : https://github.com/mailpile/Mailpile https://www.mailpile.is/ (maybe the good solution is not to create a new standard but to join forces to existing ones) Le mercredi 22 juillet 2015 17:04:19 UTC+2, uri a écrit : > >

Need Django Help Again.

2015-07-22 Thread Steve Burrus
*I find myself in ned of help yet again w. django. Just to say parenthetically I have had this problem before. just what am I doing wrong with the command "**python .\Scripts\ django-admin.py startproject me" to consistently get this error message! Thanx to anyone who helps me. * *"C:\Users\S

Re: Speedy Mail 2.0 - a new webmail platform in Python and Django

2015-07-22 Thread Uri Even-Chen
*Uri Even-Chen* [image: photo] Phone: +972-54-3995700 Email: u...@speedy.net Website: http://www.speedysoftware.com/uri/en/ > Speedyped

Using git to control the version for an app in my project

2015-07-22 Thread durirompepc
Hello, I'm trying to start a git repo that onyl controls the changes in my app of my Django's project, but I don't get other thing that a VCS error 'cause of a root problem: so I can git the entire project, but not an app separately. Does anyone had this problem before? Is something of Django c

Re: Django 1.8 + jinja2 Encountered unknown tag 'static'

2015-07-22 Thread Yitao Jiang
Do you guys have any idea? On Wednesday, July 22, 2015 at 3:47:38 PM UTC+8, Yitao Jiang wrote: > > Hi, > > I just followed the guide here > https://docs.djangoproject.com/en/1.8/topics/templates/#django.template.backends.jinja2.Jinja2, > > and all works fine. > But when i using static tag to pa

Re: Problem rendering media files in template during development

2015-07-22 Thread ltc.hotspot
Thank you very much, Charito 😊 Sent from Surface From: Charito Romeo Sent: ‎Tuesday‎, ‎July‎ ‎21‎, ‎2015 ‎11‎:‎11‎ ‎PM To: django-users@googlegroups.com Hi Hal, I'm using the code icon right on top of the gmail textbox. Click on the { } icon which is last icon on the top right

Re: SHOP APP

2015-07-22 Thread Nkansah Rexford
Oh, I thought Google was a friend of us all? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, se

Re: Is there a plan to modernize Django-admin?

2015-07-22 Thread Nkansah Rexford
A relatively new 'suit' in the block might be worth looking into: http://forms.viewflow.io/ I've tried it myself and I think although not complete in its implementation entirely, its a good start too. -- You received this message because you are subscribed to the Google Groups "Django users"

Re: Speedy Mail 2.0 - a new webmail platform in Python and Django

2015-07-22 Thread ybdragon
On 07/22/15 09:36, Uri Even-Chen wrote: > To Django users, > > I'm interested in creating a new webmail platform based on Python and > Django, which will be free software & open source - Speedy Mail 2.0 > (Speedy Mail 1.0 and 1.1 were based on a Perl software - Endymion > MailMan web-mail, from 200

Re: Adding context data to a TemplateView?

2015-07-22 Thread bobby
An additional point, if you want to be able to use the view more generically (be able to pass in custom context from your urls.py), I've done the following: class StaticPageView(TemplateView): context = None def get_context_data(self, **kwargs): context = super(StaticPageView, s

Speedy Mail 2.0 - a new webmail platform in Python and Django

2015-07-22 Thread Uri Even-Chen
To Django users, I'm interested in creating a new webmail platform based on Python and Django, which will be free software & open source - Speedy Mail 2.0 (Speedy Mail 1.0 and 1.1 were based on a Perl software - Endymion MailMan web-mail, from 2000 to 2005). I want Speedy Mail 2.0's features to be

Django 1.8 + jinja2 Encountered unknown tag 'static'

2015-07-22 Thread Yitao Jiang
Hi, I just followed the guide here https://docs.djangoproject.com/en/1.8/topics/templates/#django.template.backends.jinja2.Jinja2, and all works fine. But when i using static tag to parse the css files under static directory, reload the browser says