Profile for eXt
| Name | eXt |
|---|---|
| Email Address | Reveal this emailaddress |
| Avatar | |
| Posts | 60 |
| Board Signature | |
-
- 2010-12-07 19:06:38
- Re: Where are media files kept? What are the urls?
- Board » General
-
npmaier said @ 2010-12-06 02:54:30:I am using {{ MEDIA URL }}/sphene/community/....... I haven't found where the MEDIA_URL is set, but it'll work for now.
Thanx.As Pigletto said it is set in settings.py, but it is possible to use {{ MEDIA_URL }} in your templates because of 'django.core.context_processors.media' context processor which is enabled by default. No magic here.
You use: {{ MEDIA URL }}/sphene/community/..... See: http://docs.djangoproject.com/en/1.2/ref/settings/#media-url and please note that valid MEDIA_URL has a trailing slash. Because of that you should use {{ MEDIA_URL }}sphene/community/... (no slash after MEDIA_URL variable).
-
- 2010-11-20 19:55:04
- Re: SCT at djangopackages
- Board » General
-
pigletto said @ 2010-11-20 19:50:23:I've just added SCT to djangopackages. See grid forums: http://djangopackages.com/grids/g/forums/Looks pretty impressive compared to others.
So.. "I use this"
-
- 2009-08-25 20:36:13
- Re: Error while running syncdb
- Board » General
-
Herbert Poul said @ 2009-08-13 22:18:49:ok.. it seems to be only an issue in combination with 'django app plugins'. i couldn't reproduce the problem without it. anyway .. i have now simply handle the error in the template loader, which should solve your problem.Herbert, I can confirm the problem still exists. IMHO the problem is that get_current_group is called when syncdb is executed and because syncdb doesn't execute middleware functions so there is no group set in _thread_locals.
So, there should be:
- check whether it is a command line execution in get_current_group. if it is then don't bother with group, or
- don't call "raise e" in get_current_group, instead return False or None - but then we have to check for False/None in every place where get_current_group is called.
What do you think?
--edit
OK, I digged a bit more and you're right that the problem is triggered by django-app-plugins application which causes get_current_site to be called which is redefined in sphene to check current group. So I wonder where is a real source of the problem? django-app-plugins or SCT?
--- Ostatnio edytowane 2009-08-25 21:28:34 przez eXt ---
-
- 2009-08-17 21:47:01
- Re: Latest threads - how to get them?
- Board » General
-
Cool. Thanks a lot!
-
- 2009-08-13 14:48:12
- Latest threads - how to get them?
- Board » General
-
Hi!
I'm looking for a best way to build latest threads widget/portlet. There is "latest" page in Sphene's board but it's code is based on "the oldest and ugliest (function) in the whole SCT source" so it is a bit complicated. There is also "sphboard_latest_threads" tag but it is probably unused and it is undocumented. Another solution is to write my own tag and just retrive threads from db. What do you recommend?
-
- 2009-06-08 20:09:03
- Re: Problems with sphene setup
- Board » General
-
Tiger said @ 2009-06-07 11:47:57:I followed the tutorial to add sphene to my project. I am using the development server, running at localhost:8000. First of all, I had to eliminate the "defaultdict" argument from the urlconf, to make it work at all. Before that I got unknown keyword argument "groupName". In the example projects this did not appear to be a problem, they all use the groupName argument.Group is comparable to Django's sites concept. It is used only to make it possible to run single Django instance running multiple boards on different domains. It is not obvious to me if it is possible not to use group at all - groups are used in many places.
So the safe way is to define a group. Yes it's a bit tricky because you have to:
1. add a group through admin panel (there is already example group)
2. then change group (default group is example) in your settings: urls.py or settings.py if you use multidomain middleware.
If you don't add a group in admin and just change your settings you will get strange errors.
Now, when going to the board/ url there is a page which tells me "no categories"...
I am missing something here... Anything I could check?
Thank you for your help...
Category is hmm.. just a board, you have to add it in admin panel.
-
- 2009-05-26 12:30:56
- Re: Updated Polish language files for Board
- Board » General
-
Herbert Poul said @ 2009-05-26 00:58:37:i'm currently a bit busy .. (in 12 hours my flight to san francisco departs
) - so i fear i won't be able to commit this in the next few days.. but don't you have commit rights already ?
I probably have it but.. what was the password?
BTW, have a nice flight!
-
- 2009-05-25 23:07:39
- Re: [Board] What is "separator" category for?
- Board » General
-
Herbert Poul said @ 2009-05-25 16:24:59:the separator category type is simply for category types which are used as "header" categories.. check out http://django-resource.de/forum/ .. it contains three separator categories ..Ok, thanks. Nice feature.
-
- 2009-05-25 15:02:25
- [Board] What is "separator" category for?
- Board » General
-
I wonder what is the use for categories marked as category type "separator"? Separator is one of default categories but I didn't find it's description in docs.
-
- 2009-05-25 10:10:56
- Re: Updated Polish language files for Board
- Board » General
-
Herbert Poul said @ 2009-05-21 20:32:20:thanks, it is committed now..
I must have messed something with these files. I've just updated SCT and I see that they weren't correct ones. Here I attach correct updated files again. (watch out names - sct has added an underscore to them).
Sorry for that.


