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 as similar as
possible to Gmail - with labels, filters, 12 different stars, composing
more than one mail at a time, etc. I would like to know if there is any
free software in Python and Django we can base Speedy Mail on, or maybe
something in another language (such as PHP) which we can convert to Python
and Django? And are you interested in helping me develop Speedy Mail, or do
you know where I can find developers who may be interested?

By the way, is there a simple way to convert PHP software to Python, or do
we have to rewrite it again line by line?

Thanks,
Uri.

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

  
> Speedypedia in Hebrew and English


-- 
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, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAMQ2MsGAJ3D8G9iA%2BsUH9Y6AsWMH8o%2BV8mefhdi1Ztjq-5kXVg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


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 

 


here's my base.html snips
   

settings.py


import os

DEBUG = True
TEMPLATE_DEBUG = DEBUG

ROOT = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
path = lambda *a: os.path.join(ROOT, *a)


MANAGERS = ADMINS

DATABASES = {
'default': {
'ENGINE': 'django.db.backends.', # Add 'postgresql_psycopg2', 
'mysql', 'sqlite3' or 'oracle'.
'NAME': '',  # Or path to database file if 
using sqlite3.
'USER': '',  # Not used with sqlite3.
'PASSWORD': '',  # Not used with sqlite3.
'HOST': '',  # Set to empty string for 
localhost. Not used with sqlite3.
'PORT': '',  # Set to empty string for default. 
Not used with sqlite3.
}
}

# Hosts/domain names that are valid for this site; required if DEBUG is 
False
# See https://docs.djangoproject.com/en/1.4/ref/settings/#allowed-hosts
ALLOWED_HOSTS = []

# Local time zone for this installation. Choices can be found here:
# http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
# although not all choices may be available on all operating systems.
# In a Windows environment this must be set to your system time zone.
TIME_ZONE = 'America/Chicago'

# Language code for this installation. All choices can be found here:
# http://www.i18nguy.com/unicode/language-identifiers.html
LANGUAGE_CODE = 'en-us'

SITE_ID = 1

# If you set this to False, Django will make some optimizations so as not
# to load the internationalization machinery.
USE_I18N = True

# If you set this to False, Django will not format dates, numbers and
# calendars according to the current locale.
USE_L10N = True

# If you set this to False, Django will not use timezone-aware datetimes.
USE_TZ = True

# Absolute filesystem path to the directory that will hold user-uploaded 
files.
# Example: "/home/media/media.lawrence.com/media/"
MEDIA_ROOT = ''

# URL that handles the media served from MEDIA_ROOT. Make sure to use a
# trailing slash.
# Examples: "http://media.lawrence.com/media/";, "http://example.com/media/";
MEDIA_URL = ''

# Absolute path to the directory static files should be collected to.
# Don't put anything in this directory yourself; store your static files
# in apps' "static/" subdirectories and in STATICFILES_DIRS.
# Example: "/home/media/media.lawrence.com/static/"
STATIC_ROOT = "%s/static/" % path('.')

# URL prefix for static files.
# Example: "http://media.lawrence.com/static/";
STATIC_URL = '/static/'

# Additional locations of static files
STATICFILES_DIRS = (
# Put strings here, like "/home/html/static" or "C:/www/django/static".
# Always use forward slashes, even on Windows.
# Don't forget to use absolute paths, not relative paths.
"%s/bumblebee/static/" % path('.'),
)

STATICFILES_STORAGE = 
'django.contrib.staticfiles.storage.StaticFilesStorage'

# List of finder classes that know how to find static files in
# various locations.
STATICFILES_FINDERS = (
'django.contrib.staticfiles.finders.FileSystemFinder',
'django.contrib.staticfiles.finders.AppDirectoriesFinder',
#'django.contrib.staticfiles.finders.DefaultStorageFinder',
)

# Make this unique, and don't share it with anybody.
SECRET_KEY = '08xs7wsdab!awp%f=_n5hqb#=_(w(^@=v&dnoi7jay=e85s(hw'

TEMPLATES = [
{
'NAME': 'jinja2',
'BACKEND': 'django.template.backends.jinja2.Jinja2',
'APP_DIRS': True,
'DIRS': [
 "%s/templates/jinja2" % path('.'),
],
'OPTIONS': {
'autoescape': True,
'auto_reload': DEBUG,
'environment': 'bumblebee.jinja2.environment',
},
},
{
'NAME': 'django',
'BACKEND': 'django.template.backends.django.DjangoTemplates',
'DIRS': [],
'APP_DIRS': True,
'OPTIONS': {
'context_processors': [
'django.contrib.auth.context_processors.auth',
'django.template.context_processors.debug',
'django.template.context_processors.i18n',
'django.template.context_processors.media',
'django.template.context_processors.static',
'django.template.context_processors.tz',
'django.contrib.messages.context_processors.messages',
],
},
},
]

# List of callables that know how to import templates from various sources.
TEMPLATE_LOADERS = (
'django.template.loaders.filesystem.Loader',
'django.template.loaders.app_directories.Loader',
# 'django.template.loaders.e

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, self).get_context_data(**kwargs)
context.update(self.context or {})
return context

-- 
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, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/cc05af47-b6ae-4050-bbd9-6a8958db502e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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 2000 to 2005). I want Speedy Mail 2.0's
> features to be as similar as possible to Gmail - with labels, filters,
> 12 different stars, composing more than one mail at a time, etc. I
> would like to know if there is any free software in Python and Django
> we can base Speedy Mail on, or maybe something in another language
> (such as PHP) which we can convert to Python and Django?
Maybe roundcube mail.

Great idea by the way.


-- 
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, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/55AF601E.2000904%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


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" 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, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/b0e77093-b27d-4191-b6c3-a47fc2a3f60c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/20f81f3e-1478-4365-adf8-714f9ddbbf0d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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 of your text box.



On Wed, Jul 22, 2015 at 1:26 PM,  wrote:




Hi Charito,




What tool did you use to insert your python codes into the marked  fields 
below, i.e., settings.py, my models.py, etc?




Regards,

Hal






Sent from Surface





From: charito.romeo
Sent: β€ŽTuesdayβ€Ž, β€ŽJulyβ€Ž β€Ž21β€Ž, β€Ž2015 β€Ž10β€Ž:β€Ž20β€Ž β€ŽPM
To: django-users@googlegroups.com







Never mind. I figured it out. For some reason, {{ MEDIA_URL }} doesn't work  
but {{ media_url }} does. Now all my movies and images are rendered. Cheers. :)

On Monday, July 20, 2015 at 3:16:52 PM UTC+8, charito.romeo wrote:

Hi django folks, 



I ran into a hiccup when I was rendering media files in templates during 
development. I wanted to render the image and the video that was uploaded by 
the user BUT instead of the contents of the image and the video being rendered, 
 the name of the file was rendered instead.




I am using python 2.7.9 and django 1.8.3. Here are my  codes relevant to the 
question I'm asking:




settings.py




BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))


STATIC_URL = '/static/'




STATIC_PATH = (os.path.join(BASE_DIR, 'static'),

   '/var/www/static/',)




STATICFILES_DIRS = (

STATIC_PATH,

)

MEDIA_URL = '/media/'









my models.py:






class Entry(models.Model):

VIDEO_ENTRY_TYPE = (

('SEMINAR', 'Seminar'),

('LECTURE', 'Lecture'),

('TALK', 'Talk'),   

)

user = models.ForeignKey(User)

video = models.FileField(upload_to='video_entries')

entry_type = models.CharField(max_length=100, choices=VIDEO_ENTRY_TYPE)

