[mezzanine-users] Re: Looking for Developer to create a site in mezzanine based on my current site

2014-02-04 Thread Moltra
The current site is developed in drupal.  Very much a resource hog.

-- 
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 mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[mezzanine-users] Re: Looking for Developer to create a site in mezzanine based on my current site

2014-02-02 Thread Moltra


 Thanks all for the advice.  I did not realize all the information that was 
 needed.


-- 
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 mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[mezzanine-users] Looking for Developer to create a site in mezzanine based on my current site

2014-01-21 Thread Moltra
I am looking for a developer that can create a site using mezzanine with 
the same basic functions of my current website.

The URL is http://serviidb.com.

If you are interested please contact me.

-- 
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 mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[mezzanine-users] NoReverseMatch for custom app based on Blog app.

2014-01-13 Thread Moltra
I am trying to create a copy of the built in blog app so I can customize 
the fields in it.  I have copied and renamed everything I can find in the 
files.  I can get the mediablog to open up in the admin screen to add a new 
post.  But when I click save, it saves it in the database and then gets the 
following error.

Error during template rendering
 In template 
 C:\django\web\lib\site-packages\grappelli_safe\templates\admin\change_list.html,
  
 error at line 
 *105*Reverse for 'mediablog_post_detail' with arguments '()' and keyword 
 arguments '{'slug': 'test-mediablog-2'}' not found. 0 pattern(s) tried: []


I have looked at other threads with the same problems and I still cannot 
figure out what is causing it.  Here is the information that was asked for 
in the other threads.  I am changing the text color for the areas, I think 
are involved.

Part of model.py

 def get_absolute_url(self):

 

 URLs for mediablog posts can either be just their slug, or prefixed

 with a portion of the post's publish date, controlled by the

 setting ``mediablog_URLS_DATE_FORMAT``, which can contain the value

 ``year``, ``month``, or ``day``. Each of these maps to the name

 of the corresponding urlpattern, and if defined, we loop through

 each of these and build up the kwargs for the correct urlpattern.

 The order which we loop through them is important, since the

 order goes from least granualr (just year) to most granular

 (year/month/day).

 

 url_name = mediablog_post_detail

 kwargs = {slug: self.slug}

 date_parts = (year, month, day)

 if settings.mediablog_URLS_DATE_FORMAT in date_parts:

 url_name = mediablog_post_detail_%s % 
 settings.mediablog_URLS_DATE_FORMAT

 for date_part in date_parts:

 date_value = str(getattr(self.publish_date, date_part))

 if len(date_value) == 1:

 date_value = 0%s % date_value

 kwargs[date_part] = date_value

 if date_part == settings.mediablog_URLS_DATE_FORMAT:

 break   

 return reverse(url_name, kwargs=kwargs)


Part of my urls.py:

 # mediablog patterns.

urlpatterns = patterns(.views,

url(^%sfeeds/(?Pformat.*)%s$ % _slashes,

mediablog_post_feed, name=mediablog_post_feed),

url(^%stag/(?Ptag.*)/feeds/(?Pformat.*)%s$ % _slashes,

mediablog_post_feed, name=mediablog_post_feed_tag),

url(^%stag/(?Ptag.*)%s$ % _slashes, mediablog_post_list,

name=mediablog_post_list_tag),

url(^%scategory/(?Pcategory.*)/feeds/(?Pformat.*)%s$ % _slashes,

mediablog_post_feed, name=mediablog_post_feed_category),

url(^%scategory/(?Pcategory.*)%s$ % _slashes,

mediablog_post_list, name=mediablog_post_list_category),

url(^%sauthor/(?Pusername.*)/feeds/(?Pformat.*)%s$ % _slashes,

mediablog_post_feed, name=mediablog_post_feed_author),

url(^%sauthor/(?Pusername.*)%s$ % _slashes,

mediablog_post_list, name=mediablog_post_list_author),

url(^%sarchive/(?Pyear\d{4})/(?Pmonth\d{1,2})%s$ % _slashes,

mediablog_post_list, name=mediablog_post_list_month),

url(^%sarchive/(?Pyear\d{4})%s$ % _slashes,

mediablog_post_list, name=mediablog_post_list_year),

url(^%s(?Pyear\d{4})/(?Pmonth\d{1,2})/(?Pday\d{1,2})/

(?Pslug.*)%s$ % _slashes,

mediablog_post_detail, name=mediablog_post_detail_day),

url(^%s(?Pyear\d{4})/(?Pmonth\d{1,2})/(?Pslug.*)%s$ % _slashes,

mediablog_post_detail, name=mediablog_post_detail_month),

url(^%s(?Pyear\d{4})/(?Pslug.*)%s$ % _slashes,

mediablog_post_detail, name=mediablog_post_detail_year),

url(^%s(?Pslug.*)%s$ % _slashes, mediablog_post_detail,

name=mediablog_post_detail),

url(^%s$ % _slashes[1], mediablog_post_list, 
 name=mediablog_post_list),

)


