Re: Anyone sync'd a django project with flickr recently? django-syncr

2011-09-30 Thread i...@webbricks.co.uk
ok, couple of things to note.

1. get it from the svn, the zip hasn't been updated in a while.

2. you need to follow the instructions here.
http://skooshmagoo.com/weblog/2010/sep/05/fixing-django-syncr-umedium-640/

with those two, you might stand a chance of syncing some photos.
sets, now thats a totally different kettle of fish.
found this snippet, but not tried it out yet.
http://djangosnippets.org/snippets/299/

think the whole sets sync needs moving into a management command, cos
it can take a while!

On Sep 29, 9:07 pm, "i...@webbricks.co.uk" <i...@webbricks.co.uk>
wrote:
> I've searched. pretty much everyone 
> recoomendshttp://code.google.com/p/django-syncr/
>
> thing is, it doesn't actually do anything.
>
> am i right in thinking that this code when run, should sync to the
> django database information (sets and photos) from the flickr user you
> give it?
>
> I've given it two users, both on 365 days length and i just don't get
> any recent photos sync'd.
>
> no errors, just no results. i dont even know if I'm expecting it to do
> what i think it does, because the explanation is lacking on the site.
>
> anyone used it?
>
> Matt

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



Anyone sync'd a django project with flickr recently? django-syncr

2011-09-29 Thread i...@webbricks.co.uk
I've searched. pretty much everyone recoomends 
http://code.google.com/p/django-syncr/

thing is, it doesn't actually do anything.

am i right in thinking that this code when run, should sync to the
django database information (sets and photos) from the flickr user you
give it?

I've given it two users, both on 365 days length and i just don't get
any recent photos sync'd.

no errors, just no results. i dont even know if I'm expecting it to do
what i think it does, because the explanation is lacking on the site.

anyone used it?

Matt

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



Re: How to create a sub-app directly

2011-08-22 Thread i...@webbricks.co.uk
which is fine, but you've missed the only step that actually makes the
folder a python module.

do this or it'll never import
touch __init__.py



On Aug 22, 8:32 am, kenneth gonsalves  wrote:
> On Sun, 2011-08-21 at 08:22 -0700, Jim wrote:
>
> > Here is the story. I created a site, mysite, with this command
> > django-admin startproject mysite. Then, under the directory mysite/, I
> > created an app named apps with this command ./manage.py startapp apps.
> > apps is meant to hold all applications for mysite. Now, here comes the
> > question:  How do I create a sub-app under apps with manage.py
> > directly?
>
> one way to do this:
> cd apps
> mkdir subapp
> cd subapp
> touch models.py
> touch views.py
> touch tests.py
>
> --
> regards
> Kenneth Gonsalves

-- 
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: showing an attribute of a foreign key in admin

2011-08-16 Thread i...@webbricks.co.uk
thanks tracy, i'd tried something very similar to Daniels method and
failed, but your code worked first time.

