Is there a way to prevent /static directory browsing?

2012-02-06 Thread Robert Steckroth
Hey Guys, I am looking for a way to hide my media files from direct access.
What is the common practice here?
If one would browse to http://www.example.com/static in one of my Django
sites there would be
a list of all the files used therein. Is there a way to hide/prevent this
url from having a directory tree?

-- 
Bust0ut Surgemcgee  ---
BudTVNetwork.com
RadioWeedShow.com
PBDefence.com
"Bringing entertainment to Unix"
"Finding the exit without looking"

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



Re: Is there a way to prevent /static directory browsing?

2012-02-06 Thread Robert Steckroth
Thanks much guys. +1 Django community.

On Mon, Feb 6, 2012 at 9:59 AM, Denis Darii  wrote:

> Under nginx you can set "autoindex" to "off" for "/static/" location:
>
> location /static/
> {
> autoindex off;
> root /path/to/your/static/;
> }
>
> More info here: http://wiki.nginx.org/HttpAutoindexModule
>
> On Mon, Feb 6, 2012 at 3:53 PM, Robert Steckroth <
> robertsteckr...@gmail.com> wrote:
>
>> Hey Guys, I am looking for a way to hide my media files from
>> direct access. What is the common practice here?
>> If one would browse to http://www.example.com/static in one of my Django
>> sites there would be
>> a list of all the files used therein. Is there a way to hide/prevent this
>> url from having a directory tree?
>>
>> --
>> Bust0ut Surgemcgee  ---
>> BudTVNetwork.com
>> RadioWeedShow.com
>> PBDefence.com
>> "Bringing entertainment to Unix"
>> "Finding the exit without looking"
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Django users" group.
>> To post to this group, send email to django-users@googlegroups.com.
>> To unsubscribe from this group, send email to
>> django-users+unsubscr...@googlegroups.com.
>> For more options, visit this group at
>> http://groups.google.com/group/django-users?hl=en.
>>
>
>
>
> --
> This e-mail and any file transmitted with it is intended only for the
> person or entity to which is addressed and may contain information that is
> privileged, confidential or otherwise protected from disclosure. Copying,
> dissemination or use of this e-mail or the information herein by anyone
> other than the intended recipient is prohibited. If you are not the
> intended recipient, please notify the sender immediately by return e-mail,
> delete this communication and destroy all copies.
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>



-- 
Bust0ut Surgemcgee  ---
BudTVNetwork.com
RadioWeedShow.com
PBDefence.com
"Bringing entertainment to Unix"
"Finding the exit without looking"

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



python manage.py syncdb Error: No module named messages

2012-03-16 Thread Robert Steckroth
Hey Gang, I have a Django project built on a Debian server at home using http://djangobb.org";>DjangoBB.
It is working on the Debain OS but I am having huge problems on the Centos
server. This seams to be the farthest I can go with it. -->
#-->python manage.py syncdb
Error: No module named messages
This probably is a dependency issue with the Cpanel and Mysql. Can any of
you offer some advice or experience?



-- 
Bust0ut, Surgemcgee: Systems Engineer ---
PBDefence.com
BudTVNetwork.com
RadioWeedShow.com
"Bringing entertainment to Unix"
"Finding the exit without looking"

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



Re: python manage.py syncdb Error: No module named messages

2012-03-16 Thread Robert Steckroth
Also can I assume, regarding the above question above, that "messages" is
the last thing Django is processing since it is at the
bottom of the list in installed apps? I.e. If I fix the messages error it
might work?

INSTALLED_APPS = (
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.messages',
'django.contrib.staticfiles',
'django.contrib.sitemaps',
'django.contrib.admin',
'django.contrib.admindocs',

'home',
'contact',
'registration',
'captcha_utils',
'registration_app',
'django_authopenid',
'djangobb_forum',
'haystack',
'messages',
# Uncomment the next line to enable the admin:
# 'django.contrib.admin',
# Uncomment the next line to enable admin documentation:
# 'django.contrib.admindocs',
)



> --
> Bust0ut, Surgemcgee: Systems Engineer ---
> PBDefence.com
> BudTVNetwork.com
> RadioWeedShow.com
> "Bringing entertainment to Unix"
> "Finding the exit without looking"
>
>


-- 
Bust0ut, Surgemcgee: Systems Engineer ---
PBDefence.com
BudTVNetwork.com
RadioWeedShow.com
"Bringing entertainment to Unix"
"Finding the exit without looking"

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



Re: python manage.py syncdb Error: No module named messages

2012-03-16 Thread Robert Steckroth
Ya, it is probably a path issue. It is set as this by the way -->
 ['',
'/usr/lib64/python2.4/site-packages/MySQL_python-1.2.3c1-py2.4-linux-x86_64.egg',
'/usr/lib64/python24.zip', '/usr/lib64/python2.4',
'/usr/lib64/python2.4/plat-linux2', '/usr/lib64/python2.4/lib-tk',
'/usr/lib64/python2.4/lib-dynload', '/usr/lib64/python2.4/site-packages',
'/usr/lib/python2.4/site-packages']


-- 
Bust0ut, Surgemcgee: Systems Engineer ---
PBDefence.com
BudTVNetwork.com
RadioWeedShow.com
"Bringing entertainment to Unix"
"Finding the exit without looking"

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



Where are the site variables set?

2012-03-29 Thread Robert Steckroth
Hello Gang, I have two other servers on Debian which have the correct site
variables set. E.g. site.name, site.domain.
But on this particulaly crazy Centos setup the site variable is set to the
default (www.example.com).
It shows when I use it in this manner -->
{% load i18n %}
{% trans "Simply follow the link below to complete your Activation at" %}
{{ site.name }}:
http://{{ site.domain }}{% url registration_activate activation_key %}
{% blocktrans %}Link is valid for {{ expiration_days }} days.{%
endblocktrans %}

How do I get the proper information in the site dictionary? Also, if
applicable, might this
have anything to do with my crazy Centos/VirtualEnv setup?






-- 
Bust0ut, Surgemcgee: Systems Engineer ---
PBDefence.com
BudTVNetwork.com
RadioWeedShow.com
"Bringing entertainment to Unix"
"Finding the exit without looking"

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



Question regarding cloud deployment and bash automatization

2012-06-04 Thread Robert Steckroth
Hey Gang, I have created a juju charm to deploy multiple django apps
to ec2. Currently, I
am working on multiple site control and need help with the django_site table.

When am instance is destroyed, the database remains but django is
re-installed. The
problem arises when old database is kept around and reused with a
fresh django install.
This new django install has the same settings but the django_site
table can get funky.

Here is the start of my script to at least set the correct database
id, name, and domain.
It is hack right here, so I am ask for your thoughts or suggestions. Thank you.

NOTE: the regular expressions are simply parsing the settings.py file
for site_id and
if django.contib.sites is un-commented.

site_domain="www.example.com"
site_name="example.com"

site_id="$(cat $(find . -name 'settings.py') | grep -xv " *#.*" | grep
".*SITE_ID\ *=.*" | sed 's/#.*//g' | sed "s/.*SITE_ID *\= *\(.*\)
*/\1/g" | sed "s/'//g")"
#echo "from django.contrib.sites.models import Site;
Site.objects.create(pk=$site_id, domain='here.example.com',
name='example.com')" | python manage.py shell
# For now, just gonna put in a place holder if the user has listed it
in installed_apps
sites_used="$(cat $(find . -name 'settings.py') | grep -xv " *#.*" |
grep ".*django.contrib.sites.*" | sed 's/#.*//g')"

if [ -n "$sites_used" ]; then
 juju-log "Found django.contrib.sites in installed apps. Creating
single table as defined in this script."
 echo "from django.contrib.sites.models import Site; entry =