Part of my views.py:

 def mediablog_post_detail(request, slug, year=None, month=None, day=None,

  template=mediablog/mediablog_post_detail.html):

 . Custom templates are checked for using the name

 ``mediablog/mediablog_post_detail_XXX.html`` where ``XXX`` is the 
 mediablog

 posts's slug.

 

 mediablog_posts = mediablogPost.objects.published(

 
  for_user=request.user).select_related()

 mediablog_post = get_object_or_404(mediablog_posts, slug=slug)

 context = {mediablog_post: mediablog_post, editable_obj: 
 mediablog_post}

 templates = [umediablog/mediablog_post_detail_%s.html % str(slug), 
 template]

 return render(request, templates, context)


I have the template mediablog_post_detail.html in the 
/mediablog/tempates/mediablog/ folder and in the root directory 
/templates/mediablog/   folder.

I have deleted all the url patterns above the one highlighted above and 
still get the same error.

Here is 

Re: [mezzanine-users] NoReverseMatch for custom app based on Blog app.

2014-01-13 Thread Moltra


 No I did not do that, I will look in the documents and figure out how to. 
  Thanks for the heads up. 

-- 
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 mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[mezzanine-users] Re: A newsletter for mezzanine

2013-12-26 Thread Moltra
I am interested in a newsletter for mezzanine.  I would like to be able to 
include a description summary of the the last x number of posts. 

-- 
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 mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[mezzanine-users] best way to get blog post info. (created by:, Created on:, Last Modified By: Last Modified On:)

2013-12-26 Thread Moltra
I am trying to figure out what is the best way to have the below 
information for each blog post.

Created_by
Created_on
Last_modified_by
Last_modified_on.


Is there a field that already logs who created a blog entry?  Is there a 
field that already logs when a Blog entry was created?  

Using PHP, I would use system time for created_on and last_modified_on and 
store it in fields in the database.  I would use user.name as the 
created_by and then the Last_modified_by.

I found the below code on stackoverflow.com and it seems like it will work, 
but not sure if there is an easier or more efficient way in mezzanine. 
 This code does not contain the created_on or the last_modified_on but 
would be easy to add them to the code.

def save_model(self, request, obj, form, change):
if hasattr(obj, 'created_by') and hasattr(obj, 'modified_by'):
if not change:
obj.created_by = request.user obj
obj.modified_by = request.user
 else:
obj.modified_by = request.user 
obj.save()


-- 
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 mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[mezzanine-users] Re: page not found django_redirect

2013-12-23 Thread Moltra
I have opened a ticket at 
https://github.com/django-debug-toolbar/django-debug-toolbar/issues/509 about 
this issue.  I am not sure if it is a problem caused by mezzanine or 
debug_toolbar.

-- 
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 mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [mezzanine-users] Re: page not found django_redirect

2013-12-23 Thread Moltra
I tried that and still had the same problem.

-- 
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 mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[mezzanine-users] Re: page not found django_redirect

2013-12-22 Thread Moltra
found what is calling the django_redirect, still not sure what started 
causing it.
*SELECT* django_redirect.id, django_redirect.site_id, 
django_redirect.old_path, 
django_redirect.new_pathhttp://127.0.0.1:8000/duck-dynasty/#
*FROM* django_redirect *WHERE* (django_redirect.site_id = 1 *AND* 
django_redirect.old_path 
= '/duck-dynasty/' )
0%
0.00Sel Expl

*Connection:* default

C:\django\mezz\lib\site-package

s\mezzanine\core/middleware.py in process_response(238)
  redirect = Redirect.objects.get(**lookup)

-- 
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 mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[mezzanine-users] Re: page not found django_redirect

2013-12-22 Thread Moltra
I keep looking at this and trying to find what happened, I have tried to 
update the 1st post on here, but cannot find a way to edit the post.  Is 
there a way to do this?  

I figured out what was causing it, I had installed debug_toolbar and that 
is when the problems started happening.  I disabled debug_toolbar and the 
links worked again.  

It looks like there is a bug someplace that is causing this.

-- 
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 mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.