title = models.CharField(max_length=250)




class EntryForm(ModelForm):   

class Meta:

model = Entry

fields = ['video', 'entry_type', 'title']

 


my views.py:





from django.shortcuts import render

from django.http import HttpResponseRedirect

from django.http import HttpResponse

from django.views.generic import ListView




from . models import User, Entry, EntryForm

class IndexView(ListView):
template_name = 'pi_app/index.html'

context_object_name = 'latest_seminars'



def get_queryset(self):

return Entry.objects.filter(entry_type='SEMINAR').order_by('-pub_date') 
[:10]

 

def get_context_data(self, **kwargs):

context = super(IndexView, self).get_context_data(**kwargs)

context['latest_lectures'] = 
Entry.objects.filter(entry_type='LECTURE').order_by('-pub_date') [:10]

context['latest_talks'] = 
Entry.objects.filter(entry_type='TALK').order_by('-pub_date') [:10]

my urls.py:






from django.conf.urls import url

from django.conf import settings

from django.conf.urls.static import static




from . import views




urlpatterns = [

url(r'^$', views.IndexView.as_view(), name='index'),

url(r'^upload_file/$', views.upload_file, name='upload_file')

]+ static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)




my template.py:








{% load staticfiles %}








Homepage







 Welcome {{ user }} 


 



{% block seminar %}





Most Recent Seminars



{% if latest_seminars %}



{% for seminar in latest_seminars %}









{{ seminar.title }} by {{ seminar.user }}

{% endfor %}



{% endif %}



{% endblock seminar %}






Normally, the video or the image will be rendered. In my case, its not 
rendered. What is rendered instead is the name of the movie file 
(media/video_entries/name_of _movie_file)  or the name of the image file  
(media/video_entries/name_of _image_file). All the other variables are rendered 
correctly  except the media files. What am I missing? Please enligthen me. Your 
help is hightly appreciated.  Thanks.
-- 
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, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/6168e60f-a22c-404c-afd6-0e96e077d1a3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