Site.objects.get(pk=$site_id); entry.objects.all().delete();
Site.objects.create(pk=$site_id, domain='$site_domain',
name='$site_name')" | python manage.py shell
fi



Here are my mysteries:

1) The python manage.py shell comand is giving me this error -->
AttributeError: Manager isn't accessible via Site instances
2) How can I retrieve the site_name and site_domain varables
with bash scripting for the project.

Keep in mind that there can be no user input in the script but I do
have all username and passwords available.





--
Bust0ut, Surgemcgee: Systems Engineer ---
PBDefence.com
BudTVNetwork.com
RadioWeedShow.com
"Bringing entertainment to Unix"

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



Now I know I solved this before, but...

2012-06-04 Thread Robert Steckroth
Can anyone explain this on to me. It seams like an easy fix, but
I can't get my fingers on it. Any help is appreciated.

In template 
/home/sites/radio_show/radio/serve/templates/registration/activation_email.txt,
error at line 5
unindent does not match any outer indentation level

1  {% load i18n %}
2   
3   {% trans "Simply follow the link below to complete your Activation
at" %} {{ site.name }}:
4   
5   http://{{ site.domain }}{% url registration_activate activation_key %}
6   
7   {% blocktrans %}Link is valid for {{ expiration_days }} days.{%
endblocktrans %}
8   




-- 
Bust0ut, Surgemcgee: Systems Engineer ---
PBDefence.com
BudTVNetwork.com
RadioWeedShow.com
"Bringing entertainment to Unix"

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



Re: Question regarding cloud deployment and bash automatization

2012-06-05 Thread Robert Steckroth
For what it's worth, this script below is the best I could come up
with so far -->

site_domain="radioweedshow.com"
site_name="www.radioweedshow.com"

if [ -n "$sites_used" ]; then
 juju-log "Found django.contrib.sites in installed apps. Creating
single table as defined in this script."
echo "from django.contrib.sites.models import Site
if Site.objects.filter(id=$site_id).exists():
   Site.objects.filter(id=$site_id).update(id=$site_id,
domain='$site_domain', name='$site_name')
" | python manage.py shell

echo "from django.contrib.sites.models import Site
if not Site.objects.filter(id=$site_id).exists():
   Site.objects.create(id=$site_id, domain='$site_domain',
name='$site_name')" | python manage.py shell
fi


P.S. I still need a reliable way to fetch the site_name and
site_domain variables with bash.
Should be admin-less when I am through with it. On-wards with the research.



On Mon, Jun 4, 2012 at 12:21 PM, Robert Steckroth
 wrote:
> Hey Gang, I have created a juju charm to deploy multiple django apps
> to ec2. Currently, I
> am working on multiple site control and need help with the django_site table.
>
> When am instance is destroyed, the database remains but django is
> re-installed. The
> problem arises when old database is kept around and reused with a
> fresh django install.
> This new django install has the same settings but the django_site
> table can get funky.
>
> Here is the start of my script to at least set the correct database
> id, name, and domain.
> It is hack right here, so I am ask for your thoughts or suggestions. Thank 
> you.
>
> NOTE: the regular expressions are simply parsing the settings.py file
> for site_id and
> if django.contib.sites is un-commented.
>
> site_domain="www.example.com"
> site_name="example.com"
>
> site_id="$(cat $(find . -name 'settings.py') | grep -xv " *#.*" | grep
> ".*SITE_ID\ *=.*" | sed 's/#.*//g' | sed "s/.*SITE_ID *\= *\(.*\)
> */\1/g" | sed "s/'//g")"
> #echo "from django.contrib.sites.models import Site;
> Site.objects.create(pk=$site_id, domain='here.example.com',
> name='example.com')" | python manage.py shell
> # For now, just gonna put in a place holder if the user has listed it
> in installed_apps
> sites_used="$(cat $(find . -name 'settings.py') | grep -xv " *#.*" |
> grep ".*django.contrib.sites.*" | sed 's/#.*//g')"
>
> if [ -n "$sites_used" ]; then
>     juju-log "Found django.contrib.sites in installed apps. Creating
> single table as defined in this script."
>     echo "from django.contrib.sites.models import Site; entry =
> Site.objects.get(pk=$site_id); entry.objects.all().delete();
> Site.objects.create(pk=$site_id, domain='$site_domain',
> name='$site_name')" | python manage.py shell
> fi
>
>
>
> Here are my mysteries:
>
> 1) The python manage.py shell comand is giving me this error -->
>    AttributeError: Manager isn't accessible via Site instances
> 2) How can I retrieve the site_name and site_domain varables
>    with bash scripting for the project.
>
> Keep in mind that there can be no user input in the script but I do
> have all username and passwords available.
>
>
>
>
>
> --
> Bust0ut, Surgemcgee: Systems Engineer ---
> PBDefence.com
> BudTVNetwork.com
> RadioWeedShow.com
> "Bringing entertainment to Unix"



-- 
Bust0ut, Surgemcgee: Systems Engineer ---
PBDefence.com
BudTVNetwork.com
RadioWeedShow.com
"Bringing entertainment to Unix"

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



Update database with model changes

2012-06-07 Thread Robert Steckroth
Hey Gang, is there a way to update the database with a syncdb or
other command after a model has been changed? I added a field
the the model after the syncdb.


-- 
Bust0ut, Surgemcgee: Systems Engineer ---
PBDefence.com
BudTVNetwork.com
RadioWeedShow.com
"Bringing entertainment to Unix"

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



Re: Update database with model changes

2012-06-07 Thread Robert Steckroth
Well, that would be a lesson for me.
Looks like I will have to incorporate south into my endeavours.
Much thanks to the Django community.




On Thu, Jun 7, 2012 at 8:55 PM, Psamathos  wrote:
> South will handle schema migrations for you: http://south.aeracode.org/
>
> This tutorial is a good place to start and covers the basic set-up:
> http://south.aeracode.org/docs/tutorial/part1.html
>
> Basically, you want to revert your changes so your model matches your
> database, install south and configure your app to use it, then convert your
> models to use south by typing:
>
> python manage.py schemamigration [appname] --initial
>
> This creates migration files which are stored in [appname]/migrations/
> You can then apply these migrations using this command:
>
> python manage.py migrate [appname]
>
> Note that you need to do this for each app in your project. When you change
> the model and want to update the database, you can create migration files
> automatically with:
>
> python manage.py schemamigration [appname] --auto
>
> Then just apply them as you did with the initial migration.
>
> Some best practices for avoiding issues with South:
>
> If your model has a NOT NULL field then it should always have a default.
> That way South will know what value to fill in when it creates the field.
> If you are changing a pre-existing model field drastically and don't care
> about losing data, I find it most convenient to remove the field, migrate
> the schema, then add the field again with the new specification . This way
> you will avoid conflicts with any existing constraints. Note that to
> preserve the data you'll need to create a (more complicated) data migration.
>
> Hope this helps.
>
>
> On Thursday, 7 June 2012 14:05:13 UTC-4, Surgemcgee wrote:
>>
>> Hey Gang, is there a way to update the database with a syncdb or
>> other command after a model has been changed? I added a field
>> the the model after the syncdb.
>>
>>
>> --
>> Bust0ut, Surgemcgee: Systems Engineer ---
>> PBDefence.com
>> BudTVNetwork.com
>> RadioWeedShow.com
>> "Bringing entertainment to Unix"
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/django-users/-/-TIpt70lWX4J.
>
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.



-- 
Bust0ut, Surgemcgee: Systems Engineer ---
PBDefence.com
BudTVNetwork.com
RadioWeedShow.com
"Bringing entertainment to Unix"

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



Run manage.py syncdb without auth prompt

2012-06-12 Thread Robert Steckroth
Hey Gang, I need to install the auth system but have Django answer
"no" automatically for the super user creation. This happens when a -->
python manage.py syncdb <- is run for the first time on a project.
Should I alter the manage.py script? If, not, where should I look to
accomplish this?