On Aug 15, 12:36 pm, Karen Tracey <kmtra...@gmail.com> wrote:
> On Mon, Aug 15, 2011 at 4:51 AM, i...@webbricks.co.uk
> <i...@webbricks.co.uk>wrote:
>
>
>
>
>
>
>
>
>
>
>
> > I want to display the Level of the Category that the product belongs
> > to, in the admin page for the Product. snipped a lot of the
> > unimportant fields out of the display below.
>
> > class Category(models.Model):
> >    name = models.CharField(max_length=50, default=False)
> >    level = models.IntegerField(help_text="1, 2 ,3 or 4")
>
> > class Product(models.Model):
> >    category = models.ForeignKey(Category)
> >    name = models.CharField(max_length=100)
>
> >    prepopulated_fields = {'slug': ('name',)}
> >    fieldsets = [
> >        ('Product Info',{'fields': ['name',
> > 'slug','partno','description']}),
> >        ('Categorisation',{'fields': ['brand','category']}),
>
> > You can do this so long as you only want to display the level, and not
>
> change it from the Product edit page. Admin was not designed to allowed
> editing of related-model attributes so you cannot do that. But with readonly
> fields you can easily display information:
>
> 1 - Define a method on Product that returns the information you want, eg:
>
>     def category_level(self):
>         try:
>             return u'%s' % self.category.level
>         except Category.DoesNotExist:
>             return u'No Category'
>
> (You need to allow for Category not existing since it will not exist on an
> add page.)
>
> 2 - Include that method in readonly_fields and wherever you want it in your
> fieldsets, eg:
>
> class ProductAdmin(admin.ModelAdmin):
>    readonly_fields = ['category_level']
>    fieldsets = [
>        ('Product Info',{'fields': ['name', etc etc etc ]}),
>        ('Categorisation',{'fields': ['category', 'category_level']}),
>     ]
>
> Karen
> --http://tracey.org/kmt/

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



showing an attribute of a foreign key in admin

2011-08-15 Thread i...@webbricks.co.uk
copied and pasted from stackoverflow, since i didnt get an answer in a
week and i just can't believe its not possible.

I want to display the Level of the Category that the product belongs
to, in the admin page for the Product. snipped a lot of the
unimportant fields out of the display below.

class Category(models.Model):
name = models.CharField(max_length=50, default=False)
level = models.IntegerField(help_text="1, 2 ,3 or 4")

class Product(models.Model):
category = models.ForeignKey(Category)
name = models.CharField(max_length=100)


prepopulated_fields = {'slug': ('name',)}
fieldsets = [
('Product Info',{'fields': ['name',
'slug','partno','description']}),
('Categorisation',{'fields': ['brand','category']}),


obviously i've tried a little to get this working and googled a lot,
but i've found reference to list_filter lots, but nothing about just
showing the field. best guess was
'category__level' inside the fieldset as a field, but that didnt work.

anyone know the right way to do this?

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



Re: getting django working with apache and mod_wsgi on a brand new mac with xcode 4

2011-07-15 Thread i...@webbricks.co.uk
you need xcode to compile stuff like PIL, which most django projects
need.

then im stuck, for me the dev server is good enough for development on
a mac.

OP, why not use the dev server and leave apache where its best, in
production on a linux server. (IMO?)

On Jul 15, 2:54 pm, Javier Guerra Giraldez  wrote:
> On Thu, Jul 14, 2011 at 5:22 PM, Derick Felsman
>
>  wrote:
> > Hi,
>
> > I'm brand new to django and have been having trouble setting it up
> > with apache and mod_wsgi on my new mac with xcode 4 installed.  All
> > the resources i've been able to find are either outdated or don't work
> > with an xcode 4 installation.  Does anyone know how to do this or know
> > where i would be able to get training to do this?  Thanks.
>
> what exactly has Xcode to do with Django/Apache/mod_wsgi?
>
> --
> Javier

-- 
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: virtualenv with dev server

2011-07-14 Thread i...@webbricks.co.uk
theres two different versions of django listed there, you're not
running the version in the virtualenv in one of those two listings.
definitely activating the virtual env? then navigating into it to the
folder manage.py is in?

Matt


On Jul 14, 8:54 am, Mike Dewhirst  wrote:
> Trying to get virtualenv working for the first time for a new project
> and have stumbled somehow. I can get it working as advertised (see
> below) but django dev server doesn't notice.
>
> Any hints appreciated ...
>
> ||| here is virtualenv being activated
>
> C:\users\miked\py\ssds>Scripts\activate
> (ssds) C:\users\miked\py\ssds>python
> Python 2.7 (r27:82525, Jul  4 2010, 09:01:59) [MSC v.1500 32 bit
> (Intel)] on win32
> Type "help", "copyright", "credits" or "license" for more information.
>  >>> import django
>  >>> django.get_version()
> '1.3'
>  >>> quit()
>
> ||| correctly showing django version 1.3 installed in virtualenv ssds
> ||| so now I want to start the dev server
>
> (ssds) C:\users\miked\py\ssds>Scripts\django-admin.py runserver
> --settings=src.settings
> Validating models...
>
> 0 errors found
> Django version 1.4 pre-alpha SVN-16452, using settings 'src.settings'
> Development server is running athttp://127.0.0.1:8000/
> Quit the server with CTRL-BREAK.
>
> ||| it has used my global site-packages django 1.4 from trunk
> ||| just in case, here is my ssds\Scripts\django-admin.py
>
> #!C:\users\miked\py\ssds\Scripts\python.exe
> from django.core import management
>
> if __name__ == "__main__":
>      management.execute_from_command_line()
>
> Thanks
>
> Mike

-- 
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: Simple example of custom user profile fields?

2011-07-13 Thread i...@webbricks.co.uk
read the paragraph on the AUTH_PROFILE_MODULE in james blog.
especially understand you're pointing it at a modelname, but that it
knows its a model

caught me out once upon a time and might be your issue.

Matt

On Jul 13, 3:57 am, Brent  wrote:
> Unfortunately, no matter what kind of path I put for
> AUTH_PROFILE_MODULE, the same error appears.
>
> On Jul 12, 5:51 pm, Andre Terra  wrote:
>
>
>
>
>
>
>
> > As the traceback helpfully states,
>
> > Exception Type: SiteProfileNotAvailable at /profile/Exception Value:
> > Unable to load the profile model, check AUTH_PROFILE_MODULE in your
> > project settings
>
> >http://www.google.com/search?=django+Unable+to+load+the+profile+mod...
>
> > check out the first result.
>
> > Cheers,
> > André
>
> > On Tue, Jul 12, 2011 at 8:09 PM, Brent  wrote:
> > > Good idea. Unfortunately, I tried that, but it results in a
> > > SiteProfileNotAvailable error:
>
> > >http://dpaste.com/567421/
>
> > > On Jul 12, 3:15 pm, Andre Terra  wrote:
> > > > Instead of using get or create, why not setting up a post_save signal
> > > > for the User model so that users always have a profile associated with
> > > > them?
>
> > > > Cheers,
> > > > Andre
>
> > > > On 7/12/11, Brent  wrote:
>
> > > > > Thanks for the help guys.
>
> > > > > Micky, that tutorial looks very good. I think I almost have it
> > > > > working. Just one more error:
>
> > > > >http://dpaste.com/567361/
>
> > > > > Andre, thanks for mentioning Pinax. I'll give it a shot if this
> > > > > doesn't work out. I have a year of python experience, but I haven't
> > > > > written anything web/database related.
>
> > > > > On Jul 12, 11:34 am, Micky Hulse  wrote:
> > > > >> This tutorial helped me:
>
> > > > >>http://www.turnkeylinux.org/blog/django-profile
>
> > > > >> Note: The above tutorial uses an FK to User model... The Django docs
> > > > >> suggest a OneToOne field.
>
> > > > >> Hope that helps.
>
> > > > >> Micky
>
> > > > > --
> > > > > 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.
>
> > > > --
> > > > Sent from my mobile device
>
> > > --
> > > 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.



Re: Simple example of custom user profile fields?

2011-07-13 Thread i...@webbricks.co.uk
if i can extend the user model, anybody should be able to.
i followed james bennett example.
in fact most of the clever stuff i do came from his tuts

http://www.b-list.org/weblog/2006/jun/06/django-tips-extending-user-model/

at this point, i'd suggest a clean virtualenv, with a single app,
single page no nonsense approach to just drop the django-registtration
and django-profiles apps in and get it working.

then go back and integrate it into your project once you know how it
works.

Matt

-- 
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: (UsingTheMailingList) Pre-requisites for newcomers on Django

2011-07-11 Thread i...@webbricks.co.uk
what about mentioning this as well?

http://learnpythonthehardway.org/

4 lessons through it myself, so cant rate it just yet, but some of the
more experienced people in the group might know it/rate it.

Matt

On Jul 11, 4:30 am, Kenneth Gonsalves  wrote:
> On Sun, 2011-07-10 at 14:39 +0100, Cal Leeming [Simplicity Media Ltd]
> wrote:
>
>
>
>
>
>
>
>
>
> > We don't seem to have a policy of dealing with mailing list posts in
> > which
> > the user clearly has no Python experience.
>
> > Therefore, I'd like to hear some thoughts on making an amendment to
> > UsingTheMailingList,
> > which states:
>
> > """
> > Do you have *any* experience at all using Python, or understand the
> > basic
> > concepts of how Python work?
>
> > If not, please refer to the following before attempting to use Django:
> >http://wiki.python.org/moin/BeginnersGuide/Programmers
>
> > """
>
> > This would be just the same principle if someone wanted to learn, say
> > "CodeIgniter", but without having to learn PHP. It's just not gonna
> > fly,
> > right?
>
> please go ahead and add it.
> --
> regards
> KGhttp://lawgon.livejournal.com
> Coimbatore LUG roxhttp://ilugcbe.techstud.org/

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



Re: Can't get /admin/ or any page to load

2011-07-09 Thread i...@webbricks.co.uk
look in urls.py, this might turn out to be missing quotes around the
view function that you're targetting.

On Jul 8, 3:33 pm, Brent  wrote:
> When I go to 127.0.0.1:8000/admin/ I receive this error:
>
> Caught ViewDoesNotExist while rendering: Tried base in module
> django.views.generic. Error was: 'django.views.generic.base' is not a
> callable.
>
> I followed the django tutorial 
> here:https://docs.djangoproject.com/en/dev/intro/tutorial01/
> and it worked fine, but I want to restructure my directories. I moved
> a bunch of files around, and I updated the new changes in settings.py
> and some other files. But it still won't work.
>
> I've spent several hours on this, so it would be very appreciated if
> someone could tell me where to look to fix this.
>
> Thanks in advance.

-- 
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: Dreamhost Virtualenv Question

2011-07-06 Thread i...@webbricks.co.uk
Jeremy,

there's a concept you need to understand to progress here. its on that
took me while to properly understand, but which i think is natural to
someone in a foss development role, which i hadn't previously been.

the python path is the all important config item. it defines where
python look sfor modules. its important because if you "pip install
django-zinnia -E envname" then you'll install the module to the site-
packages directory inside djangos modules. however its also (usually?
someone correct me if im wrong) equally valid to download the source,
read through the docco and then copy the module to the root of your
site ("envname/projectname"). you'll need to import the module
manually where you need to use it, but you'll have worked that out
already.

any help?

On Jul 5, 10:28 pm, Jeremy  wrote:
> AHHH, that makes a little more sense.  I'm trying to install apps from
> Github.  Things like Pinax, and different individual blogging apps so
> that I can "plug" them into one Django project to give it multiple
> bits of social functionality.  Obviously I'm having a lot of trouble
> (some of it being that it sounds like I don't even know what I'm
> saying).  I've tried to install these apps through PIP and other forms
> on Dreamhost, but it keeps saying that I don't have permission.  The
> way that I believed to get around this is to set up virtualenv on my
> shared server space, and create the project inside of that, correct?
> But if I do this, how can I view the project that I creating live?
>
> Again, if this all sounds foolish, keep in mind I'm incredibly new to
> all these concepts and my not understand them enough.  I've been
> looking for someone locally to give me some Django lessons, but I keep
> coming up dry.
>
> Let me know if anyone can assist me.  Thanks guys.
>
> On Jul 5, 3:26 pm, bruno desthuilliers 
> wrote:
>
>
>
>
>
>
>
> > I can only second Shawn here. FWIW, virtualenv is just a way to have
> > different (more or less) isolated *Python* environments on a same
> > system, and has no notion of a "Django project".

-- 
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: Dreamhost Virtualenv Question

2011-07-06 Thread i...@webbricks.co.uk
oh yeah
http://www.saltycrane.com/blog/2009/05/notes-using-pip-and-virtualenv-django/

that page is my goto reference on building a virtualenv, you might
have already found it, but if not...

On Jul 5, 10:28 pm, Jeremy  wrote:
> AHHH, that makes a little more sense.  I'm trying to install apps from
> Github.  Things like Pinax, and different individual blogging apps so
> that I can "plug" them into one Django project to give it multiple
> bits of social functionality.  Obviously I'm having a lot of trouble
> (some of it being that it sounds like I don't even know what I'm
> saying).  I've tried to install these apps through PIP and other forms
> on Dreamhost, but it keeps saying that I don't have permission.  The
> way that I believed to get around this is to set up virtualenv on my
> shared server space, and create the project inside of that, correct?
> But if I do this, how can I view the project that I creating live?
>
> Again, if this all sounds foolish, keep in mind I'm incredibly new to
> all these concepts and my not understand them enough.  I've been
> looking for someone locally to give me some Django lessons, but I keep
> coming up dry.
>
> Let me know if anyone can assist me.  Thanks guys.
>
> On Jul 5, 3:26 pm, bruno desthuilliers 
> wrote:
>
>
>
>
>
>
>
> > I can only second Shawn here. FWIW, virtualenv is just a way to have
> > different (more or less) isolated *Python* environments on a same
> > system, and has no notion of a "Django project".

-- 
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: Need some help with MySQL and on OSX

2011-06-06 Thread i...@webbricks.co.uk
MAMP. about as easy as it can get.
http://www.mamp.info/de/index.html


On Jun 6, 8:51 am, Daniel Roseman  wrote:
> On Monday, June 6, 2011 2:30:25 AM UTC+1, Kolbe wrote:
>
> > Anyone have any good documentation on getting django with MySQL on OSX
> > out there?
>
> > Cheers!
> > Kolbe
>
> Just use Homebrew[1]. There's no reason to do it any other way.
>
>   [1]:https://github.com/mxcl/homebrew
>
> --
> DR.

-- 
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: Pre-deployment steps for Django apps?

2011-06-03 Thread i...@webbricks.co.uk
add the sitemap app in.
add robots.txt line.

then hook it up to google webmasters tools...

would love to hear what others do...

On Jun 3, 1:28 am, shantp  wrote:
> Hi all,
>
> I am almost ready to make my app live. I am curious what steps you all take
> while getting your app ready to deploy.
>
> Other than setting DEBUG=False, what steps do you take with your app? Any
> reusable apps you add? Are there extra things I need to do for security?
>
> I'm not asking for deployment instructions because I know that has been
> talked to death, I'm more interested in things to do before deploying.

-- 
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: adding objects via admin section from ipad/iphone

2011-06-02 Thread i...@webbricks.co.uk
i think that approach is a little advanced for me, im not sure where
id start!

why would he need reeducating?

Matt

On Jun 1, 4:39 pm, Tom Evans <tevans...@googlemail.com> wrote:
> On Wed, Jun 1, 2011 at 4:07 PM, i...@webbricks.co.uk
>
>
>
>
>
> <i...@webbricks.co.uk> wrote:
> > i wonder if anyone has any suggestions around this issue.
>
> > I'm using zinnia blog engine in a couple of sites. customer has had
> > his head turned by an SEO genius (!) who reckons wordpress is far
> > better for google search results than zinnia. customer starts thinking
> > about moving back to wordpress. im not too chuffed about this.
> > customer starts playing with wordpress and realises he can use his
> > ipad/iphone (via bespoke apps) to create blog posts. tries on his
> > zinnia blog, no can do. this is because the choose file buttons in the
> > forms are greyed out, since you cant just access the ipads filesystem.
>
> > the wordpress apps are native on the device so know how to get into
> > the photo library to upload images.
>
> > so if i wanted to be able to create a blog post on the ipad, im
> > looking at having to create a custom app and getting it through the
> > app store.
>
> > unless there is some framework like phone gap that allows access?
>
> > has anyone come ancross and solved this issue before?
>
> I would have thought it would be easier to mimic wordpress's web
> service API, and re-use the same app, than to write a new app.
>
> Alternatively, send your customer for re-education.
>
> Cheers
>
> Tom

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



adding objects via admin section from ipad/iphone

2011-06-01 Thread i...@webbricks.co.uk
i wonder if anyone has any suggestions around this issue.

I'm using zinnia blog engine in a couple of sites. customer has had
his head turned by an SEO genius (!) who reckons wordpress is far
better for google search results than zinnia. customer starts thinking
about moving back to wordpress. im not too chuffed about this.
customer starts playing with wordpress and realises he can use his
ipad/iphone (via bespoke apps) to create blog posts. tries on his
zinnia blog, no can do. this is because the choose file buttons in the
forms are greyed out, since you cant just access the ipads filesystem.

the wordpress apps are native on the device so know how to get into
the photo library to upload images.

so if i wanted to be able to create a blog post on the ipad, im
looking at having to create a custom app and getting it through the
app store.

unless there is some framework like phone gap that allows access?

has anyone come ancross and solved this issue before?

-- 
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: sitemaps not quite as easy to setup as suggested?

2011-05-27 Thread i...@webbricks.co.uk
found the following snippet of code, managed to get it doing what i
want with it.

http://stackoverflow.com/questions/4836188/django-sitemaps-and-normal-views

Matt

On May 27, 4:45 pm, Addy Yeow <ayeo...@gmail.com> wrote:
> I keep sitemap for those objects in 1 sitemap file, and manually create
> another sitemap file for all my static pages.
> Then, create a sitemap index to point to the two.
>
> Would love to hear from others though.
>
> On Fri, May 27, 2011 at 11:22 PM, i...@webbricks.co.uk <i...@webbricks.co.uk
>
>
>
>
>
>
>
>
>
> > wrote:
> > ok, read the docs properly and understood it a bit more. im stuck with
> > one thing though. i get how simple it is to tell the sitemap about all
> > the objects that have been created but what about the static pages,
> > where you've not used flatpages. for instance a contact form you've
> > created, this should be in the sitemap, but isnt a flatpage.
>
> > how do i go about adding them to the dict in the urls file?
>
> > --
> > 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.
>
> --http://www.dazzlepod.com.http://twitter.com/dazzlepod
> We write elegant and minimal apps that works. We develop web apps with
> Django framework.

-- 
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: sitemaps not quite as easy to setup as suggested?

2011-05-27 Thread i...@webbricks.co.uk
ok, read the docs properly and understood it a bit more. im stuck with
one thing though. i get how simple it is to tell the sitemap about all
the objects that have been created but what about the static pages,
where you've not used flatpages. for instance a contact form you've
created, this should be in the sitemap, but isnt a flatpage.

how do i go about adding them to the dict in the urls file?

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



sitemaps not quite as easy to setup as suggested?

2011-05-27 Thread i...@webbricks.co.uk
hi all, struggling to get sitemaps setup. followed docs, including
working out there was an import missing in the docco.

this is the copy n paste error

Environment:


Request Method: GET
Request URL: http://coatesconstruction.co.uk/sitemap.xml

Django Version: 1.3
Python Version: 2.5.2
Installed Applications:
['django.contrib.auth',
 'django.contrib.contenttypes',
 'django.contrib.sessions',
 'django.contrib.sites',
 'django.contrib.messages',
 'django.contrib.staticfiles',
 'django.contrib.sitemaps',
 'django.contrib.admin',
 'frontpage',
 'contact_form',
 'projects',
 'testimonials',
 'south']
Installed Middleware:
('django.middleware.common.CommonMiddleware',
 'django.contrib.sessions.middleware.SessionMiddleware',
 'django.middleware.csrf.CsrfViewMiddleware',
 'django.contrib.auth.middleware.AuthenticationMiddleware',
 'django.contrib.messages.middleware.MessageMiddleware')


Traceback:
File "/home/shofty/virtualenvs/coates/lib/python2.5/site-packages/
django/core/handlers/base.py" in get_response
  111. response = callback(request,
*callback_args, **callback_kwargs)
File "/home/shofty/virtualenvs/coates/lib/python2.5/site-packages/
django/contrib/sitemaps/views.py" in sitemap
  33. maps = sitemaps.values()

Exception Type: AttributeError at /sitemap.xml
Exception Value: 'module' object has no attribute 'values'

should i be populating sitemaps in the urls file?

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