Hi Shawn,

I've pasted my model code. That doesn't sort out my issue.

from django.db import models
from django.contrib import admin
import datetime
import os 

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

class Portfolio(models.Model):
        title = models.CharField('Title', max_length=200)
        url = models.URLField('website URL')
        description = models.TextField('Desc', max_length=500, null=True)
        technology_used = models.CharField('Technology Used',max_length=200)
        url_image = models.ImageField('Portfolio Image',upload_to =
'media/images/portfolio/')  
        display = models.BooleanField('Display on Frontpage')
        created = models.DateField(auto_now= True)

        class Meta:
                ordering = ['created']

        class Admin:
                pass
        
        def __unicode__(self):
                return self.title
        
admin.site.register(Portfolio)  

-----Original Message-----
From: django-users@googlegroups.com [mailto:django-us...@googlegroups.com]
On Behalf Of ShawnMilo
Sent: 07 October 2010 21:16
To: Django users
Subject: Re: OS Error, Permission Denined

The problem here is most likely due to the forward-slash in front of
your path name. Django's trying to actually write to a non-existant
folder at a level you don't have access to in any case on shared
hosting. Try taking it out and see if that fixes it.

Shawn

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

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

Reply via email to