-- 
Bust0ut, Surgemcgee: Systems Engineer ---
PBDefence.com
BudTVNetwork.com
RadioWeedShow.com
"Bringing entertainment to Unix"

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



Re: Run manage.py syncdb without auth prompt

2012-06-12 Thread Robert Steckroth
Perfect, and I appreciate your your time.


On Tue, Jun 12, 2012 at 11:02 PM, Russell Keith-Magee
 wrote:
> On Wed, Jun 13, 2012 at 10:00 AM, Robert Steckroth
>  wrote:
>> Hey Gang, I need to install the auth system but have Django answer
>> "no" automatically for the super user creation. This happens when a -->
>> python manage.py syncdb <- is run for the first time on a project.
>> Should I alter the manage.py script? If, not, where should I look to
>> accomplish this?
>
> I'm going to guess that the reason that you want to do this is so that
> you can run sycndb in some sort of automated deployment script. If
> that's the case, what you're looking for is the --noinput option.
>
> You can pass --noinput to lots of Django management commands,
> including syncdb; if you do this, you won't be asked any questions
> that require user input.
>
> Yours,
> Russ Magee %-)
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Django users" group.
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to 
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/django-users?hl=en.
>



-- 
Bust0ut, Surgemcgee: Systems Engineer ---
PBDefence.com
BudTVNetwork.com
RadioWeedShow.com
"Bringing entertainment to Unix"

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



Looking for common practice suggestion.

2012-07-03 Thread Robert Steckroth
Hey Gang, I am writing a framework to install django projects to the cloud.
Currently I have the user specifying
the site domain and site name in a config file for the django.sites
framework and providing the site_id in settings.py.
Personally, I change the django.sites entries by issuing mysql commands to
the database.
Can any of you provide the most common/best way that the
django.sites object is created?
Is it usually provided in the settings.py file? Or is a database change
your current method?
The docs don't seem to get into how this object get created. Also, is this
object created with the syncdb command?
Much thanks to any help.

-- 
Bust0ut, Surgemcgee: Systems Engineer ---
PBDefence.com
BudTVNetwork.com
RadioWeedShow.com
"Bringing entertainment to Unix"

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



Re: Controlling access

2012-07-03 Thread Robert Steckroth
Yes, I have seen some very impressive admin media controls for websites
with larger projects
having wordpress like functionality. However, there are not easy or cheap
to make.
I recommend checking open-souce projects for a good start.


On Tue, Jul 3, 2012 at 1:39 PM, Larry Martell wrote:

> I have a client that asked me to add some new functionality to their
> app, and then they said 'This new functionality should be controlled
> in Django admin so that only the admin user can see it.' Is there a
> way to control this in Django admin? I know in the python code i can
> check to see if they're the admin user or not and allow or disallow
> access, but what they're saying makes it seem I can just do it admin.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>


-- 
Bust0ut, Surgemcgee: Systems Engineer ---
PBDefence.com
BudTVNetwork.com
RadioWeedShow.com
"Bringing entertainment to Unix"

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



Re: Django Developer, Washington, D.C.

2012-07-03 Thread Robert Steckroth
There are jobs available in Minnesota for any interested as well. More info
can be found here -->
http://www.comfychairconsulting.com/


On Tue, Jul 3, 2012 at 11:09 AM, Jon Black  wrote:

> And also on http://djangogigs.com/
> --
> Jon Black
> www.jonblack.org
>
>
> On Tue, Jul 3, 2012, at 11:03, Itamar Reis Peixoto wrote:
> > On Tue, Jul 3, 2012 at 10:43 AM, Andrew Moore  >
> > wrote:
> > > Hello group.
> > >
> > > National Geographic is seeking Django developers, for permanent
> full-time
> > > positions at their Washington, D.C. headquarters.
> > >
> > > If I can share more details, please let me know.
> propensitygr...@gmail.com
> > > or and...@themidtowngroup.com.
> > >
> > > Thanks!
> > >
> >
> >
> > I think you can post this job at python.org job board.
> >
> >
> >
> >
> > --
> > 
> >
> > Itamar Reis Peixoto
> > msn, google talk: ita...@ispbrasil.com.br
> > +55 11 4063 5033 (FIXO SP)
> > +55 34 9158 9329 (TIM)
> > +55 34 8806 3989 (OI)
> > +55 34 3221 8599 (FIXO MG)
> >
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Django users" group.
> > To post to this group, send email to django-users@googlegroups.com.
> > To unsubscribe from this group, send email to
> > django-users+unsubscr...@googlegroups.com.
> > For more options, visit this group at
> > http://groups.google.com/group/django-users?hl=en.
> >
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>


-- 
Bust0ut, Surgemcgee: Systems Engineer ---
PBDefence.com
BudTVNetwork.com
RadioWeedShow.com
"Bringing entertainment to Unix"

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



Re: Controlling access

2012-07-03 Thread Robert Steckroth
Django is a very open-ended framework. The admin system is built around
developer/user customization.



On Tue, Jul 3, 2012 at 1:51 PM, Larry Martell wrote:

> On Tue, Jul 3, 2012 at 11:49 AM, Robert Steckroth
>  wrote:
> > Yes, I have seen some very impressive admin media controls for websites
> with
> > larger projects
> > having wordpress like functionality. However, there are not easy
> or cheap to
> > make.
> > I recommend checking open-souce projects for a good start.
>
> But there's nothing inherently built into Django admin that supports
> this, correct?
>
> >
> >
> > On Tue, Jul 3, 2012 at 1:39 PM, Larry Martell 
> > wrote:
> >>
> >> I have a client that asked me to add some new functionality to their
> >> app, and then they said 'This new functionality should be controlled
> >> in Django admin so that only the admin user can see it.' Is there a
> >> way to control this in Django admin? I know in the python code i can
> >> check to see if they're the admin user or not and allow or disallow
> >> access, but what they're saying makes it seem I can just do it admin.
> >>
> >> --
> >> You received this message because you are subscribed to the Google
> Groups
> >> "Django users" group.
> >> To post to this group, send email to django-users@googlegroups.com.
> >> To unsubscribe from this group, send email to
> >> django-users+unsubscr...@googlegroups.com.
> >> For more options, visit this group at
> >> http://groups.google.com/group/django-users?hl=en.
> >>
> >
> >
> >
> > --
> > Bust0ut, Surgemcgee: Systems Engineer ---
> > PBDefence.com
> > BudTVNetwork.com
> > RadioWeedShow.com
> > "Bringing entertainment to Unix"
> >
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Django users" group.
> > To post to this group, send email to django-users@googlegroups.com.
> > To unsubscribe from this group, send email to
> > django-users+unsubscr...@googlegroups.com.
> > For more options, visit this group at
> > http://groups.google.com/group/django-users?hl=en.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>


-- 
Bust0ut, Surgemcgee: Systems Engineer ---
PBDefence.com
BudTVNetwork.com
RadioWeedShow.com
"Bringing entertainment to Unix"

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



Re: Looking for common practice suggestion.

2012-07-03 Thread Robert Steckroth
Well, I guess the user will have to specify the domain and name in the
config file.
I was hoping the information could be provided in the settings file. Only
other way is the
admin system which isn't necessary for an otherwise completely automated
process.

On Tue, Jul 3, 2012 at 1:33 PM, Robert Steckroth
wrote:

