I'm looking to build a website to collaborate on some open source projects.
I'd like to set up discussions based on git repositories, and maybe even
allow folks to contribute/fork/submit issues, etc.
I could handle this on my own, but its more of a side fun project for
myself and I'd rather see
simply put, here's my code
class ContentBlock(Orderable, Displayable):
location = models.ManyToManyField(ContentBlockLocation, blank=True,
null=True, help_text="list of locations to display content block")
page = models.ManyToManyField(Page, blank=True, null=True,
help_text="list of pages to d
This sounds like too much work, every time you want a new option in
the sidebar you're adding another if, right?
I'm planning on building a template tag to handle side content like
that. I am using mezzanine as my base so i have the luxury of having
every url resolve to their Page model. So i'm go
s i create that gets a
foreign field relationship to Client
On May 15, 8:29 pm, garagefan wrote:
> yeah, i've changed things around just slightly and included a
> tabularinline
>
> however, now i need to modify the template to display a link to each
> of the items pages, b/c as
yeah, i've changed things around just slightly and included a
tabularinline
however, now i need to modify the template to display a link to each
of the items pages, b/c as is it only allows one to update the name of
the clientobject, which is now:
class ClientObject(models.Model):
client = mode
building a client management application for myself
in one application model, called client_management, i have
class Client(models.Model):
active = models.BooleanField(_('active client'), default=False)
name = models.CharField(max_length=250)
logo = models.ImageField(upload_to="logos")
def
7:19 PM UTC-4, garagefan wrote:
>
> > I've got a server hosting multiple websites. Currently its not a big
> > deal to add another virtual host entry to apache2. Now, i'm using a
> > bad habit and using an http.conf instead of learning about, and
> > setting up &
I've got a server hosting multiple websites. Currently its not a big
deal to add another virtual host entry to apache2. Now, i'm using a
bad habit and using an http.conf instead of learning about, and
setting up "available sites".
I'm using mod_wsgi as well.
Now, in consideration of using "availa
this is a first for me. i set up a project like i normally do and get
things set up... run syncdb for the first time for the project. Havent
had this happen before and things seem to be working on other projects
just fine. I've even go so far as to comment out the handful of apps.
I presume there
easy thumbnails certainly does a decent job of creating thumbnails.
I'm not too fond of having a template tag do that though... it
basically does what i'm think of doing, but in a different area. it
also doesn't send the thumbnail over to cloudfiles, which is really
what i'm wanting to do, and with
setting up django-storages was simple... using rackspace's python API
to send an image to my container... met with some troubles (broken
pipe error on code that worked).
however... on the save of my gallery application i'm creating
thumbnails. this is easy to do with my custom field... normally.
d
On Jan 10, 2011, at 4:55 PM, garagefan wrote:
>
>
>
>
>
>
>
>
>
> > so i bit the hype and got myself a rackspace cloud account. i also got
> > a rackspace file account for image serving. i would like to write
> > something that overrides where all images
= '/mnt/rackspace/'
>
> and MEDIA_URL
>
> MEDIA_URL = 'my.rackspace.domain'
>
> On Jan 10, 6:55 pm, garagefan wrote:
>
>
>
>
>
>
>
> > so i bit the hype and got myself a rackspace cloud account. i also got
> > a rackspace file account for ima
so i bit the hype and got myself a rackspace cloud account. i also got
a rackspace file account for image serving. i would like to write
something that overrides where all images are saved, regardless of the
model that requests the save.
what would this be? would i make this a middleware? I assume
I was once in your shoes. No real resume experience to show... no
sites to display my knowledge.
My advice... makes more friends. It's all in who you know. Met some at
an intro html course at a community college, ended up being good
friends. He was a developer already, but a few years later he tel
level
On Dec 1, 3:28 pm, Daniel Roseman wrote:
> On Dec 1, 5:29 pm, garagefan wrote:
>
>
>
>
>
>
>
>
>
> > Now, i've read the thread in regards to putting the import in the
> > __init__.py
>
> > here is my structure
>
&g
Now, i've read the thread in regards to putting the import in the
__init__.py
here is my structure
website_project
- > signals
- - > signals.py (and an __init__.py)
- > shared_apps (link to numerous apps shared amongst other projects)
- - > gallery application
my signals.py looks like this
from
having an application specific settings.py is a nice idea, in our
world.
In the real world websites seem to be managed by non-technical
people... and ultimately we're not just building these applications
for technologically "gifted" people. Settings should be defined with
the admin for certain thi
seems like you're over thinking... you want a single url to handle
multiple pieces of information?
you can assign a single view function to a url. but you can define
multiple functions within that view and merely pass them through to
the template as part of the response.
Or take a look at templat
http://docs.djangoproject.com/en/dev/howto/deployment/modpython/?from...
>
>
>
> >reply to message:
> >date: 02.07.2010 10:39:26
> >from: "garagefan"
> >to: "Django users"
> >subject: drupal and django being friends
>
> >So i real
So i realize this isn't a specific django question but more of a
python question and setting up the config file for the server.
I know how to set up domains, and the handler and all that for a
django site.
But i've got a drupal site that i'm "attaching" a django gallery
too... and in fact slowly
hey all, was wondering if my following error is a result of copying
django-tagging and markdown from my windows XP machine onto my server
via FTP and then moving them into the appropriate directory.
http://kennethdavid.net/blog/2010/may/24/test-1/
just going through the webmonkey tutorial to reac
doh, forgot that i never installed python-devel, der... everything
works now, nothing to see here... no novice server users here >_>
On Aug 27, 11:36 am, garagefan wrote:
> i've taken the project directly from github and attempted to run
> python setup.py install and g
it may be outdated.
> The installation is much more simpler than what the tutorial says, so i
> recommend to download fromhttp://github.com/sciyoshi/pyfacebook/tree/master
>
> HTH,
>
> Matias.
>
>
>
>
>
> On Wed, Aug 26, 2009 at 9:58 PM, garagefan wrote:
>
&
steps followed here:
http://wiki.developers.facebook.com/index.php/PythonPyFacebookTutorial
page with error is here:
http://kennethdavid.net/fbapp/fbsample/
obviously, python.conf is setup correctly to call the correct settings
file. facebook is a link (ln -s) to /pyfacebook/facebook, as per
i
http://kennethdavid.net/admin
error page:
MOD_PYTHON ERROR
ProcessId: 9659
Interpreter:'kennethdavid.net'
ServerName: 'kennethdavid.net'
DocumentRoot: '/home/kdwadmin'
URI:'/admin'
Location: '/'
Directory: None
Filename: '/home/kdwadmin/admin'
PathI
Apache permissions must be set on the directory. I was having the same
issue before I set the directory group to be Apache and gave it RWX
privileges
On Feb 20, 2:21 pm, Ty wrote:
> When I login to the administration and try to delete a file I get a
> "SuspiciousOperation" error. Here's the trac
server date incorrect?
I asked a similar question a while ago... turns out the server i'm
using from godaddy was set for Arizona and was an additional 20 some
minutes off...
On Feb 20, 11:49 am, Sean Brant wrote:
> I am trying to render a timestamp in my template with date:"U" but the
> timesta
i'm just kinda wondering how you're going to be showing a demo of
django when you don't know anything about it, nor how to set it up.
On Feb 18, 10:19 am, "s.sudharsan siva"
wrote:
> Hii am new to Django we are planning to show a demo on Django on FOss
> conf09.. can any one help with how to sta
The easiest solution i can consider is having php request a url from
the django project that would return a dynamically created xml file
that you could then parse via php, set variables from, display, etc.
You could theoretically run the site in django, and the admin and all
that goodness, but co
check out django-tagging. It looks like they're using a custom Manager
that is handling the creation of new tags based off of an object that
is using "tags" listing new tags.
On Feb 4, 3:04 pm, GeneralMean wrote:
> >On 4 Lut, 20:52, koenb wrote:
> > Shouldn't this be obj.tags.add(tag) ? (your m
not change:
> #get a tag
> tag = Tags.objects.get(pk=1)
> #associate tag with newly created object
> obj.tag.add(tag)
>
> admin.site.register(Game)
> admin.site.register(Tag)
>
> On 4 Lut, 19:15, garagefan wrote:
>
> > Not to
Not totally sure this will help with your error, as i haven't come
across it yet.
But for fields that may be empty I also have a blank = True and null =
True. This is to tell the DB that it is acceptable to have no value in
the field.
ie, i'm using the following to choose add users to a private
well... that worked... to be 100% honest... i didn't expect it to.
Guess i'm still underestimating the framework
thanks :)
On Feb 2, 9:28 pm, Martin Conte Mac Donell wrote:
> On Tue, Feb 3, 2009 at 12:21 AM, garagefan wrote:
>
> > Trying to test a manytomany field in a m
Trying to test a manytomany field in a model that will be user names.
Building that is simple enough in the model, and so is selecting the
users in the admin.
the problem is filtering a query to test the current logged in user
with the manytomany field to ensure they are listed.
ie:
filter(Q(is_
'm sure this is a simple logic issue... but i can't seem to figure
out what i'd need to do
On Jan 19, 1:50 pm, garagefan wrote:
> pretty vague title i know...
>
> Can I return a query set via foo.object.filter() where in filter i
> check a manytomany field in foo against t
pretty vague title i know...
Can I return a query set via foo.object.filter() where in filter i
check a manytomany field in foo against the group field for a user?
I guess a way to use a group as a permission?
IE: An article that would normally appear with a ton of other
articles, in a ManyToM
I'm using diamanda, and altering a few things in an attempt to get the
above mentioned outcome.
First question however... importing groups... explicitly, how?
would:
from django.contrib.auth.models import User, Groups
suffice?
next, the code.
in my models for the Forum class:
private = models
why not have two TextFields for the app, one for the approved content,
and one for the edited and unapproved content?
Write a function that overwrites the content in the approved TextField
with the item in the unapproved TextField and delete the unapproved
TextField and tie that function to a sel
I'm attempting to install diamanda forum, and so far things are
looking promising.
however, i am receiving the above error, in the subject, at line 140
of dimandas.pages.feedupdate
specifically, the line is: 'date': date[:10] located within a Context.
This occurs on save of a new topic. w/o the
I ran across this issue.
You need make the "group", for the folder you will be saving images
into, Apache. And give groups RWX permissions for that folder
On Jan 12, 3:43 am, raik wrote:
> Hi there,
>
> I am using a FileField to store user-uploaded files on the server. My
> setup works with the
I may be able to offer some assistance here :)
i used the follow bit to create a thumbnail image and changed the name
of the file to include _tn.
def save(self):
super(ImageUpload, self).save()
if self.image:
tsize = 150,150
path = settings.MEDIA_ROOT + self
http://docs.djangoproject.com/en/dev/topics/db/queries/#topics-db-queries
i would use .filter and .order_by
On Jan 4, 8:30 pm, Patrick wrote:
> Ok, I will rephrase that with a concrete example:
> I have those to models:
>
> class Modelo(models.Model):
> nome = models.CharField(max_length=10
as there is no django apps in the directory it is looking for
them in.
Graham, thanks for all your help.
On Jan 4, 6:32 pm, garagefan wrote:
> will do, going through now... i did find this:
>
> # UseCanonicalName: Determines how Apache constructs self-referencing
> # URLs and the SER
. Duplicate
> NameVirtualHost directives is only thing I can think of that could be
> an issue.
>
> BTW, do you have an images directory in the carclubhub DocumentRoot.
> Ie., should it be found by the browser?
>
> Graham
>
> On Jan 5, 9:54 am, garagefan wrote:
>
>
ve been no changes
is there possibly something else that needs to be set up for the
VirtualHost to work?
On Jan 4, 5:44 pm, Graham Dumpleton
wrote:
> On Jan 5, 8:54 am, garagefan wrote:
>
>
>
> > Starting httpd: Syntax error on line 1 of /etc/httpd/conf.d/
> > python.conf:
hen all I can guess is that the
> configuration isn't even being used in the first place.
>
> Graham
>
> garagefan wrote:
> > i do appreciate all your assistance and am growing to understand the
> > server side a bit more. you're right about the documentati
rl/2.0.3 Perl/v5.8.8 configured -- resuming normal
operations
I do currently have two separate IP addresses for the sites, could
this be causing the issue? it doesn't seem like it would
thanks again for the help, it really is appreciated.
-Ken
On Jan 4, 12:56 am, Graham Dumpleton
wrote:
>
ip specific listen for each website? and have :80
for one and :81 for the other and would that allow me to create two
VirtualHosts? one for each port?
On Jan 3, 10:21 pm, Graham Dumpleton
wrote:
> On Jan 4, 1:39 pm, garagefan wrote:
>
> > there is currently only one virtual host se
es PythonInterpreter need to be applied?
On Jan 3, 9:22 pm, Graham Dumpleton
wrote:
> On Jan 4, 12:53 pm, garagefan wrote:
>
> > no, as then i would need to use, for example...www.website.net/mysite/*
> > instead ofwww.website.net/*forthe various apps.
>
> If you are mounti
e with respect to each other and the VirtualHost
> in the configuration.
>
> Graham
>
> On Jan 4, 12:47 pm, Graham Dumpleton
> wrote:
>
> > On Jan 4, 12:17 pm, garagefan wrote:
>
> > > I've read the documentation, and it doesn't seem clear enough, or
&g
.
would i change server name to be an ip address? as each website on my
server has a unique address, while having the same port? since 80 is
the open port for apache
On Jan 3, 8:47 pm, Graham Dumpleton
wrote:
> On Jan 4, 12:17 pm, garagefan wrote:
>
> > I've read the documentatio
I've read the documentation, and it doesn't seem clear enough, or
provide a fully working example?
i've copied what i have in my python.conf file, keep in mind that i
have removed site specific names and have made them generic
NameVirtualHost *:80
ServerName www.website.net
ODULE mysite.settings
PythonOption django.root /mysite
PythonDebug On
PythonPath "['/home/site'] + sys.path"
SetHandler None
SetHandler None
On Dec 30, 8:14 pm, garagefan wrote:
> and i don't want one to acc
and i don't want one to access another's django installation...
and the following doesn't seem to work
NameVirtualHost *
ServerName www.website.net
SetHandler python-program
PythonHandler django.core.handlers.modpython
SetEnv DJANGO_SETTINGS_MODULE mysite.settin
Thanks, that worked perfectly. right now i can lose the data as i'm
still learning this all. I will have to look into editing the DB via
the shell for future fixes
On Dec 29, 11:20 pm, Daniel Roseman
wrote:
> On Dec 29, 11:04 pm, garagefan wrote:
>
> > awesome... it wa
ously... now, it appears to be causing issues. I've ran syncdb,
but it doesn't seem to be adding this new column. I gather it is very
very important to consider your required fields before syncing
originally... how do i go about fixing this issue?
thanks again
On Dec 29, 9:46 pm, Daniel
below is the code... the first def doesn't return anything... (def
get_gal_teaser(self))
i'm using a custom tag to return the Gallery class to the base
template file, which works... so calling the method get_gal_teaser
works as well... and returns an object? when the second e =
e.image.get_thumbn
I've got a gallery model, with a Gallery class, and an ImageUpload
class. in my custom tag i'm pulling in the Gallery to display a list
of galleries in a side bar. this works fine. But, i want to randomly
display an image associated with that gallery, which would be accessed
through ImageUpload (i
the ability to edit posts would be nice :)
i figured out the issue and am now displaying relative urls to the
images.
now, to edit the delete function to remove the thumbnails as well...
On Dec 27, 1:21 pm, garagefan wrote:
> currently, self.image.name displays the absolute server p
currently, self.image.name displays the absolute server path...
i want to change this so that when i call it, it either display the
relative path, or an absolute path for the website itself.
so instead of displaying /home/site/mysite/images/gallery/
imagename.jpg
it will display http://www.site
fantastic that worked amazingly well. thank you
On Dec 15, 12:23 pm, Brian Neal wrote:
> On Dec 15, 10:53 am, garagefan wrote:> how would i
> make the group include apache?
>
> Not sure what you are asking. I look in /etc/group to see what groups
> apache belongs to. On
how would i make the group include apache?
On Dec 15, 11:32 am, Brian Neal wrote:
> On Dec 15, 9:51 am, garagefan wrote:
>
> > Just wondering if anyone else has experience with setting the write
> > permissions for apache using mod_python w/ django.
>
> Instead of 077
Just wondering if anyone else has experience with setting the write
permissions for apache using mod_python w/ django.
On Dec 11, 6:01 pm, Graham Dumpleton
wrote:
> On Dec 12, 9:07 am,garagefan wrote:
>
> > which would actually result in keeping my server more secure... i
>
oh awesome!
this should be an interesting little project for myself
thanks for the links
On Dec 12, 11:08 am, Jeff Anderson wrote:
> garagefan wrote:
> > Is it possible to generate an image, to save it on my server, of a web
> > page by passing through the url only?
>
>
Is it possible to generate an image, to save it on my server, of a web
page by passing through the url only?
say perhaps I want to link to a few sites from mine, and i'd like to
include a thumbnail of the site... and instead of taking a screen
capture, and uploading it, i pass through the url of
to combat
this little issue.
is there really a safety concern? or is there another way around this?
On Dec 11, 4:59 pm, Graham Dumpleton
wrote:
> On Dec 12, 8:52 am, garagefan wrote:
>
> > this is my first time working this closely to the server for a live
> > environment :)
&
this is my first time working this closely to the server for a live
environment :)
"apache" appears as owner of the file once uploaded. is there a way to
set the default on this to be another user?
On Dec 11, 4:45 pm, Graham Dumpleton
wrote:
> On Dec 12, 8:32 am, garagefan w
I figured out my issue with the "access denied, suspicious operation"
bull...
apparently the only way the admin side of my site can upload an image
to a directory is by having "other" set to have full rwx set... ie
chmod **7 I'm not so sure this is a good thing to keep set as that
would give ever
alright, managed to work my way around and get the jpeg uploading to
work... expect i'm still getting that suspicious operation error
On Dec 10, 4:49 pm, Brian Neal <[EMAIL PROTECTED]> wrote:
> On Dec 10, 2:20 pm, garagefan <[EMAIL PROTECTED]> wrote:
>
> > gettin
I attempted this with a png and was greeted with a success... but then
python/server denying access to the directory due to "suspicious
operation"... so i've got two things to fix... I suppose i need to set
up some kind of write access to the server?
On Dec 10, 3:20 pm, ga
getting this error:
"Upload a valid image. The file you uploaded was either not an image
or a corrupted image."
tried with a gif and with a jpg. I've got PIL installed...
it probably has to do with my models.vi.
from django.db import models
from django.core.files.storage import FileSystemStora
http://code.google.com/p/django-tagging/issues/detail?id=110
On Dec 10, 9:19 am, "[EMAIL PROTECTED]"
<[EMAIL PROTECTED]> wrote:
> thanks
> after I imported tagging,the errors is following:
> Traceback (most recent call last):
> File "", line 1, in
> import tagging
> File "C:\Python25\Lib
haha yeah, i just submitted a ticket to godaddy. They're usually
really good with getting back.
On Dec 9, 6:31 pm, "Colin Bean" <[EMAIL PROTECTED]> wrote:
> On Tue, Dec 9, 2008 at 3:22 PM, garagefan <[EMAIL PROTECTED]> wrote:
>
> > ok, server time is 2 ho
usual date "time" crap and was told the procedure was not
allowed, i assume this is due the server being a virtual server.
what would the best way to fix this?
the detail.html does not use latest however
On Dec 9, 4:40 pm, garagefan <[EMAIL PROTECTED]> wrote:
> awesome, i
awesome, i will take a look at the server date. It is possible that it
is off.
On Dec 9, 3:57 pm, "Colin Bean" <[EMAIL PROTECTED]> wrote:
> On Tue, Dec 9, 2008 at 12:16 PM, garagefan <[EMAIL PROTECTED]> wrote:
>
> > Server is Red Hat 7, set up by godaddy, its
well as the templates in there. The
part that is working instantly is the "secondary" section located in
the base.html template that the other two blog templates extend
thanks for lookin
On Dec 9, 2:58 pm, "Colin Bean" <[EMAIL PROTECTED]> wrote:
> On Sun, Dec 7,
I had the same issue... you need to do two things...
copy this into the setup.py
from django.conf import settings
settings.configure()
and make sure you have python-devel installed
On Dec 9, 8:24 am, "[EMAIL PROTECTED]"
<[EMAIL PROTECTED]> wrote:
> hi
> I got it from trunk,and the version is 0
sure thing:
from django.conf.urls.defaults import *
from mysite.blog.models import Entry
from tagging.views import tagged_object_list
info_dict = {
'queryset': Entry.objects.filter(status=1),
'date_field': 'pub_date',
}
urlpatterns = patterns('django.views.generic.date_based',
I've not set anything up...
On Dec 8, 1:48 am, "Alex Koshelev" <[EMAIL PROTECTED]> wrote:
> Do you use caching?
>
> On Mon, Dec 8, 2008 at 07:34, garagefan <[EMAIL PROTECTED]> wrote:
>
> > ok... i've been able to figure out how long it takes bas
ok... i've been able to figure out how long it takes based on the time
stamp... an hour and a half for a new object to have come in. It
appears that the item is not readable by the two templates, one of
which using {%for object in latest $} and then another template that
doesn't use it at all.
th
following another tutorial to build a blog (webmonkey.com's) at it was
rather frustrating to see nothing show up after creating a new blog...
the admin section seems to see these right away, as they are there as
soon as you hit save. But it seems to take the one section 10-20(or
more?) minutes to
nevermind. I've borked the server messing around again :)
On Dec 5, 4:19 pm, garagefan <[EMAIL PROTECTED]> wrote:
> http://www.kennethdavid.net/djangoblog/admin/
> getting this error on my admin page. just started working w/
> webmonkey.com's
> tutorialhttp:
http://www.kennethdavid.net/djangoblog/admin/
getting this error on my admin page. just started working w/
webmonkey.com's tutorial
http://www.webmonkey.com/tutorial/Install_Django_and_Build_Your_First_App
this is occurring after installing the tagging module... which
including me needing to ins
I've recently set up a virtual server w/ godaddy and followed
http://www.howtoforge.com/how-to-install-django-on-fedora9-apache2-mod_python
to install django.
I'm following the tutorial and am up to setting up the admin section
and configuring the urls.py for the polls model. this is what is
happ
85 matches
Mail list logo