I am trying to put thumbnail pictures of my photos within my admin page. I
am currently running into the issue where the thumbnail isn't displayed,
when I click on thumbnail I am redirected to the homepage of my project
with this as the URL:
http://127.0.0.1:8000/media/tumblr_ngotb4IY8v1sfi
I posted a question on stackoverflow regarding my issue:
http://stackoverflow.com/questions/28205560/upload-to-value-changes-photo-name-attribute
Basically upload_to value will change my ImageField.name to the upload_to
value
--
You received this message because you are subscribed to the Googl
There is bounty on this stackoverflow question is anyone is interested
On Thursday, January 29, 2015 at 12:35:22 AM UTC-8, bradford li wrote:
>
> I posted a question on stackoverflow regarding my issue:
>
>
> http://stackoverflow.com/questions/28205560/upload-to-value-changes-photo
I am trying to have django send emails but I am getting this error:
Traceback (most recent call last):
File "", line 1, in
File
"/Library/Python/2.7/site-packages/django/core/mail/__init__.py", line 62,
in send_mail
return mail.send()
File "/Library/Python/2.7/site
I posted the same question on stackoverflow if anyone wants to answer it
there.
I am trying to create a builtin User object that has `is_active = False`
but I am getting this error:
null value in column "is_active" violates not-null constraint
Traceback:
File "/Library/Python/2.7/site-
I posted a question on stackoverflow regarding creating forms and
displaying the content. Right now I am only displaying the object name and
location. I am aiming to have it's content and widget displayed but being
new to Django I am having trouble =/ I feel the problem resides in beatle
field
I'm pretty new to Django and I thought, what better way to learn than to
create your own website?!
I posted a question on Stackoverflow.
http://stackoverflow.com/questions/23534170/album-app-process-in-django
I want to create a Gallery App that would display a list of albums. These
albums woul
I want to know how to display images separated by albums onto a page in
Django. So far, I've learned how to do so with the line
in my html file.
What I want to do is have a few album thumbnails out and upon click, all
the images from the album should be displayed. I believe I would do this
I want to do so without using an app because I feel that way I can really
learn Django. Currently this is what I have in my models.py
from django.db import models
from django.contrib import admin
#from PIL import Images as PImage
import os
from PersonalWebsite.settings import MEDIA_ROOT
#def get
I want to create me admin like this: http://lightbird.net/dbe/_static/p1.png
What I have right now is:
def get_upload_file_name(instance, filename):
new_file_path_and_name = os.path.join(MEDIA_ROOT,'img/albums')
return new_file_path_and_name
class Album(models.Model):
title = models.CharField(ma
I am trying to display the album titles related to my image in my admin
interface
class Album(models.Model):
title = models.CharField(max_length = 60)
def __unicode__(self):
return self.title
class Tag(models.Model):
tag = models.CharField(max_length = 50)
def __unicode__(self):
return self.ta
11 matches
Mail list logo