> Hey Gang, I am writing a framework to install django projects to the
> cloud. Currently I have the user specifying
> the site domain and site name in a config file for the django.sites
> framework and providing the site_id in settings.py.
> Personally, I change the django.sites entries by issuing mysql commands to
> the database.
> Can any of you provide the most common/best way that the
> django.sites object is created?
> Is it usually provided in the settings.py file? Or is a database change
> your current method?
> The docs don't seem to get into how this object get created. Also, is this
> object created with the syncdb command?
> Much thanks to any help.
>
> --
> Bust0ut, Surgemcgee: Systems Engineer ---
> PBDefence.com
> BudTVNetwork.com
> RadioWeedShow.com
> "Bringing entertainment to Unix"
>
>


-- 
Bust0ut, Surgemcgee: Systems Engineer ---
PBDefence.com
BudTVNetwork.com
RadioWeedShow.com
"Bringing entertainment to Unix"

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



Using different ports in views?

2012-08-31 Thread Robert Steckroth
Hello gang, I would like to have some of my django views send the
response to a different ports.
Is it possible to specify which port to use in the views?
-- 
Bust0ut, Surgemcgee: Systems Engineer ---
surgemcgee.com
BudTVNetwork.com
RadioWeedShow.com
"Bringing entertainment to Unix"

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



Re: Using different ports in views?

2012-08-31 Thread Robert Steckroth
Well, I guess I will have to have apache proxy the outgoing request then.

On Fri, Aug 31, 2012 at 7:49 PM, Robert Steckroth
 wrote:
> Hello gang, I would like to have some of my django views send the
> response to a different ports.
> Is it possible to specify which port to use in the views?
> --
> Bust0ut, Surgemcgee: Systems Engineer ---
> surgemcgee.com
> BudTVNetwork.com
> RadioWeedShow.com
> "Bringing entertainment to Unix"



-- 
Bust0ut, Surgemcgee: Systems Engineer ---
surgemcgee.com
BudTVNetwork.com
RadioWeedShow.com
"Bringing entertainment to Unix"

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



Re: Using different ports in views?

2012-09-01 Thread Robert Steckroth
I appreciate you taking the time to respond to my inquiry. I believe
that my question was
hastily typed and therefor too brief for an adequate response. Next
time I poll this community, it will be more
zealous and less anxious regarding my/our Django development. Sincerely Robert.

On Sat, Sep 1, 2012 at 6:07 AM, Serge G. Spaolonzi  wrote:
> Django's internal webserver is worth for development proposes only. In
> production environments you should use apache/wsgi or another server.
> Facing a similar situation i would create different projects for each
> port that share the same database. From the development server you can
> run each project in different ports, from apache/wsgi you can create a
> different virtualhost from each port.
>
> Regards
>
> On Fri, Aug 31, 2012 at 8:49 PM, Robert Steckroth
>  wrote:
>> Hello gang, I would like to have some of my django views send the
>> response to a different ports.
>> Is it possible to specify which port to use in the views?
>> --
>> Bust0ut, Surgemcgee: Systems Engineer ---
>> surgemcgee.com
>> BudTVNetwork.com
>> RadioWeedShow.com
>> "Bringing entertainment to Unix"
>>
>> --
>> You received this message because you are subscribed to the Google Groups 
>> "Django users" group.
>> To post to this group, send email to django-users@googlegroups.com.
>> To unsubscribe from this group, send email to 
>> django-users+unsubscr...@googlegroups.com.
>> For more options, visit this group at 
>> http://groups.google.com/group/django-users?hl=en.
>>
>
>
>
> --
> Serge G. Spaolonzi
> Cobalys Systems
> http://www.cobalys.com
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Django users" group.
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to 
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/django-users?hl=en.
>



-- 
Bust0ut, Surgemcgee: Systems Engineer ---
surgemcgee.com
BudTVNetwork.com
RadioWeedShow.com
"Bringing entertainment to Unix"

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



Using the CSRF token with two views

2012-09-01 Thread Robert Steckroth
Hello gang, I have created a dynamic template loading system utilizing
ajax inside the template.
The templates and data are retrieved and displayed as expected. The
problem is that the contact form
is provided by one view and processed by another. This, of course
raises a CSRF token error in the posting
submit. What is the best way to inform the processing view of my CSRF
token information from the providing one.
I am unable to combine these views for "design structure" reasons.
Also, the form/template can be pulled from the
providing view many times in the template (not just at load time). I
am thinking along the lines of a session variable and
would hate to exempt the CSRF token in the views for security reasons.

-- 
Bust0ut, Surgemcgee: Systems Engineer ---
surgemcgee.com
BudTVNetwork.com
RadioWeedShow.com
"Bringing entertainment to Unix"

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



Re: Using the CSRF token with two views

2012-09-02 Thread Robert Steckroth
No actually the the template that renders the form is separate from
the template that submits it.
It is working with a @csrf_exempt on the processing view however. I
guess I need a way to inform form processing view
of the token it was given in the form serving view. I should be able
to provide this with a caching or session variable.
It was a pain in the rear, but the result is very professional. I am
just gonna ignore it for now until it goes public.


On Sun, Sep 2, 2012 at 1:16 AM, Melvyn Sopacua  wrote:
> On 2-9-2012 0:52, Robert Steckroth wrote:
>
>> The
>> problem is that the contact form
>> is provided by one view and processed by another. This, of course
>> raises a CSRF token error in the posting
>> submit.
> I don't see the logic of this, unless by view you mean request. This is
> also a bit confusing:
>>  I have created a dynamic template loading system utilizing
>> ajax inside the template.
>
> If by template you mean django template, then the above can not ever be
> created. AJAX is incapable of generating server side code by design.
> What is more likely, is that your template generates javascript that
> fetches bits of HTML using other urls, that are then coupled to other
> django templates and this gives a similar end result in which a page
> consists of dynamic blocks akin to django's {% include %} tag.
>
> However, the execution flow is still that django provides the content
> for the browser, so the contact form can have it's own CSRF token. Are
> you providing that token in the template that renders the contact form?
> --
> Melvyn Sopacua
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Django users" group.
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to 
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/django-users?hl=en.
>



-- 
Bust0ut, Surgemcgee: Systems Engineer ---
surgemcgee.com
BudTVNetwork.com
RadioWeedShow.com
"Bringing entertainment to Unix"

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



Re: Using the CSRF token with two views

2012-09-04 Thread Robert Steckroth
Ya, that sounds like the way to go, thank you. The project is shaping
up nicely, but
you both were right about the JavaScript. I am thinking on
a Django parsing view to do preliminary regex matching. Right now
it is in the handled by the client with a 1-2 second delay/loading time.
It looks incredibly professional though.

