First time here? Check out the FAQ!

nimbiotics's profile - activity

2015-06-16 09:09:13 -0600 received badge Famous Question (source)
2014-06-23 16:30:04 -0600 received badge Famous Question (source)
2013-10-18 21:07:51 -0600 asked a question PythonANywhere->ImportError raised loading nrpccms.newsroom.templatetags.blog_extras: No module named settings

Trying to deploy my very first app in PythonAnywhere (or at AnywhereAnywhere for that matter) I'm currently getting

TemplateSyntaxError: 'blog_extras' is not a valid tag library: ImportError raised loading nrpccms.newsroom.templatetags.blog_extras: No module named settings

(full error log)[http://dpaste.com/1421863/] (see error live)[http://nimbiotics.pythonanywhere.com/]

The app newsroom is the very first one in INSTALLED_APPS:

#! python
# ...
INSTALLED_APPS = (
    "nrpccms.newsroom",
    "django.contrib.admin",
# ...

Also, blog_extras.py is at MY_PROJECT/MY_APP/templates, and there IS a __init__.py at MY_PROJECT/mY_APP

Please help me pinpoint my mistakes as I don't know where else to look: This are my first baby steps in the arts of webapps/django

Thanks a lot in advanced!

2013-10-16 09:58:56 -0600 received badge Supporter ( source )
2013-10-16 09:57:34 -0600 commented answer mezzanine: multiple authors per blog post

Thanks Fitora. Thats exactly what I did and this is what I got at post : https://groups.google.com/forum/#!topic/mezzanine-users/xhRJ_73po5k "If you just want to display more authors you might be able to add an M2M to BlogPosts using field injection called something like additional_authors. Making it so that additional authors could edit BlogPosts in the admin would be more complicated but probably doable. At worst you would have to unregister the BlogAdmin and then re register it with a custom blog admin that also allows additional authors to view/edit. You can check out the OwnableAdmin which the BlogAdmin makes use of here: https://bitbucket.org/stephenmcd/mezzanine/src/30cf2712c473c5e98865e7984fae8127e9a0a79f/mezzanine/core/admin.py?at=default#cl-112"</p<>>

2013-10-16 09:55:16 -0600 received badge Scholar ( source )
2013-10-14 01:04:50 -0600 asked a question mezzanine: multiple authors per blog post

How can I implement the possibility of having more than one author per blog post in mezzanine?

TIA!

2013-10-12 15:48:28 -0600 received badge Taxonomist
2013-10-12 15:48:28 -0600 asked a question Django's Inclusion Tags

I'm working on an Inclusion Tag. In the super shell, the tag returns the appropiate data set nevertheles, I dont see the inclusion template rendered on the calling template. I can only guess the inclusion template is in the wrong location. As of this moment, the template is at MYPROJECT/templates which is the ONLY folder in TEMPLATE_DIRS. Please help me figure out what am I doing wrong here. TIA!

MYPROJECT/newsroom/templatetags/blog_extras.py -> pastebin.com/ssuLuVUq

MYPROJECT/settings.py -> pastebin.com/Ed53qp5z

MYPROJECT/templates/featured_posts.html -> pastebin.com/svyveqq3

MYPROJECT/templates/blog/blog_post_list.html -> pastebin.com/tJedXjnT

2013-10-12 12:20:46 -0600 asked a question django inclusion tags

Hello everyone. I wrote the inclusion tag "featured_posts_list" that lives in "PROJECT/newsroom/blog_extras.py" pastebin.com/gueT0M9G, shown in line 86 of the project's tree at pastebin.com/uFQ5sKFt. The tag's render template "PROJECT/template/include/featured_posts.html" pastebin.com/eB7T3772 is on line 195 of the tree at pastebin.com/uFQ5sKFt. I'm using mezzanine and, since my site is blog centric, I'm using "PROJECT/templates/blog/blog_post_list.html" pastebin.com/4NhA76BZ for my home page. The inclusion tag is used in line 80. To the best of my knowledge, I followed the instructions in the documentation yet; I am getting "TemplateSyntaxError: Invalid tag" at the line where the inclusion tag is used in my template. Please help me figure this out. Thanks in advanced!

2013-10-12 10:34:56 -0600 received badge Enthusiast
2013-10-11 16:29:10 -0600 commented question django view not working

Thanks fitora!

2013-10-11 15:33:02 -0600 asked a question django view not working

Hello all, working with mezzanine, I created in an app (newsroom) folder, a views.py http://dpaste.com/1413587/. This view is an addition to the blog app in site-packages. I then I put a section in my blog_post_list.html template file to (supposedly) show the data from that view http://bpaste.net/show/6cHStytzI5cqfICpFVAT/, but I cannot see this data. blog_post_list.html is my home. Will someone please point my mistake here? TIA!

2013-10-08 12:49:09 -0600 asked a question mezzanine field injection failing

Following my work with mezzanine, I'm trying to inject a field by:

1>> Adding the EXTRA_MODEL_FIELDS in settings.py pastebin.com/d5amC7fj and then

2>> Creating the file admin.py pastebin.com/zstJNCma under my 'customizations' application.

But when I try the schemamigration, I'm getting an error I can't understand at all pastebin.com/exLtcQSs.

What am I missing here?

Any and all comments are welcome.

Thanks a lot in advanced!

2013-10-07 16:10:54 -0600 commented answer What is the right location for my django translation files?

This solution worked like a charm. Thanks a BUNCH! I cant upvote ... my account is too recent...

2013-10-07 16:02:14 -0600 commented answer How to translate django applications?

Fitoria. I did post a question on the same issue. I still dont know how this site works, but I guess If you add your answer ... canI give you ponts/karma or whatever it is they call them? anyways, plese check http://askbot.org/en/question/11691/what-is-the-right-location-for-my-django-translation-files/ ... and dont forget to bring some vigorĂ³n and gallo pinto to share ... I'll bring some arepas con chicharrĂ³n...

2013-10-07 10:06:54 -0600 received badge Famous Question (source)
2013-10-04 18:15:42 -0600 commented answer How to translate django applications?

You are officially THE man, bar none. THANKS A BUNCH!!

2013-10-04 17:56:32 -0600 commented answer How to translate django applications?

Thanks a lot for your prompt help. It worked! ... now can I make sure this path gets updated at deployment?

2013-10-04 17:31:39 -0600 commented answer How to translate django applications?

It didn't work for me. Please take a look the this paste: http://pastebin.com/c8pvKLXQ. It shows my tree and the value of LOCALE_PATHS at the end of settings.py Any and all input welcome. Thanks in advanced!

2013-10-04 16:19:28 -0600 commented answer How to translate django applications?

Thanks again, will try and report soon!

2013-10-04 16:05:59 -0600 commented answer How to translate django applications?

I haven't tried that possibility yet, my concern in this case however is whether or not I'll have to translate everything (django, mezzanine and all apps) when Im just basically changing (literally) a couple of words found in one application. I will be trying this path and report my findings in a couple of hours. Thanks for your input!

2013-10-04 00:52:20 -0600 received badge Student (source)
2013-10-04 00:27:34 -0600 asked a question What is the right location for my django translation files?

Hi,

I'm giving my first steps with python/django/mezzanine so please bear with me.

I modified a translation file and compiled it ok.

The translated file belongs to mezzanine's blog application and the only place I found out I could place it to test was at the blog app's locale folder (~/MY_VIRTUAL_ENV/lib/python2.7/site-packages/mezzanine/blog/locale/es/LC_MESSAGES).

It worked fine, but my guts tell me there has to be a way I can have this file(s) in some other location WITHIN my own mezzanine application so:

  1. I can easily maintain it and
  2. I don't have to keep my whole virtual environment in my SCM's repository.

Am I in the right track? If so, where should I place my new own translation files?

Thanks a lot in advanced

2013-10-04 00:23:47 -0600 answered a question How to translate django applications?

Hi,

I'm giving my first steps with python/django/mezzanine so please bear with me.

I modified a translation file and compiled it ok.

The translated file belongs to mezzanine's blog application and the only place I found out I could place it to test was at the blog app's locale folder (~/MY_VIRTUAL_ENV/lib/python2.7/site-packages/mezzanine/blog/locale/es/LC_MESSAGES).

It worked fine, but my guts tell me there has to be a way I can have this file(s) in some other location WITHIN my own mezzanine application so:

  1. I can easily maintain it and
  2. I don't have to keep my whole virtual environment in my SCM's repository.

Am I in the right track? If so, where should I place my new own translation files?

Thanks a lot in advanced