Hello, 
I am new to Django/Mezzanine and could not find the answers in either 
DjangoBook or Mezzanine docs, so please bear with me. 
I have created a Photo model to easily publish single images:

model.py
---------------
from django.db import models
from mezzanine.pages.models import Page

class Photo(Page):
    image = models.ImageField(upload_to="photos")
    

admin.py
----------------
from django.contrib import admin
from mezzanine.pages.admin import PageAdmin
from .models import Photo

fieldsets = [
    (None, {"fields": ("titles","image",)}),
    ('Date information', {'fields': ['publish_date'], 'classes': 
['collapse']}),
 ]

class PhotoAdmin(PageAdmin):
    fieldsets = fieldsets

admin.site.register(Photo, PageAdmin)

-----------------------------
I have some problems though:

1. Uploaded images are not displayed on the photo page, even though I can 
see them at http://127.0.0.1:8000/static/media/photos/mypic.gif 

2. In admin panel, How can I make default of Published from to 
DateTime.now(), Expires on never, disable  all show in menu options and 
login required? (and possibly just hide them)




Thanks,
Markos


    

-- 
You received this message because you are subscribed to the Google Groups 
"Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to