On Tue, Sep 4, 2012 at 4:29 PM, Bill Freeman  wrote:
> Of course, JavaScript will be involved.  You can probably get the token
> from the cookies, but you could also add code to your (first) template
> to set a JS variable to the token.  Then, when you (on the client side)
> get the form to display, you can insert the appropriate hidden element.
>
> Bill
>
> On Sun, Sep 2, 2012 at 5:06 PM, Robert Steckroth
>  wrote:
>> No actually the the template that renders the form is separate from
>> the template that submits it.
>> It is working with a @csrf_exempt on the processing view however. I
>> guess I need a way to inform form processing view
>> of the token it was given in the form serving view. I should be able
>> to provide this with a caching or session variable.
>> It was a pain in the rear, but the result is very professional. I am
>> just gonna ignore it for now until it goes public.
>>
>>
>> On Sun, Sep 2, 2012 at 1:16 AM, Melvyn Sopacua  wrote:
>>> On 2-9-2012 0:52, Robert Steckroth wrote:
>>>
>>>> The
>>>> problem is that the contact form
>>>> is provided by one view and processed by another. This, of course
>>>> raises a CSRF token error in the posting
>>>> submit.
>>> I don't see the logic of this, unless by view you mean request. This is
>>> also a bit confusing:
>>>>  I have created a dynamic template loading system utilizing
>>>> ajax inside the template.
>>>
>>> If by template you mean django template, then the above can not ever be
>>> created. AJAX is incapable of generating server side code by design.
>>> What is more likely, is that your template generates javascript that
>>> fetches bits of HTML using other urls, that are then coupled to other
>>> django templates and this gives a similar end result in which a page
>>> consists of dynamic blocks akin to django's {% include %} tag.
>>>
>>> However, the execution flow is still that django provides the content
>>> for the browser, so the contact form can have it's own CSRF token. Are
>>> you providing that token in the template that renders the contact form?
>>> --
>>> Melvyn Sopacua
>>>
>>> --
>>> You received this message because you are subscribed to the Google Groups 
>>> "Django users" group.
>>> To post to this group, send email to django-users@googlegroups.com.
>>> To unsubscribe from this group, send email to 
>>> django-users+unsubscr...@googlegroups.com.
>>> For more options, visit this group at 
>>> http://groups.google.com/group/django-users?hl=en.
>>>
>>
>>
>>
>> --
>> Bust0ut, Surgemcgee: Systems Engineer ---
>> surgemcgee.com
>> BudTVNetwork.com
>> RadioWeedShow.com
>> "Bringing entertainment to Unix"
>>
>> --
>> You received this message because you are subscribed to the Google Groups 
>> "Django users" group.
>> To post to this group, send email to django-users@googlegroups.com.
>> To unsubscribe from this group, send email to 
>> django-users+unsubscr...@googlegroups.com.
>> For more options, visit this group at 
>> http://groups.google.com/group/django-users?hl=en.
>>
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Django users" group.
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to 
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/django-users?hl=en.
>



-- 
Bust0ut, Surgemcgee: Systems Engineer ---
surgemcgee.com
BudTVNetwork.com
RadioWeedShow.com
"Bringing entertainment to Unix"

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



filter() and lists with DateTime field not implemented?

2012-09-27 Thread Robert Steckroth
Hello Gang, I have the function below which returns this error ->
"FieldError at /by_date/
Join on field 'first_day_start_time' not permitted. Did you misspell
'month' for the lookup type?"

The function will work in other objects (even with model
relationships), but not when the __month filter is used.
Has anyone got a work-around for this?

if s_form.is_valid():
  if s_form.cleaned_data['start_date']:
s_date_month = request.POST.getlist('start_date_month')
s_date_year = request.POST.getlist('start_date_year')
expo_obj =
expo_obj.filter(first_day_start_time__month__in=s_date_month )



-- 
Bust0ut, Surgemcgee: Systems Engineer ---
surgemcgee.com
BudTVNetwork.com
RadioWeedShow.com
"Bringing entertainment to Unix"

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



-- Directory creation script is fruity --

2012-10-08 Thread Robert Steckroth
Hello Gang, while creating a simple loop to copy a directory
structure, I encountered a strange error
with os.path.join. In the loop below, only the first iteration of the
loop will join the new_dir with no_base.
After hours of research, I still cannot pin this one down. I have it
working at the bottom, but it does not feel as safe.
Has anyone seen this before?


original_dir = '/work/sites/templates'
new_dir = '/work/sites/copy_of_structure'
  for (path, dirs, files) in os.walk(original_dir):
no_base = path.replace(original_dir, '')
new_path = os.path.join(new_dir, no_base)
self.stdout.write('path: %s \n' % new_path)

output:

path: /work/sites/copy_of_structure/
path: /
path: //hdbklasj

should be:
path: /work/sites/copy_of_structure/
path: /work/sites/copy_of_structure/
path: /work/sites/copy_of_structure//hdbklasj


HOWEVER:
This works just fine:

original_dir = '/work/sites/templates'
new_dir = '/work/sites/copy_of_structure'
  for (path, dirs, files) in os.walk(original_dir):
no_base = path.replace(original_dir, 'new_dir')
self.stdout.write('path: %s \n' % new_path)

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



A fun little Django project [Robert Steckroth]

2012-10-12 Thread Robert Steckroth
Hey Gang, I have got my project up on Bitbucket -->
https://bitbucket.org/surgemcgee/django_template3d
It is a fun Django Project with some nice features. It is simple to
get up in going and provides
some abstract Django/HTML concepts.

-- 
Bust0ut, Surgemcgee: Systems Engineer ---
surgemcgee.com
BudTVNetwork.com
RadioWeedShow.com
"Bringing entertainment to Unix"

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



Most widely used documentation source for Django Projects?

2012-10-13 Thread Robert Steckroth
Hey Gang, is there a standard documentation page for new/existing
Django projects?
I was going to use https://read-the-docs.readthedocs.org/en but it
will not let me create an account (500 whale). It seems to be common
in the projects
I've used. Any suggestions?



-- 
Bust0ut, Surgemcgee: Systems Engineer ---
surgemcgee.com
BudTVNetwork.com
RadioWeedShow.com
"Bringing entertainment to Unix"

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



Sub-arguments to arguments in management commands

2012-10-14 Thread Robert Steckroth
Hey Gang, I have to Command class below which utilizes args from the
command line.
I would like to have sub-arguments to some of these,
e.g. python manage.py template3d -c --file some_template.html another.html

This would execute the [-c] parameter and also pass those html names
to a [--file] option.

It is proving very difficult to find answers on the net.


class Command(BaseCommand):

  help='Coverts django templates for use with the Template3D system.