-- 
You received this message because you are subscribed to 

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 parse the css files under static directory, 
> reload the browser says 
>
>  
> 
>
> here's my base.html snips
> type="text/css" rel="stylesheet" />
>
> settings.py
>
>
> import os
>
> DEBUG = True
> TEMPLATE_DEBUG = DEBUG
>
> ROOT = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
> path = lambda *a: os.path.join(ROOT, *a)
>
>
> MANAGERS = ADMINS
>
> DATABASES = {
> 'default': {
> 'ENGINE': 'django.db.backends.', # Add 'postgresql_psycopg2', 
> 'mysql', 'sqlite3' or 'oracle'.
> 'NAME': '',  # Or path to database file if 
> using sqlite3.
> 'USER': '',  # Not used with sqlite3.
> 'PASSWORD': '',  # Not used with sqlite3.
> 'HOST': '',  # Set to empty string for 
> localhost. Not used with sqlite3.
> 'PORT': '',  # Set to empty string for 
> default. Not used with sqlite3.
> }
> }
>
> # Hosts/domain names that are valid for this site; required if DEBUG is 
> False
> # See https://docs.djangoproject.com/en/1.4/ref/settings/#allowed-hosts
> ALLOWED_HOSTS = []
>
> # Local time zone for this installation. Choices can be found here:
> # http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
> # although not all choices may be available on all operating systems.
> # In a Windows environment this must be set to your system time zone.
> TIME_ZONE = 'America/Chicago'
>
> # Language code for this installation. All choices can be found here:
> # http://www.i18nguy.com/unicode/language-identifiers.html
> LANGUAGE_CODE = 'en-us'
>
> SITE_ID = 1
>
> # If you set this to False, Django will make some optimizations so as not
> # to load the internationalization machinery.
> USE_I18N = True
>
> # If you set this to False, Django will not format dates, numbers and
> # calendars according to the current locale.
> USE_L10N = True
>
> # If you set this to False, Django will not use timezone-aware datetimes.
> USE_TZ = True
>
> # Absolute filesystem path to the directory that will hold user-uploaded 
> files.
> # Example: "/home/media/media.lawrence.com/media/"
> MEDIA_ROOT = ''
>
> # URL that handles the media served from MEDIA_ROOT. Make sure to use a
> # trailing slash.
> # Examples: "http://media.lawrence.com/media/";, "http://example.com/media/
> "
> MEDIA_URL = ''
>
> # Absolute path to the directory static files should be collected to.
> # Don't put anything in this directory yourself; store your static files
> # in apps' "static/" subdirectories and in STATICFILES_DIRS.
> # Example: "/home/media/media.lawrence.com/static/"
> STATIC_ROOT = "%s/static/" % path('.')
>
> # URL prefix for static files.
> # Example: "http://media.lawrence.com/static/";
> STATIC_URL = '/static/'
>
> # Additional locations of static files
> STATICFILES_DIRS = (
> # Put strings here, like "/home/html/static" or "C:/www/django/static".
> # Always use forward slashes, even on Windows.
> # Don't forget to use absolute paths, not relative paths.
> "%s/bumblebee/static/" % path('.'),
> )
>
> STATICFILES_STORAGE = 
> 'django.contrib.staticfiles.storage.StaticFilesStorage'
>
> # List of finder classes that know how to find static files in
> # various locations.
> STATICFILES_FINDERS = (
> 'django.contrib.staticfiles.finders.FileSystemFinder',
> 'django.contrib.staticfiles.finders.AppDirectoriesFinder',
> #'django.contrib.staticfiles.finders.DefaultStorageFinder',
> )
>
> # Make this unique, and don't share it with anybody.
> SECRET_KEY = '08xs7wsdab!awp%f=_n5hqb#=_(w(^@=v&dnoi7jay=e85s(hw'
>
> TEMPLATES = [
> {
> 'NAME': 'jinja2',
> 'BACKEND': 'django.template.backends.jinja2.Jinja2',
> 'APP_DIRS': True,
> 'DIRS': [
>  "%s/templates/jinja2" % path('.'),
> ],
> 'OPTIONS': {
> 'autoescape': True,
> 'auto_reload': DEBUG,
> 'environment': 'bumblebee.jinja2.environment',
> },
> },
> {
> 'NAME': 'django',
> 'BACKEND': 'django.template.backends.django.DjangoTemplates',
> 'DIRS': [],
> 'APP_DIRS': True,
> 'OPTIONS': {
> 'context_processors': [
> 'django.contrib.auth.context_processors.auth',
> 'django.template.context_processors.debug',
> 'django.template.context_processors.i18n',
> 'django.template.context_processors.media',
> 'django.template.context_processors.static',
>   

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 
configuration? It will be sure that I'll have to create a separately git 
repo for the app?

Thanks.

-- 
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, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/fe86c493-4ebb-45a9-bb32-f90d445a7f08%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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/
 

  
> Speedypedia in Hebrew and English

On Wed, Jul 22, 2015 at 12:19 PM,  wrote:

> Maybe roundcube mail.
>
> Great idea by the way.
>

Thank you, I'll check roundcube mail.

-- 
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, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAMQ2MsGv%3DzcDbdHRrDpzSXQ4JJCbPs2vVUsxGLswLzy%3Dv9jaJA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


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\SteveB\Desktop\burrus>.\Scripts\activate*
*(burrus) C:\Users\SteveB\Desktop\burrus>python .\Scripts\ django-admin.py 
startproject me*
*C:\Users\SteveB\Desktop\burrus\Scripts\python.exe: can't find '__main__' 
module in '.\\Scripts\\'"*

-- 
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, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/98551cf6-475c-41f9-b7a1-1ce5eecc30ce%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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 :
>
>
>
>   *Uri Even-Chen*  [image: photo]  Phone: +972-54-3995700
> Email: u...@speedy.net 
> Website: http://www.speedysoftware.com/uri/en/
>    
>   
>   
> > Speedypedia in Hebrew and English 
>   
> On Wed, Jul 22, 2015 at 12:19 PM, > wrote:
>
>> Maybe roundcube mail.
>>
>> Great idea by the way.
>>
>
> Thank you, I'll check roundcube mail.
>
>

-- 
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, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/02df712a-077f-4c9f-9a93-2196ec9d0ea4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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/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
>>
>>
>> 
>>
>> here's my base.html snips
>>> type="text/css" rel="stylesheet" />
>>
>> settings.py
>>
>>
>> import os
>>
>> DEBUG = True
>> TEMPLATE_DEBUG = DEBUG
>>
>> ROOT = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
>> path = lambda *a: os.path.join(ROOT, *a)
>>
>>
>> MANAGERS = ADMINS
>>
>> DATABASES = {
>> 'default': {
>> 'ENGINE': 'django.db.backends.', # Add 'postgresql_psycopg2',
>> 'mysql', 'sqlite3' or 'oracle'.
>> 'NAME': '',  # Or path to database file if
>> using sqlite3.
>> 'USER': '',  # Not used with sqlite3.
>> 'PASSWORD': '',  # Not used with sqlite3.
>> 'HOST': '',  # Set to empty string for
>> localhost. Not used with sqlite3.
>> 'PORT': '',  # Set to empty string for
>> default. Not used with sqlite3.
>> }
>> }
>>
>> # Hosts/domain names that are valid for this site; required if DEBUG is
>> False
>> # See https://docs.djangoproject.com/en/1.4/ref/settings/#allowed-hosts
>> ALLOWED_HOSTS = []
>>
>> # Local time zone for this installation. Choices can be found here:
>> # http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
>> # although not all choices may be available on all operating systems.
>> # In a Windows environment this must be set to your system time zone.
>> TIME_ZONE = 'America/Chicago'
>>
>> # Language code for this installation. All choices can be found here:
>> # http://www.i18nguy.com/unicode/language-identifiers.html
>> LANGUAGE_CODE = 'en-us'
>>
>> SITE_ID = 1
>>
>> # If you set this to False, Django will make some optimizations so as not
>> # to load the internationalization machinery.
>> USE_I18N = True
>>
>> # If you set this to False, Django will not format dates, numbers and
>> # calendars according to the current locale.
>> USE_L10N = True
>>
>> # If you set this to False, Django will not use timezone-aware datetimes.
>> USE_TZ = True
>>
>> # Absolute filesystem path to the directory that will hold user-uploaded
>> files.
>> # Example: "/home/media/media.lawrence.com/media/"
>> MEDIA_ROOT = ''
>>
>> # URL that handles the media served from MEDIA_ROOT. Make sure to use a
>> # trailing slash.
>> # Examples: "http://media.lawrence.com/media/";, "
>> http://example.com/media/";
>> MEDIA_URL = ''
>>
>> # Absolute path to the directory static files should be collected to.
>> # Don't put anything in this directory yourself; store your static files
>> # in apps' "static/" subdirectories and in STATICFILES_DIRS.
>> # Example: "/home/media/media.lawrence.com/static/"
>> STATIC_ROOT = "%s/static/" % path('.')
>>
>> # URL prefix for static files.
>> # Example: "http://media.lawrence.com/static/";
>> STATIC_URL = '/static/'
>>
>> # Additional locations of static files
>> STATICFILES_DIRS = (
>> # Put strings here, like "/home/html/static" or
>> "C:/www/django/static".
>> # Always use forward slashes, even on Windows.
>> # Don't forget to use absolute paths, not relative paths.
>> "%s/bumblebee/static/" % path('.'),
>> )
>>
>> STATICFILES_STORAGE =
>> 'django.contrib.staticfiles.storage.StaticFilesStorage'
>>
>> # List of finder classes that know how to find static files in
>> # various locations.
>> STATICFILES_FINDERS = (
>> 'django.contrib.staticfiles.finders.FileSystemFinder',
>> 'django.contrib.staticfiles.finders.AppDirectoriesFinder',
>> #'django.contrib.staticfiles.finders.DefaultStorageFinder',
>> )
>>
>> # Make this unique, and don't share it with anybody.
>> SECRET_KEY = '08xs7wsdab!awp%f=_n5hqb#=_(w(^@=v&dnoi7jay=e85s(hw'
>>
>> TEMPLATES = [
>> {
>> 'NAME': 'jinja2',
>> 'BACKEND': 'django.template.backends.jinja2.Jinja2',
>> 'APP_DIRS': True,
>> 'DIRS': [
>>  "%s/templates/jinja2" % path('.'),
>> ],
>> 'OPTIONS': {
>> 'autoescape': True,
>> 'auto_reload': DEBUG,
>> 'environment': 'bumblebee.jinja2.environment',
>> },
>> },
>> {
>> 'NAME': 'django',
>> 'BACKEND': 'django.template.backends.django.DjangoTemplates',
>> 'DIRS': [],
>> 'APP_DIRS': True,
>> 'OPTIONS': {
>> 'context_processors': [
>> 'django.contrib.auth.context_processors.auth',
>> 'django.template.context_process

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 
> error message! Thanx to anyone who helps me.   
> 
> "C:\Users\SteveB\Desktop\burrus>.\Scripts\activate
> (burrus) C:\Users\SteveB\Desktop\burrus>python .\Scripts\ django-admin.py 
> startproject me
> C:\Users\SteveB\Desktop\burrus\Scripts\python.exe: can't find '__main__' 
> module in '.\\Scripts\\’"

You seem to have a space after the β€œ\Scripts\”.

hth

- Tom

-- 
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, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/9F05E056-A548-4EE4-89AE-0F3F14876503%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


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/
 

  
> Speedypedia in Hebrew and English


On Wed, Jul 22, 2015 at 7:21 PM, Joachim Jablon  wrote:

> 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)
>
> Thank you, I'll check Mailpile too.

-- 
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, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAMQ2MsGVHvnTXUP2Zd8pLbWCE-3i-Z%2Bd6L80%2BG7-rbmj%3D_YmQg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


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 virtualenv (as the "(burrus)" might
seem to imply), then you might be able to just do:

python django-admin.py startproject me

(but I'm not that familiar with virtualenv on Windows.  On *nix it's all
about path modification, so the django-admin.py might just be found.)

Also worth trying is:

   django-admin.py startproject me

Perhaps someone who actually uses Windows for django development could
chime in?

On Wed, Jul 22, 2015 at 12:11 PM, 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 error message! Thanx to anyone who helps me. *
>
> *"C:\Users\SteveB\Desktop\burrus>.\Scripts\activate*
> *(burrus) C:\Users\SteveB\Desktop\burrus>python .\Scripts\ django-admin.py
> startproject me*
> *C:\Users\SteveB\Desktop\burrus\Scripts\python.exe: can't find '__main__'
> module in '.\\Scripts\\'"*
>
> --
> 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, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/98551cf6-475c-41f9-b7a1-1ce5eecc30ce%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAB%2BAj0tZ4VwB7LeDYS%2BG7vj4S1pwrjVkQV6MxdgiOwXgqWkj8w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


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:   

 $ python -c " import sys sys.path = sys.path[1:] import django 
print(django.__path__)"


Entering the above as written (separate lines) fails.  Entering everything 
on a single line fails.  So I did this at the DOS prompt:

  python manage.py shell

  >>>import sys

  >>>sys.path = sys.path[1:]
  >>>import django
  >>>print(django.__path__)

which returned:  ['C:\\Python34\\Lib\site-packages\\django']

Q: How do inform the authors of the tutorial that something may need editing?

-- 
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, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/4862668e-25a9-418f-9baf-bab9e6a66edd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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 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/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 
>>>
>>>  
>>> 
>>>
>>> here's my base.html snips
>>>>> type="text/css" rel="stylesheet" />
>>>
>>> settings.py
>>>
>>>
>>> import os
>>>
>>> DEBUG = True
>>> TEMPLATE_DEBUG = DEBUG
>>>
>>> ROOT = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
>>> path = lambda *a: os.path.join(ROOT, *a)
>>>
>>>
>>> MANAGERS = ADMINS
>>>
>>> DATABASES = {
>>> 'default': {
>>> 'ENGINE': 'django.db.backends.', # Add 'postgresql_psycopg2', 
>>> 'mysql', 'sqlite3' or 'oracle'.
>>> 'NAME': '',  # Or path to database file if 
>>> using sqlite3.
>>> 'USER': '',  # Not used with sqlite3.
>>> 'PASSWORD': '',  # Not used with sqlite3.
>>> 'HOST': '',  # Set to empty string for 
>>> localhost. Not used with sqlite3.
>>> 'PORT': '',  # Set to empty string for 
>>> default. Not used with sqlite3.
>>> }
>>> }
>>>
>>> # Hosts/domain names that are valid for this site; required if DEBUG is 
>>> False
>>> # See https://docs.djangoproject.com/en/1.4/ref/settings/#allowed-hosts
>>> ALLOWED_HOSTS = []
>>>
>>> # Local time zone for this installation. Choices can be found here:
>>> # http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
>>> # although not all choices may be available on all operating systems.
>>> # In a Windows environment this must be set to your system time zone.
>>> TIME_ZONE = 'America/Chicago'
>>>
>>> # Language code for this installation. All choices can be found here:
>>> # http://www.i18nguy.com/unicode/language-identifiers.html
>>> LANGUAGE_CODE = 'en-us'
>>>
>>> SITE_ID = 1
>>>
>>> # If you set this to False, Django will make some optimizations so as not
>>> # to load the internationalization machinery.
>>> USE_I18N = True
>>>
>>> # If you set this to False, Django will not format dates, numbers and
>>> # calendars according to the current locale.
>>> USE_L10N = True
>>>
>>> # If you set this to False, Django will not use timezone-aware datetimes.
>>> USE_TZ = True
>>>
>>> # Absolute filesystem path to the directory that will hold user-uploaded 
>>> files.
>>> # Example: "/home/media/media.lawrence.com/media/"
>>> MEDIA_ROOT = ''
>>>
>>> # URL that handles the media served from MEDIA_ROOT. Make sure to use a
>>> # trailing slash.
>>> # Examples: "http://media.lawrence.com/media/";, "
>>> http://example.com/media/";
>>> MEDIA_URL = ''
>>>
>>> # Absolute path to the directory static files should be collected to.
>>> # Don't put anything in this directory yourself; store your static files
>>> # in apps' "static/" subdirectories and in STATICFILES_DIRS.
>>> # Example: "/home/media/media.lawrence.com/static/"
>>> STATIC_ROOT = "%s/static/" % path('.')
>>>
>>> # URL prefix for static files.
>>> # Example: "http://media.lawrence.com/static/";
>>> STATIC_URL = '/static/'
>>>
>>> # Additional locations of static files
>>> STATICFILES_DIRS = (
>>> # Put strings here, like "/home/html/static" or 
>>> "C:/www/django/static".
>>> # Always use forward slashes, even on Windows.
>>> # Don't forget to use absolute paths, not relative paths.
>>> "%s/bumblebee/static/" % path('.'),
>>> )
>>>
>>> STATICFILES_STORAGE = 
>>> 'django.contrib.staticfiles.storage.StaticFilesStorage'
>>>
>>> # List of finder classes that know how to find static files in
>>> # various locations.
>>> STATICFILES_FINDERS = (
>>> 'django.contrib.staticfiles.finders.FileSystemFinder',
>>> 'django.contrib.staticfiles.finders.AppDirectoriesFinder',
>>> #'django.contrib.staticfiles.finders.DefaultStorageFinder',
>>> )
>>>
>>> # Make this unique, and don't share it with anybody.
>>> SECRET_KEY = '08xs7wsdab!awp%f=_n5hqb#=_(w(^@=v&dnoi7jay=e85s(hw'
>>>
>>> TEMPLATES = [
>>> {
>>> 'NAME': 'jinja2',
>>> 'BACKEND': 'django.template.backends.jinja2.Jinja2',
>>> 'APP_DIRS': True,
>>> 'DIRS': [
>>>  "%s/templates/jinja2" % path('.'),
>>> ],
>>> 'OPTIONS': {
>>> 'autoescape': True,
>>> 'auto

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 > wrote:*
>
>
>
> *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 error message! Thanx to anyone who helps me. *
>
> *"C:\Users\SteveB\Desktop\burrus>.\Scripts\activate*
> *(burrus) C:\Users\SteveB\Desktop\burrus>python .\Scripts\ django-admin.py
> startproject me*
> *C:\Users\SteveB\Desktop\burrus\Scripts\python.exe: can't find '__main__'
> module in '.\\Scripts\\’"*
>
>
> *You seem to have a space after the β€œ\Scripts\”.*
>
> *hth*
>
> *- Tom*
>
>
>
>
>
>
>
> * -- You received this message because you are subscribed to a topic in
> the Google Groups "Django users" group. To unsubscribe from this topic,
> visit
> https://groups.google.com/d/topic/django-users/uxHvoccBiZc/unsubscribe
> .
> To unsubscribe from this group and all its topics, send an email to
> django-users+unsubscr...@googlegroups.com
> . To post to this group, send
> email to django-users@googlegroups.com .
> Visit this group at http://groups.google.com/group/django-users
> . To view this discussion on
> the web visit
> https://groups.google.com/d/msgid/django-users/9F05E056-A548-4EE4-89AE-0F3F14876503%40gmail.com
> .*
>
>
> * For more options, visit https://groups.google.com/d/optout
> . *
>

-- 
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, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CABcoaSD1OZKCQpq_yp5-Q6CuAEM%3DDmGfw%2BY-jpTOV-oTjB7Vxw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


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 PM,  wrote:

> 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:
>
>  $ python -c " import sys sys.path = sys.path[1:] import 
> django print(django.__path__)"
>
>
> Entering the above as written (separate lines) fails.  Entering everything
> on a single line fails.  So I did this at the DOS prompt:
>
>   python manage.py shell
>
>   >>>import sys
>
>   >>>sys.path = sys.path[1:]
>   >>>import django
>   >>>print(django.__path__)
>
> which returned:  ['C:\\Python34\\Lib\site-packages\\django']
>
> Q: How do inform the authors of the tutorial that something may need editing?
>
>  --
> 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, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/4862668e-25a9-418f-9baf-bab9e6a66edd%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAB%2BAj0td5%2BiAHaybqSxRtxcsObUkizWqTayc0b8xKPtOJF0yRA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


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 Burrus > wrote:*
>
> *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  > wrote:*
>>
>>
>>
>> *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 error message! Thanx to anyone who helps me. *
>>
>> *"C:\Users\SteveB\Desktop\burrus>.\Scripts\activate*
>> *(burrus) C:\Users\SteveB\Desktop\burrus>python .\Scripts\
>> django-admin.py startproject me*
>> *C:\Users\SteveB\Desktop\burrus\Scripts\python.exe: can't find '__main__'
>> module in '.\\Scripts\\’"*
>>
>>
>> *You seem to have a space after the β€œ\Scripts\”.*
>>
>> *hth*
>>
>> *- Tom*
>>
>>
>>
>>
>>
>>
>>
>> * -- You received this message because you are subscribed to a topic in
>> the Google Groups "Django users" group. To unsubscribe from this topic,
>> visit
>> https://groups.google.com/d/topic/django-users/uxHvoccBiZc/unsubscribe
>> .
>> To unsubscribe from this group and all its topics, send an email to
>> django-users+unsubscr...@googlegroups.com
>> . To post to this group, send
>> email to django-users@googlegroups.com .
>> Visit this group at http://groups.google.com/group/django-users
>> . To view this discussion on
>> the web visit
>> https://groups.google.com/d/msgid/django-users/9F05E056-A548-4EE4-89AE-0F3F14876503%40gmail.com
>> .*
>>
>>
>> * For more options, visit https://groups.google.com/d/optout
>> . *
>>
>
>

-- 
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, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CABcoaSDY2f0hibB-i-KXd1s5eQvQPHk9cARORmzPMxffUbwUtg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


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
> 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 Burrus  > wrote:*
>>
>> *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 > > wrote:*
>>>
>>>
>>>
>>> *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 error message! Thanx to anyone who helps me. *
>>>
>>>
>>> *"C:\Users\SteveB\Desktop\burrus>.\Scripts\activate*
>>> *(burrus) C:\Users\SteveB\Desktop\burrus>python .\Scripts\
>>> django-admin.py startproject me*
>>> *C:\Users\SteveB\Desktop\burrus\Scripts\python.exe: can't find
>>> '__main__' module in '.\\Scripts\\’"*
>>>
>>>
>>> *You seem to have a space after the β€œ\Scripts\”.*
>>>
>>> *hth*
>>>
>>> *- Tom*
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> * -- You received this message because you are subscribed to a topic in
>>> the Google Groups "Django users" group. To unsubscribe from this topic,
>>> visit
>>> https://groups.google.com/d/topic/django-users/uxHvoccBiZc/unsubscribe
>>> .
>>> To unsubscribe from this group and all its topics, send an email to
>>> django-users+unsubscr...@googlegroups.com
>>> . To post to this group, send
>>> email to django-users@googlegroups.com .
>>> Visit this group at http://groups.google.com/group/django-users
>>> . To view this discussion on
>>> the web visit
>>> https://groups.google.com/d/msgid/django-users/9F05E056-A548-4EE4-89AE-0F3F14876503%40gmail.com
>>> .*
>>>
>>>
>>> * For more options, visit https://groups.google.com/d/optout
>>> . *
>>>
>>
>>
>  --
> 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, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CABcoaSDY2f0hibB-i-KXd1s5eQvQPHk9cARORmzPMxffUbwUtg%40mail.gmail.com
> 
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAB%2BAj0sZm-wafWQ2CDhMRSrFKTu4KpWK82BrXBk-g8pGFde_MQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


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 22, 2015 at 12:03 PM, Bill Freeman > wrote:*
>
>
> *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
>> 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 Burrus >
>> wrote: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 > wrote: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 error message! Thanx to anyone
>> who helps me.   "C:\Users\SteveB\Desktop\burrus>.\Scripts\activate(burrus)
>> C:\Users\SteveB\Desktop\burrus>python .\Scripts\ django-admin.py
>> startproject meC:\Users\SteveB\Desktop\burrus\Scripts\python.exe: can't
>> find '__main__' module in '.\\Scripts\\’"You seem to have a space after the
>> β€œ\Scripts\”.hth- Tom -- You received this message because you are
>> subscribed to a topic in the Google Groups "Django users" group. To
>> unsubscribe from this topic, visit
>> https://groups.google.com/d/topic/django-users/uxHvoccBiZc/unsubscribe
>> .
>> To unsubscribe from this group and all its topics, send an email to
>> django-users+unsubscr...@googlegroups.com
>> . To post to this group, send
>> email to django-users@googlegroups.com .
>> Visit this group at http://groups.google.com/group/django-users
>> . To view this discussion on
>> the web visit
>> https://groups.google.com/d/msgid/django-users/9F05E056-A548-4EE4-89AE-0F3F14876503%40gmail.com
>> .
>> For more options, visit https://groups.google.com/d/optout
>> . *
>>
>>
>>
>>
>>
>>
>>
>>
>> * -- 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, send
>> email to django-users@googlegroups.com .
>> Visit this group at http://groups.google.com/group/django-users
>> . To view this discussion on
>> the web visit
>> https://groups.google.com/d/msgid/django-users/CABcoaSDY2f0hibB-i-KXd1s5eQvQPHk9cARORmzPMxffUbwUtg%40mail.gmail.com
>> .
>> For more options, visit https://groups.google.com/d/optout
>> . *
>
>
>
>
>
>
>
>
> * -- You received this message because you are subscribed to a topic in
> the Google Groups "Django users" group. To unsubscribe from this topic,
> visit
> https://groups.google.com/d/topic/django-users/uxHvoccBiZc/unsubscribe
> .
> To unsubscribe from this group and all its topics, send an email to
> django-users+unsubscr...@googlegroups.com
> . To post to this group, send
> email to django-users@googlegroups.com .
> Visit this group at http://groups.google.com/group/django-users
> . To view this discussion on
> the web visit
> https://groups.google.com/d/msgid/django-users/CAB%2BAj0sZm-wafWQ2CDhMRSrFKTu4KpWK82BrXBk-g8pGFde_MQ%40mail.gmail.com
> .*
>
>
> * For more options, visit https://groups.google.com/d/optout
> . *
>

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

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 

This happens only on INSERTS and not on UPDATES.

There are a few tickets out there, which have been closed based on the fix 
applied for 4k characters but haven't found anything for the issue 
mentioned above. One suggestion posted out was to reduce the number of 
characters from 4000 to 1000, but it looks more like a hack than a fix. 
Does anyone know any way of fixing the issue or a workaround for it?


  

-- 
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, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/2de8fad8-cd5b-4a25-a370-23c144e1fa75%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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 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 22, 2015 at 12:03 PM, Bill Freeman  > wrote:*
>
>>
>> *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
>>> 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 Burrus >
>>> wrote: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 > wrote: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 error message! Thanx to anyone
>>> who helps me.   "C:\Users\SteveB\Desktop\burrus>.\Scripts\activate(burrus)
>>> C:\Users\SteveB\Desktop\burrus>python .\Scripts\ django-admin.py
>>> startproject meC:\Users\SteveB\Desktop\burrus\Scripts\python.exe: can't
>>> find '__main__' module in '.\\Scripts\\’"You seem to have a space after the
>>> β€œ\Scripts\”.hth- Tom -- You received this message because you are
>>> subscribed to a topic in the Google Groups "Django users" group. To
>>> unsubscribe from this topic, visit
>>> https://groups.google.com/d/topic/django-users/uxHvoccBiZc/unsubscribe
>>> .
>>> To unsubscribe from this group and all its topics, send an email to
>>> django-users+unsubscr...@googlegroups.com
>>> . To post to this group, send
>>> email to django-users@googlegroups.com .
>>> Visit this group at http://groups.google.com/group/django-users
>>> . To view this discussion on
>>> the web visit
>>> https://groups.google.com/d/msgid/django-users/9F05E056-A548-4EE4-89AE-0F3F14876503%40gmail.com
>>> .
>>> For more options, visit https://groups.google.com/d/optout
>>> . *
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> * -- 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, send
>>> email to django-users@googlegroups.com .
>>> Visit this group at http://groups.google.com/group/django-users
>>> . To view this discussion on
>>> the web visit
>>> https://groups.google.com/d/msgid/django-users/CABcoaSDY2f0hibB-i-KXd1s5eQvQPHk9cARORmzPMxffUbwUtg%40mail.gmail.com
>>> .
>>> For more options, visit https://groups.google.com/d/optout
>>> . *
>>
>>
>>
>>
>>
>>
>>
>>
>> * -- You received this message because you are subscribed to a topic in
>> the Google Groups "Django users" group. To unsubscribe from this topic,
>> visit
>> https://groups.google.com/d/topic/django-users/uxHvoccBiZc/unsubscribe
>> .
>> To unsubscribe from this group and all its topics, send an email to
>> django-users+unsubscr...@googlegroups.com
>> . To post to this group, send
>> email to django-users@googlegroups.com .
>> Visit this group at http://groups.google.com/group/django-users
>> . To view this discussion on
>> the web visit
>> https://groups.google.com/d/msgid/django-users/CAB%2BAj0sZm-wafWQ2CDhMRSrFKTu4KpWK82BrXBk-g8pGFde_MQ%40mail.gmail.com
>> 

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 all posts from the current date minus 7 days

I want to pull posts from within the same day factoring in the time at the 
moment. Thus if the time is 15:00 GMT now, I want all posts from 14:59:49 
GMT back to 00:00:01 GMT of the same day.

How can I do something like that?

-- 
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, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/03d2a13b-46ea-4e86-ba1a-393016c25360%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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 emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/5d4489bd-9427-4ff1-9453-ceaf6371d545%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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:20 PM, Bill Freeman  wrote:

> 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 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 22, 2015 at 12:03 PM, Bill Freeman > > wrote:*
>>
>>>
>>> *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
 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 Burrus >
 wrote: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 > wrote: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 error message! Thanx to anyone
 who helps me.   "C:\Users\SteveB\Desktop\burrus>.\Scripts\activate(burrus)
 C:\Users\SteveB\Desktop\burrus>python .\Scripts\ django-admin.py
 startproject meC:\Users\SteveB\Desktop\burrus\Scripts\python.exe: can't
 find '__main__' module in '.\\Scripts\\’"You seem to have a space after the
 β€œ\Scripts\”.hth- Tom -- You received this message because you are
 subscribed to a topic in the Google Groups "Django users" group. To
 unsubscribe from this topic, visit
 https://groups.google.com/d/topic/django-users/uxHvoccBiZc/unsubscribe
 .
 To unsubscribe from this group and all its topics, send an email to
 django-users+unsubscr...@googlegroups.com
 . To post to this group, send
 email to django-users@googlegroups.com .
 Visit this group at http://groups.google.com/group/django-users
 . To view this discussion on
 the web visit
 https://groups.google.com/d/msgid/django-users/9F05E056-A548-4EE4-89AE-0F3F14876503%40gmail.com
 .
 For more options, visit https://groups.google.com/d/optout
 . *








 * -- 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, send
 email to django-users@googlegroups.com .
 Visit this group at http://groups.google.com/group/django-users
 . To view this discussion on
 the web visit
 https://groups.google.com/d/msgid/django-users/CABcoaSDY2f0hibB-i-KXd1s5eQvQPHk9cARORmzPMxffUbwUtg%40mail.gmail.com
 .
 For more options, visit https://groups.google.com/d/optout
 . *
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> * -- You received this message because you are subscribed to a topic in
>>> the Google Groups "Django users" group. To unsubscribe from this topic,
>>> visit
>>> https://groups.google.com/d/topic/django-users/uxHvoccBiZc/unsubscribe
>>> .
>>> To unsubscribe from this group and all its topics, send an email to
>>> django-users+unsubscr...@googlegroups.com
>>> . To pos

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 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
> configuration? It will be sure that I'll have to create a separately git
> repo for the app?
>
> Thanks.
>
> --
> 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, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/fe86c493-4ebb-45a9-bb32-f90d445a7f08%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAD4ANxVWzcPgXoEegrDFjWH2Y3fvnBXtJQs2NFRsW1dPJgRJfw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


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,start_date)).aggregate(Sum('off_hours'))
> |
> 
> which simply pulls all posts from the current date minus 7 days
> 
> I want to pull posts from within the same day factoring in the time at
> the moment. Thus if the time is 15:00 GMT now, I want all posts from
> 14:59:49 GMT back to 00:00:01 GMT of the same day.
> 
> How can I do something like that?

I'll assume `pub_date` is a `DateTimeField`. If it's a `DateField`, then
this query isn't possible unless you change it to a `DateTimeField`.

You want something like:

from datetime import timedelta
from django.utils import timezone

now = timezone.now()
one_day_ago = now - timedelta(days=1)

return MyModel.objects.filter(pub_date__range=(one_day_ago, now))

Carl

-- 
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, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/55AFEF6C.7090600%40oddbird.net.
For more options, visit https://groups.google.com/d/optout.


signature.asc
Description: OpenPGP digital signature


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
other features, like text search, or social auth, or blogs, or shopping
carts, there are add on apps for those things that you can find with
google, and which typically have reasonable example usage in their
documentation.  (That's not to say that you won't choose home grown over
some of them, if you needs are a bit different.)

The real trick is knowing what you want to do.  A toy site that you create
as a "learning exercise" is probably going to feel like a toy (like those
things they have you write in a collage level CS class).  If you have
something that you want to put before the world, you will figure out how to
make it feel sharper.  Having a real project in mind is, as always, the
hard part.

And, as mentioned, django is just the server side.  You need to understand
HTML, CSS, and, probably JavaScript and some of its frameworks, like jQuery
or D3.  Unless your project is non-browser, in which case you need to
understand HTTP anyway, and maybe Rest, and probably still HTML (since
that's what the request chain expects.

So, I'd suggest finishing the official tutorial, if you haven't already.
Then look at some add-ons like a blog, a CMS, or a shopping cart, mostly to
see how to add a third party app and configure it.  Then perhaps you'll
have though of something that you want to build for yourself.

On Wed, Jul 22, 2015 at 3:07 PM, Steve Burrus 
wrote:

> 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:20 PM, Bill Freeman  wrote:
>
>> 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 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 22, 2015 at 12:03 PM, Bill Freeman >> > wrote:*
>>>

 *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
> 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 Burrus >
> wrote: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 > wrote: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 error message! Thanx to anyone
> who helps me.   "C:\Users\SteveB\Desktop\burrus>.\Scripts\activate(burrus)
> C:\Users\SteveB\Desktop\burrus>python .\Scripts\ django-admin.py
> startproject meC:\Users\SteveB\Desktop\burrus\Scripts\python.exe: can't
> find '__main__' module in '.\\Scripts\\’"You seem to have a space after 
> the
> β€œ\Scripts\”.hth- Tom -- You received this message because you are
> subscribed to a topic in the Google Groups "Django users" group. To
> unsubscribe from this topic, visit
> https://groups.google.com/d/topic/django-users/uxHvoccBiZc/unsubscribe
> .
> To unsubscribe from this group and all its topics, send an email to
> django-users+unsubscr...@googlegroups.com
> . To post to this group, send
> email to django-users@googlegroups.com .
> Visit this group at http://groups.google.com/group/django-users
> . To view this discussi

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 receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/ddb09fb5-25a6-4328-a9c8-06f8b9a2c947%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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 the last 24 hours. Your accepted answer on SO is
right, except that really you should use `django.timezone.now()` instead
of `datetime.now()`.

Carl

-- 
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, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/55AFFD8C.7040301%40oddbird.net.
For more options, visit https://groups.google.com/d/optout.


signature.asc
Description: OpenPGP digital signature


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 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 
> 
> This happens only on INSERTS and not on UPDATES.
>
> There are a few tickets out there, which have been closed based on the fix 
> applied for 4k characters but haven't found anything for the issue 
> mentioned above. One suggestion posted out was to reduce the number of 
> characters from 4000 to 1000, but it looks more like a hack than a fix. 
> Does anyone know any way of fixing the issue or a workaround for it?
>
>
>   
>

-- 
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, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/18755c37-c473-415a-81fc-ea8127fd4b6a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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 from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/abcf7ff9-03e6-4aa5-903d-68273896b281%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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

-- 
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, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/564ecb34-8176-474a-8175-eb1c5b134522%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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 button click, do work.

On the Django side, you want a view that will capture the change. There's
more than a few ways to do this, but if you're just talking about a
one-and-done like this and you don't want a bunch of extra libraries, I'd
make a simple, dedicated view that takes whatever parameters you need to
specify the correct boolean field on POST and returns a JSON response to
the effect of {success: [true|false], reason: 'failure reason, if any'}.
Don't forget to update your urls.py to reflect the new view.

On the Javascript side, in the registered function, you write code that
both posts to your Django view in an Ajax call and, if successful, makes
the display change.

On Wed, Jul 22, 2015 at 5:35 PM, Jake Rudolph  wrote:

> 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 database.
>
> --
> 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, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/564ecb34-8176-474a-8175-eb1c5b134522%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CA%2Bv0ZYVrTGogQ8vd4eY9NcCy2Xn0KskAcybNJSTSZLEpr0j-FA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


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 Wednesday, July 22, 2015 at 12:31:01 PM UTC-4, 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:

 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


 

 here's my base.html snips
>>> type="text/css" rel="stylesheet" />

 settings.py


 import os

 DEBUG = True
 TEMPLATE_DEBUG = DEBUG

 ROOT = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
 path = lambda *a: os.path.join(ROOT, *a)


 MANAGERS = ADMINS

 DATABASES = {
 'default': {
 'ENGINE': 'django.db.backends.', # Add 'postgresql_psycopg2',
 'mysql', 'sqlite3' or 'oracle'.
 'NAME': '',  # Or path to database file if
 using sqlite3.
 'USER': '',  # Not used with sqlite3.
 'PASSWORD': '',  # Not used with sqlite3.
 'HOST': '',  # Set to empty string for
 localhost. Not used with sqlite3.
 'PORT': '',  # Set to empty string for
 default. Not used with sqlite3.
 }
 }

 # Hosts/domain names that are valid for this site; required if DEBUG is
 False
 # See https://docs.djangoproject.com/en/1.4/ref/settings/#allowed-hosts
 ALLOWED_HOSTS = []

 # Local time zone for this installation. Choices can be found here:
 # http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
 # although not all choices may be available on all operating systems.
 # In a Windows environment this must be set to your system time zone.
 TIME_ZONE = 'America/Chicago'

 # Language code for this installation. All choices can be found here:
 # http://www.i18nguy.com/unicode/language-identifiers.html
 LANGUAGE_CODE = 'en-us'

 SITE_ID = 1

 # If you set this to False, Django will make some optimizations so as
 not
 # to load the internationalization machinery.
 USE_I18N = True

 # If you set this to False, Django will not format dates, numbers and
 # calendars according to the current locale.
 USE_L10N = True

 # If you set this to False, Django will not use timezone-aware
 datetimes.
 USE_TZ = True

 # Absolute filesystem path to the directory that will hold
 user-uploaded files.
 # Example: "/home/media/media.lawrence.com/media/"
 MEDIA_ROOT = ''

 # URL that handles the media served from MEDIA_ROOT. Make sure to use a
 # trailing slash.
 # Examples: "http://media.lawrence.com/media/";, "
 http://example.com/media/";
 MEDIA_URL = ''

 # Absolute path to the directory static files should be collected to.
 # Don't put anything in this directory yourself; store your static files
 # in apps' "static/" subdirectories and in STATICFILES_DIRS.
 # Example: "/home/media/media.lawrence.com/static/"
 STATIC_ROOT = "%s/static/" % path('.')

 # URL prefix for static files.
 # Example: "http://media.lawrence.com/static/";
 STATIC_URL = '/static/'

 # Additional locations of static files
 STATICFILES_DIRS = (
 # Put strings here, like "/home/html/static" or
 "C:/www/django/static".
 # Always use forward slashes, even on Windows.
 # Don't forget to use absolute paths, not relative paths.
 "%s/bumblebee/static/" % path('.'),
 )

 STATICFILES_STORAGE =
 'django.contrib.staticfiles.storage.StaticFilesStorage'

 # List of finder classes that know how to find static files in
 # various locations.
 STATICFILES_FINDERS = (
 'django.contrib.staticfiles.finders.FileSystemFinder',
 'django.contrib.staticfiles.finders.AppDirectoriesFinder',
 #'django.contrib.staticfiles.finders.DefaultStorageFinder',
 )

 # Make this unique, and don't share it with anybody.
 SECRET_KEY = '08xs7wsdab!awp%f=_n5hqb#=_(w(^@=v&dnoi7jay=e85s(hw'

 TEMPLATES = [
 {
 'NAME': 'jinja2',
 'BACKEND': 'django.template.backends.jinja2.Jinja2',

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 = Environment(**options)
env.globals.update({
'static': staticfiles_storage.url,
'url': reverse,
})
return env


and is that right?

On Thu, Jul 23, 2015 at 9:29 AM, Yitao Jiang  wrote:

> ​​
> 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 Wednesday, July 22, 2015 at 12:31:01 PM UTC-4, 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:
>
> 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
>
>
> 
>
> here's my base.html snips
> type="text/css" rel="stylesheet" />
>
> settings.py
>
>
> import os
>
> DEBUG = True
> TEMPLATE_DEBUG = DEBUG
>
> ROOT = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
> path = lambda *a: os.path.join(ROOT, *a)
>
>
> MANAGERS = ADMINS
>
> DATABASES = {
> 'default': {
> 'ENGINE': 'django.db.backends.', # Add 'postgresql_psycopg2',
> 'mysql', 'sqlite3' or 'oracle'.
> 'NAME': '',  # Or path to database file if
> using sqlite3.
> 'USER': '',  # Not used with sqlite3.
> 'PASSWORD': '',  # Not used with sqlite3.
> 'HOST': '',  # Set to empty string for
> localhost. Not used with sqlite3.
> 'PORT': '',  # Set to empty string for
> default. Not used with sqlite3.
> }
> }
>
> # Hosts/domain names that are valid for this site; required if DEBUG
> is False
> # See
> https://docs.djangoproject.com/en/1.4/ref/settings/#allowed-hosts
> ALLOWED_HOSTS = []
>
> # Local time zone for this installation. Choices can be found here:
> # http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
> # although not all choices may be available on all operating systems.
> # In a Windows environment this must be set to your system time zone.
> TIME_ZONE = 'America/Chicago'
>
> # Language code for this installation. All choices can be found here:
> # http://www.i18nguy.com/unicode/language-identifiers.html
> LANGUAGE_CODE = 'en-us'
>
> SITE_ID = 1
>
> # If you set this to False, Django will make some optimizations so as
> not
> # to load the internationalization machinery.
> USE_I18N = True
>
> # If you set this to False, Django will not format dates, numbers and
> # calendars according to the current locale.
> USE_L10N = True
>
> # If you set this to False, Django will not use timezone-aware
> datetimes.
> USE_TZ = True
>
> # Absolute filesystem path to the directory that will hold
> user-uploaded files.
> # Example: "/home/media/media.lawrence.com/media/"
> MEDIA_ROOT = ''
>
> # URL that handles the media served from MEDIA_ROOT. Make sure to use a
> # trailing slash.
> # Examples: "http://media.lawrence.com/media/";, "
> http://example.com/media/";
> MEDIA_URL = ''
>
> # Absolute path to the directory static files should be collected to.
> # Don't put anything in this directory yourself; store your static
> files
> # in apps' "static/" subdirectories and in STATICFILES_DIRS.
> # Example: "/home/media/media.lawrence.com/static/"
> STATIC_ROOT = "%s/static/" % path('.')
>
> # URL prefix for static files.
> # Example: "http://media.lawrence.com/static/";
> STATIC_URL = '/static/'
>
> # Additional locations of static files
> STATICFILES_DIRS = (
> # Put strings here, like "/home/html/static" or
> "C:/www/django/static".
> # Always use forward slashes, even on Windows.
> # Don't forget to use absolute paths, not relative paths.
> "%s/bumblebee/static/" % path('.'),
> )
>
> STATICFILES_STORAGE =
> '

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:
>>>
>>> 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
>>>
>>>
>>> 
>>>
>>> here's my base.html snips
>>>>> type="text/css" rel="stylesheet" />
>>>
>>> settings.py
>>>
>>>
>>> import os
>>>
>>> DEBUG = True
>>> TEMPLATE_DEBUG = DEBUG
>>>
>>> ROOT = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
>>> path = lambda *a: os.path.join(ROOT, *a)
>>>
>>>
>>> MANAGERS = ADMINS
>>>
>>> DATABASES = {
>>> 'default': {
>>> 'ENGINE': 'django.db.backends.', # Add 'postgresql_psycopg2',
>>> 'mysql', 'sqlite3' or 'oracle'.
>>> 'NAME': '',  # Or path to database file if
>>> using sqlite3.
>>> 'USER': '',  # Not used with sqlite3.
>>> 'PASSWORD': '',  # Not used with sqlite3.
>>> 'HOST': '',  # Set to empty string for
>>> localhost. Not used with sqlite3.
>>> 'PORT': '',  # Set to empty string for
>>> default. Not used with sqlite3.
>>> }
>>> }
>>>
>>> # Hosts/domain names that are valid for this site; required if DEBUG is
>>> False
>>> # See https://docs.djangoproject.com/en/1.4/ref/settings/#allowed-hosts
>>> ALLOWED_HOSTS = []
>>>
>>> # Local time zone for this installation. Choices can be found here:
>>> # http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
>>> # although not all choices may be available on all operating systems.
>>> # In a Windows environment this must be set to your system time zone.
>>> TIME_ZONE = 'America/Chicago'
>>>
>>> # Language code for this installation. All choices can be found here:
>>> # http://www.i18nguy.com/unicode/language-identifiers.html
>>> LANGUAGE_CODE = 'en-us'
>>>
>>> SITE_ID = 1
>>>
>>> # If you set this to False, Django will make some optimizations so as not
>>> # to load the internationalization machinery.
>>> USE_I18N = True
>>>
>>> # If you set this to False, Django will not format dates, numbers and
>>> # calendars according to the current locale.
>>> USE_L10N = True
>>>
>>> # If you set this to False, Django will not use timezone-aware datetimes.
>>> USE_TZ = True
>>>
>>> # Absolute filesystem path to the directory that will hold user-uploaded
>>> files.
>>> # Example: "/home/media/media.lawrence.com/media/"
>>> MEDIA_ROOT = ''
>>>
>>> # URL that handles the media served from MEDIA_ROOT. Make sure to use a
>>> # trailing slash.
>>> # Examples: "http://media.lawrence.com/media/";, "
>>> http://example.com/media/";
>>> MEDIA_URL = ''
>>>
>>> # Absolute path to the directory static files should be collected to.
>>> # Don't put anything in this directory yourself; store your static files
>>> # in apps' "static/" subdirectories and in STATICFILES_DIRS.
>>> # Example: "/home/media/media.lawrence.com/static/"
>>> STATIC_ROOT = "%s/static/" % path('.')
>>>
>>> # URL prefix for static files.
>>> # Example: "http://media.lawrence.com/static/";
>>> STATIC_URL = '/static/'
>>>
>>> # Additional locations of static files
>>> STATICFILES_DIRS = (
>>> # Put strings here, like "/home/html/static" or
>>> "C:/www/django/static".
>>> # Always use forward slashes, even on Windows.
>>> # Don't forget to use absolute paths, not relative paths.
>>> "%s/bumblebee/static/" % path('.'),
>>> )
>>>
>>> STATICFILES_STORAGE =
>>> 'django.contrib.staticfiles.storage.StaticFilesStorage'
>>>
>>> # List of finder classes that know how to find static files in
>>> # various locations.
>>> STATICFILES_FINDERS = (
>>> 'django.contrib.staticfiles.finders.FileSystemFinder',
>>> 'django.contrib.staticfiles.finders.AppDirectoriesFinder',
>>> #'django.contrib.staticfiles.finders.DefaultStorageFinder',
>>> )
>>>
>>> # Make this unique, and don't share it with anybody.
>>> SECRET_KEY = '08xs7wsdab!awp%f=_n5hqb#=_(w(^@=v&dnoi7jay=e85s(hw'
>>>
>>> TEMPLATES = [
>>> {
>>> 'NAME': 'jinja2',
>>> 'BACKEND': 'django.template.backends.jinja2.Jinja2',
>>> 'APP_DIRS': True,
>>> 'DIRS': [
>>>  "%s/templates/jinja2" % path('.'),
>>> ],
>>> 'OPTIONS': {
>>> 'autoescape': True,
>>> 'auto_reload': DEBUG,
>>> 'environment': 'bumblebee.jinja2.environment',
>>> },
>>> },
>>> {
>>> 'NAME': 'django',
>>> 'BACKEND': 'django.template.backends.django.DjangoTemplates',
>>>   

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 Wednesday, 22 July 2015 06:46:02 UTC+2, Ezequiel wrote:
>
>
> On Monday, July 20, 2015 at 3:58:31 AM UTC-3, Derek wrote:
>>
>> You can also look at http://djangosuit.com/ - works very well.  Free for 
>> non-commercial projects.  In the middle of an upgrade to Bootstrap 3.
>>
>
> Looks very good, but it is not responsive and suitable for mobile, right?
> Regards
> http://flickrock.com/mikelpierre 
>

-- 
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, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/83b98eee-567a-4284-9dfb-e0a496f72d6d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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 Longland <
> stu...@longlandclan.yi.org > wrote:
>
>> On 18/07/15 11:00, Ezequiel Bertti wrote:
>> > Do you already see this project?
>> >
>> > https://github.com/sshwsfc/django-xadmin
>>
>> Unfortunately their homepage just swears at me in Chinese.
>
>
> http://demo.xadmin.io/
>

-- 
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, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/3fd6dbd5-95d7-4c2b-b41d-36995df24d9b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.