Obfuscates and minimizes Javascript, CSS, and HTML'
  option_list = BaseCommand.option_list + (
  make_option('-o', '--optimize', action='store_true', dest='optimize',
default=False, help='Convert all templates in the into the
templates3d format without any code minification.'),
  make_option('-c', '--compile', action='store_true', dest='closure',
default=False, help='Compile all templates. (Includes
minimizing: Javascript, CSS, and HTML).'),
  make_option('-u', '--unoptimize', action='store_true', dest='unoptimize',
default=False, help='Reverts all templates to the
non-optimized original version.'),
  make_option('-U', '--uncompile', action='store_true', dest='uncompile',
default=False, help='Reverts all templates to the
non-minimzed original version.'),
  make_option('-d', '--create-directories', action='store_true', dest='create',
default=False, help='Automatically creates the directory
structure contained in the STANDARD_TEMPLATE_DIRS to the
TEMPLATE_DIRS.'),
)

  def handle(self, *args, **options):
template_3d = template3d()

if options['create']:
  template_3d.create_directories()



I appreciate your time, Robert.


-- 
Bust0ut, Surgemcgee: Systems Engineer ---
surgemcgee.com
BudTVNetwork.com
RadioWeedShow.com
"Bringing entertainment to Unix"

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



Re: Most widely used documentation source for Django Projects?

2012-10-14 Thread Robert Steckroth
Ohh, hey, thanks. It was working this morning and performed flawlessly.
I could not be more happy with the operational tools and overall design.



On Sun, Oct 14, 2012 at 7:19 PM, Russell Keith-Magee
 wrote:
> On Sun, Oct 14, 2012 at 11:54 AM, Robert Steckroth
>  wrote:
>> Hey Gang, is there a standard documentation page for new/existing
>> Django projects?
>> I was going to use https://read-the-docs.readthedocs.org/en but it
>> will not let me create an account (500 whale). It seems to be common
>> in the projects
>> I've used. Any suggestions?
>
> Jump on IRC -- #django-social would be a good bet -- and try and find
> Eric Holscher (ericholscher). He's the maintainer of Read The Docs. At
> the very least, he should be able to confirm that he's aware what the
> problem is.
>
> Yours,
> Russ Magee %-)
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Django users" group.
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to 
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/django-users?hl=en.
>



-- 
Bust0ut, Surgemcgee: Systems Engineer ---
surgemcgee.com
BudTVNetwork.com
RadioWeedShow.com
"Bringing entertainment to Unix"

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



Re: Most widely used documentation source for Django Projects?

2012-10-17 Thread Robert Steckroth
And it turned out nice too! :)
http://django-template3d.readthedocs.org/en/latest/index.html#



On Sun, Oct 14, 2012 at 9:26 PM, Robert Steckroth
 wrote:
> Ohh, hey, thanks. It was working this morning and performed flawlessly.
> I could not be more happy with the operational tools and overall design.
>
>
>
> On Sun, Oct 14, 2012 at 7:19 PM, Russell Keith-Magee
>  wrote:
>> On Sun, Oct 14, 2012 at 11:54 AM, Robert Steckroth
>>  wrote:
>>> Hey Gang, is there a standard documentation page for new/existing
>>> Django projects?
>>> I was going to use https://read-the-docs.readthedocs.org/en but it
>>> will not let me create an account (500 whale). It seems to be common
>>> in the projects
>>> I've used. Any suggestions?
>>
>> Jump on IRC -- #django-social would be a good bet -- and try and find
>> Eric Holscher (ericholscher). He's the maintainer of Read The Docs. At
>> the very least, he should be able to confirm that he's aware what the
>> problem is.
>>
>> Yours,
>> Russ Magee %-)
>>
>> --
>> You received this message because you are subscribed to the Google Groups 
>> "Django users" group.
>> To post to this group, send email to django-users@googlegroups.com.
>> To unsubscribe from this group, send email to 
>> django-users+unsubscr...@googlegroups.com.
>> For more options, visit this group at 
>> http://groups.google.com/group/django-users?hl=en.
>>
>
>
>
> --
> Bust0ut, Surgemcgee: Systems Engineer ---
> surgemcgee.com
> BudTVNetwork.com
> RadioWeedShow.com
> "Bringing entertainment to Unix"



-- 
Bust0ut, Surgemcgee: Systems Engineer ---
surgemcgee.com
Django_Teamplate3d

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



If anyone needs a Django pay check

2011-09-10 Thread Robert Steckroth
Hey there gang. If any of you are in need of employment, there
is some quality job positions available with good pay for any decent
Django programmers. The consulting firm is based out of St. Paul
Minnesota and can allow you to work from home. The web site is
http://www.comfychairconsulting.com/
Only serious Django coders are needed! Either contact
the company via the provided web site link or I can
put you in contact with the right people. Thanks.

-- 
Bringing game to younix
Bust0ut Entertainment  ---
PBDefence.com
"Finding the exit without looking"

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



Re: If anyone needs a Django pay check

2011-09-10 Thread Robert Steckroth
Well, I am willing to go to the Big Nerd Ranch or other hard core fast pace
Django
learning course. I have a excellent understanding of programming and will
excel very
quickly. I am willing to invest in your future if you are willing to invest
in mine.
I would love to talk about my background and goals with someone who has
already
accomplished them.  Sincerely Robert Edward Steckroth II
-- 
Bringing game to younix
Bust0ut Entertainment  ---
PBDefence.com
"Finding the exit without looking"

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



Upload permissions

2011-09-22 Thread Robert Steckroth
Hey Gang, I have created a simple user profile area with  an Avatar
image upload system. It works great on my localhost but gives a
permission error on the server. Has anyone ran into this and found a quick
answer?
The upload media url is a wsgi process and is not used in the file.open()
command.
The directory permissions are the same as well. Got to be some cookie thing
but
I tried clearing all cookies and cache off the Browser. Here is the error
line break -->
destination = open('/home/radioweedshow/uploads/userAvatarDir/'+fName,
'wb+')
IOError at /startUpload/

[Errno 13] Permission denied:
u'/home/radioweedshow/uploads/userAvatarDir/surgemcgeenewHeader1.jpg'

 Request Method: POST  Request URL:
http://www.radioweedshow.com/startUpload/  Django Version: 1.3  Exception
Type: IOError  Exception Value:

[Errno 13] Permission denied:
u'/home/radioweedshow/uploads/userAvatarDir/surgemcgeenewHeader1.jpg'

 Exception Location: /home/radioweedshow/radio/member/memberViews.py in
handle_uploaded_file, line 31  Python Executable: /usr/bin/python  Python
Version: 2.6.5  Python Path:

['/usr/lib/python2.6',
 '/usr/lib/python2.6/plat-linux2',
 '/usr/lib/python2.6/lib-tk',
 '/usr/lib/python2.6/lib-old',
 '/usr/lib/python2.6/lib-dynload',
 '/usr/lib/python2.6/dist-packages',
 '/usr/lib/pymodules/python2.6',
 '/usr/lib/pymodules/python2.6/gtk-2.0',
 '/usr/local/lib/python2.6/dist-packages',


-- 
Bringing game to younix
Bust0ut Entertainment  ---
PBDefence.com
"Finding the exit without looking"

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



Re: Upload permissions

2011-09-22 Thread Robert Steckroth
Allright, I fixed it.
This did the trick -->
destination = open(settings.MEDIA_ROOT+'userAvatarDir/'+fName, 'wb+')


On Thu, Sep 22, 2011 at 9:55 PM, Robert Steckroth  wrote:

> Hey Gang, I have created a simple user profile area with  an Avatar
> image upload system. It works great on my localhost but gives a
> permission error on the server. Has anyone ran into this and found a quick
> answer?
> The upload media url is a wsgi process and is not used in the file.open()
> command.
> The directory permissions are the same as well. Got to be some cookie thing
> but
> I tried clearing all cookies and cache off the Browser. Here is the error
> line break -->
> destination = open('/home/radioweedshow/uploads/userAvatarDir/'+fName,
> 'wb+')
> IOError at /startUpload/
>
> [Errno 13] Permission denied: 
> u'/home/radioweedshow/uploads/userAvatarDir/surgemcgeenewHeader1.jpg'
>
>  Request Method: POST  Request URL:
> http://www.radioweedshow.com/startUpload/  Django Version: 1.3  Exception
> Type: IOError  Exception Value:
>
> [Errno 13] Permission denied: 
> u'/home/radioweedshow/uploads/userAvatarDir/surgemcgeenewHeader1.jpg'
>
>  Exception Location: /home/radioweedshow/radio/member/memberViews.py in
> handle_uploaded_file, line 31  Python Executable: /usr/bin/python  Python
> Version: 2.6.5  Python Path:
>
> ['/usr/lib/python2.6',
>  '/usr/lib/python2.6/plat-linux2',
>  '/usr/lib/python2.6/lib-tk',
>  '/usr/lib/python2.6/lib-old',
>  '/usr/lib/python2.6/lib-dynload',
>  '/usr/lib/python2.6/dist-packages',
>  '/usr/lib/pymodules/python2.6',
>  '/usr/lib/pymodules/python2.6/gtk-2.0',
>  '/usr/local/lib/python2.6/dist-packages',
>
>
> --
> Bringing game to younix
> Bust0ut Entertainment  ---
> PBDefence.com
> "Finding the exit without looking"
>



-- 
Bringing game to younix
Bust0ut Entertainment  ---
PBDefence.com
"Finding the exit without looking"

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



Re: Anyone got time for a large scale project ?

2011-12-20 Thread Robert Steckroth
Is this a paying project? I have a wide range of skills including Django.

On Tue, Dec 20, 2011 at 3:17 PM, JohnyB  wrote:
> Hello guys,
> I am in the process of creating an informational website combined with
> a desktop application, and mobile version all connected, but I am
> overwhelmed by it, and would need some help on django part.
> If you are intereseted please contact me.
>
> Thank you for your time,
> Ionut Boboc
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Django users" group.
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to 
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/django-users?hl=en.
>



-- 
Bringing game to younix
Bust0ut Entertainment  ---
PBDefence.com
"Finding the exit without looking"

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



CsrfViewMiddleware from a xml post?

2012-01-24 Thread Robert Steckroth
Hey Gang, is it possible to include a csrf token with a xml post?
It looks like there are options in the view to control this but
getting into the header would be nice.

This isn't working along with many other tries. Anyone know what the
header should look like this offhand?

xmlhttp.open("POST","/votingConfirm/",true);
xmlhttp.setRequestHeader("X-CSRFToken",
$("#csrfmiddlewaretoken").val());
xmlhttp.send("person="+person);


Thanks

-- 
Bust0ut Surgemcgee  ---
BudTVNetwork.com
RadioWeedShow.com
PBDefence.com
"Bringing entertainment to Unix"
"Finding the exit without looking"

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



Re: CsrfViewMiddleware from a xml post?

2012-01-24 Thread Robert Steckroth
Hahaha, ya I saw that. I was hoping that it could just be inserted
into the request header easily.
That would be mandatory if one was going to be utilizing user post
data frequently however.

For what it's worth, I simply used this instead -->

{% csrf_token %}



function confirmation(person) {
var answer = confirm('You are about to cast your vote for '+person)
if ( answer )
   {
 var submitForm = document.getElementById("vote");
 document.body.appendChild(submitForm);
   var element = document.getElementById("vote");
   element.person.value = person;
   element.submit();
 }

On Tue, Jan 24, 2012 at 11:39 AM, Reinout van Rees  wrote:
> On 24-01-12 16:47, Robert Steckroth wrote:
>>
>> Hey Gang, is it possible to include a csrf token with a xml post?
>> It looks like there are options in the view to control this but
>> getting into the header would be nice.
>
>
> Django made it easy for you! There's a javascript snippet you can copy/paste
> that takes care of including the csrf token:
>
> https://docs.djangoproject.com/en/dev/ref/contrib/csrf/#ajax
>
>
>
> Reinout
>
> --
> Reinout van Rees                    http://reinout.vanrees.org/
> rein...@vanrees.org             http://www.nelen-schuurmans.nl/
> "If you're not sure what to do, make something. -- Paul Graham"
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>



-- 
Bust0ut Surgemcgee  ---
BudTVNetwork.com
RadioWeedShow.com
PBDefence.com
"Bringing entertainment to Unix"
"Finding the exit without looking"

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



Looking for a Django opportunity to pursue...

2013-01-17 Thread Robert Steckroth
Hello, I am actively seeking a opportunity to develop Django applications.
If there are any professionals
seeking to grow in this area, feel free to respond via this address. Also,
I have other soundly developed skills
in the Systems/Software/Web field. Thanks, Robert Steckroth


-- 
Bust0ut, Surgemcgee: Systems/Web/Software Engineer

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



What is the best way to have multiple admin users with there own models?

2013-09-05 Thread Robert Steckroth
The application being created requires client to have an admin interface
specific to external
application/use. In other words, I would like to provide unique Admin model
control for a tentative user base. Any thoughts on how one might go about
this? Thanks

-- 
 Systems/Software Engineer

-- 
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.
For more options, visit https://groups.google.com/groups/opt_out.


Re: What is the best way to have multiple admin users with there own models?

2013-09-05 Thread Robert Steckroth
Ok, never mind. I copied the entire admin dir to the app directory and it
is working fairly well here. So naa..


On Thu, Sep 5, 2013 at 11:15 PM, Robert Steckroth  wrote:

> The application being created requires client to have an admin interface
> specific to external
> application/use. In other words, I would like to provide unique Admin
> model control for a tentative user base. Any thoughts on how one might go
> about this? Thanks
>
> --
>  Systems/Software Engineer
>
>
>
>


-- 
 Systems/Software Engineer

-- 
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.
For more options, visit https://groups.google.com/groups/opt_out.


So this needs to be fixed

2013-09-06 Thread Robert Steckroth
Why is the user permissions widget not re-sizing? I can hear it now...

http://postimg.org/image/mcfbfhs83/




-- 
 Systems/Software Engineer

-- 
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.
For more options, visit https://groups.google.com/groups/opt_out.


Re: So this needs to be fixed

2013-09-06 Thread Robert Steckroth
Also, the manytomany field selector highlight is waaay to light.


On Fri, Sep 6, 2013 at 11:22 AM, Robert Steckroth  wrote:

> Why is the user permissions widget not re-sizing? I can hear it now...
>
> http://postimg.org/image/mcfbfhs83/
>
>
>
>
> --
>  Systems/Software Engineer
>
>
>
>


-- 
 Systems/Software Engineer

-- 
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.
For more options, visit https://groups.google.com/groups/opt_out.


Re: What is the best way to have multiple admin users with there own models?

2013-09-06 Thread Robert Steckroth
Ok, this question was typed in haste, my mistake. What I needed was an
admin section for individual clients which could populate within the same
database.
By using separate admins, I was able to provide a superuser the ability to
designate which database section he/she would have access to with a cool
url to that database.
i.e. mysite.com/admin/client1
Unfortunately, this is not my/open-source code or I would share more :(





On Fri, Sep 6, 2013 at 9:42 PM, Germán  wrote:

> If I understood your question correctly, you want to create an additional
> admin site i.e. have more than one admin site, each one in different URLs.
> This is absolutely possible with stock Django, no need to copy directories
> or anything like that.
>
> What you need is to create another instance of AdminSite, or a custom
> subclass of it, should you need to do so.
>
> https://docs.djangoproject.com/en/1.5/ref/contrib/admin/#django.contrib.admin.AdminSite
>
> On Thursday, September 5, 2013 10:28:38 PM UTC-5, Surgemcgee wrote:
>
>> Ok, never mind. I copied the entire admin dir to the app directory and it
>> is working fairly well here. So naa..
>>
>>
>> On Thu, Sep 5, 2013 at 11:15 PM, Robert Steckroth 
>> wrote:
>>
>>> The application being created requires client to have an admin interface
>>> specific to external
>>> application/use. In other words, I would like to provide unique Admin
>>> model control for a tentative user base. Any thoughts on how one might go
>>> about this? Thanks
>>>
>>> --
>>>  Systems/Software Engineer
>>>
>>>
>>>
>>>
>>
>>
>> --
>>  Systems/Software Engineer
>>
>>
>>
>>   --
> 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.
> For more options, visit https://groups.google.com/groups/opt_out.
>



-- 
 Systems/Software Engineer

-- 
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.
For more options, visit https://groups.google.com/groups/opt_out.


Tinymce 4.x with grappelli filebrowser?

2013-10-05 Thread Robert Steckroth
Man, it is becoming less a reality to get this working. Has anyone found a
solution to this? The whole thing is working just fine except for the
tiny_mce_popup.js file.

-- 
 Systems/Software Engineer

-- 
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/CAL-VaPc1Ftsn_RhMHDy8wJv772rUXbc9VFC2%3DAwgJNyp5CZRzQ%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Tinymce 4.x with grappelli filebrowser?

2013-10-06 Thread Robert Steckroth
Ohh nice, thank you, I found just what I was looking for there.


On Sun, Oct 6, 2013 at 10:52 AM, Gabriel - Iulian Dumbrava <
gabriel.dumbr...@gmail.com> wrote:

> Hi,
>
> There are a few forks of django-filebrowser-no-grappelli that have solved
> this issue.
>
> Probably someone has solved it in a fork of the grappelli version.
>
> --
> 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/92c35409-4a3d-4f11-8745-77423e903051%40googlegroups.com
> .
> For more options, visit https://groups.google.com/groups/opt_out.
>



-- 
 Systems/Software Engineer

-- 
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/CAL-VaPdPzSqCC0UVUxLD8itKxubAB019hECX0Yt2cga%2B7V8bjQ%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.


Using real time POST data from within the template.

2011-06-20 Thread Robert Steckroth
Hey Gang, I am hoping that a few here can point me in the right direction.
I have a online game that posts data to a server. The server
broadcasts the information
back to all of the clients via another post to the clients IP addresses.

Now, while processing the POST data is not a problem, how, or in what fashion do
I send the data to the template as a var or dictionary. As of now when
I need to update
the data by directing to the view via a url and then redirecting back
to the template. This is not
going to work 28 times a second.

Currently I am thinking about ways to change vars in the template
without refreshing the page.
Is there a shortcut back to the template from a view without reloading
it? Or is there a better way
entirely?



-- 
Bringing game to younix
Bust0ut Entertainment  ---
PureBreedDefense.com --> TheLinuxGame.com --> PBDefence.com
"Finding the exit without looking"

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



Re: Using real time POST data from within the template.

2011-06-20 Thread Robert Steckroth
Heck Ya, thanks for the reply. I am already pouring over the examples. It is
almost as it was made just for me, aww :)


-- 
Bringing game to younix
Bust0ut Entertainment  ---
PureBreedDefense.com --> TheLinuxGame.com --> PBDefence.com
"Finding the exit without looking"

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



JavaScript src files not found.

2010-12-17 Thread Robert Steckroth
Hey coders, Where would stuff like .js src files go in a Django powered
Website?
ERROR -->  09:20:08.016: Network: GET
http://localhost:8000/users/PBUi/mouse.js [HTTP/1.0 404 NOT FOUND 30ms]
ERROR --> 09:20:07.823: Network: GET
http://localhost:8000/users/sylvester.js [HTTP/1.0 404 NOT FOUND 11ms]

There is many of these files to include for a entire program included in my
home page.
This is in the mySite/templates/users directory in the index.html file.
What is my fundamental design flaw?
-- 
*Bringing game to younix*
Bust0ut Entertainment  ---
PureBreedDefense.com --> TheLinuxGame.com --> PBDefence.com
"Finding the exit without looking"

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



Using the media url in JS

2010-12-20 Thread Robert Steckroth
Hey gang, anyone care to share the best way to incorporate this image
loading function into
my Website.

*Here is the JS premise I want to achieve --> textureFile[t].image.src =
{{ MEDIA_URL }} + tempName + tExt;


This JS is successfully loaded by index.html via this --> 

*Needs a working method

-- 
*Bringing game to younix*
Bust0ut Entertainment  ---
PureBreedDefense.com --> TheLinuxGame.com --> PBDefence.com
"Finding the exit without looking"

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



Foked Django Mezzanine with Query-less database SearchQuerySet integration [Gazelle]

2014-12-22 Thread Robert Steckroth
Hello community, I wanted to show interest in collaborating on an
opensource Django application called Gazelle (a fork of Mezzanine).
I built a SearchQuerySet with a drop in replacement to the filter() command
which does not hit the database.
So, far the results are promising and I am opening the project up at this
point. Anyone in the Django community
should at least bookmark the SearchQuerySet file linked below if
contributing to the remake is not feasible.

There is a lot of work to do so this may just end up being a better
Mezzanine project instead of a complete "remake".

https://bitbucket.org/surgemcgee/django-mezzanine-gazebo/src/6945aa45b34d30304224c8edf40915d964f0c519/mezzanine/utils/values_filter.py?at=master


-- 


-- 
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/CAL-VaPc973fzsvJwNGxCWW3ZwJrainaq_NeQMtqwoFAAEGMHtQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Using model instance in admin form with script

2014-01-25 Thread Robert Steckroth
class RssFeedPageForm(forms.ModelForm):
class Meta:
model = RssFeedPage

def clean_link(self):
self.instance.save()
page_model_instance=self.instance, rss_item=RssFeedItem,
feed_url=self.data['link'])
   UpdateFeeds().parse_feed(page_model_instance=self.instance,
rss_item=RssFeedItem, feed_url=self.data['link'])



-- 


-- 
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/CAL-VaPenUpm5Fvu0JmUyCEgHtUgD9VTSSMD8M_c4TpedH9r5wQ%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Using model instance in admin form with script

2014-01-25 Thread Robert Steckroth
Opps, sorry. I was actually trying to ask how one would get a hold of the
current model in this admin form, but the Esc key for some reason sent the
message.
The above function works, but the instance is not a model instance which
can be saved. How would I go about getting the current RssFeedPage model
which pertains to the form instance?

This works great on the cli --> from Django_project.update_rss_feeds import
*; m = get_models(); rss_page = m[1]; rss_item=m[2];
UpdateFeeds().parse_feed(page_model_instance=rss_page.objects.get(pk=1),
rss_item=rss_item, feed_url="
http://rss.nytimes.com/services/xml/rss/nyt/HomePage.xml";)

..because I pass in a usable model to ->
parse_feed(page_model_instance=model)

Note: this script will be open-sourced shortly. I will post the repo when
it is ready :)


On Sat, Jan 25, 2014 at 2:29 PM, Robert Steckroth  wrote:

>
>
> class RssFeedPageForm(forms.ModelForm):
> class Meta:
> model = RssFeedPage
>
> def clean_link(self):
> self.instance.save()
> page_model_instance=self.instance, rss_item=RssFeedItem,
> feed_url=self.data['link'])
>UpdateFeeds().parse_feed(page_model_instance=self.instance,
> rss_item=RssFeedItem, feed_url=self.data['link'])
>
>
>
> --
> 
>
>
>
>


-- 


-- 
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/CAL-VaPf72eDCrPpOqkz%3Dx3twNSy_2oKU3i4YevnWVmnPhEi9xg%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Using model instance in admin form with script

2014-01-25 Thread Robert Steckroth
So that does not work. Is there a builtin method that will allow me to call
the script before the form is rendered in save_model?

form = RssFeedPageForm # <-- how can this be loaded with UpdateFeeds
ValidationErrors?
def save_model(self, request, obj, form, change):
# UpdateFeeds().parse_feed will raise VailidationError
UpdateFeeds().parse_feed(update_feed_data=True,
update_item_data=True, page_model_instance=obj, rss_item=RssFeedItem,
feed_url=form.data['link'])



On Sat, Jan 25, 2014 at 2:37 PM, Robert Steckroth  wrote:

> Opps, sorry. I was actually trying to ask how one would get a hold of the
> current model in this admin form, but the Esc key for some reason sent the
> message.
> The above function works, but the instance is not a model instance which
> can be saved. How would I go about getting the current RssFeedPage model
> which pertains to the form instance?
>
> This works great on the cli --> from Django_project.update_rss_feeds
> import *; m = get_models(); rss_page = m[1]; rss_item=m[2];
> UpdateFeeds().parse_feed(page_model_instance=rss_page.objects.get(pk=1),
> rss_item=rss_item, feed_url="
> http://rss.nytimes.com/services/xml/rss/nyt/HomePage.xml";)
>
> ..because I pass in a usable model to ->
> parse_feed(page_model_instance=model)
>
> Note: this script will be open-sourced shortly. I will post the repo when
> it is ready :)
>
>
> On Sat, Jan 25, 2014 at 2:29 PM, Robert Steckroth <
> robertsteckr...@gmail.com> wrote:
>
>>
>>
>> class RssFeedPageForm(forms.ModelForm):
>> class Meta:
>> model = RssFeedPage
>>
>> def clean_link(self):
>> self.instance.save()
>> page_model_instance=self.instance, rss_item=RssFeedItem,
>> feed_url=self.data['link'])
>>UpdateFeeds().parse_feed(page_model_instance=self.instance,
>> rss_item=RssFeedItem, feed_url=self.data['link'])
>>
>>
>>
>> --
>> 
>>
>>
>>
>>
>
>
> --
> 
>
>
>
>


-- 


-- 
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/CAL-VaPcR4FRA7-NvGY3V3cf%3Dr-tUUXnw_tiL%3DTwUrpMTNYKw6Q%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.