Hi group,
Is it reasonable easy to achieve a form for users with in the end the
opportunity to register or login? I'd like to let users who visit the
site for the first time be able to choose a password and name. This
needs to registered first and temporarily the data of the form itself
needs to b
Hi group,
On my ubuntu server I'm using pinax 0.71 and for deployment I used
this tutorial
http://pinaxproject.com/docs/dev/deployment.html#sending-mail-and-notices
The emailsettings are:
EMAIL_HOST = 'smtp.gmail.com'
EMAIL_HOST_USER = $$
EMAIL_HOST_PASSWORD = $$
EMAIL_PORT = 587
EMAIL_USE_TLS
Thanks for the replies. The form works fine now
Great to have such an active and accurate group
On Jan 18, 9:27 pm, Daniel Roseman wrote:
> On Jan 18, 7:17 pm, GoSantoni wrote:
>
> > I didn't alter the model but the view
>
> > def new(request, form_class=Blo
Guys,
I'm trying to create a loop to send notification by dango-notification
for all new posts. What i'd like to do is send a notification for the
posts added after the last visit of the members. Phrased otherwise I
just want to send (update) users about new posts, not about old ones.
Users read no
stance:
raise forms.ValidationError(u'This field must be
unique for username, year, and month')
except Post.DoesNotExist:
pass
return self.cleaned_data['slug']
This resulted in the TypeError
On Jan 18, 7:33 pm, Adam Knight wrote:
ommit'
On Jan 18, 4:21 pm, nek4life wrote:
> On Jan 18, 10:01 am, GoSantoni wrote:
>
>
>
>
>
> > Hi
>
> > Trying to use save_m2m as described
> > herehttp://docs.djangoproject.com/en/1.0/topics/forms/modelforms/#the-sav...
> > Though in run
Hi
Trying to use save_m2m as described here
http://docs.djangoproject.com/en/1.0/topics/forms/modelforms/#the-save-method
Though in run into an attrribute error 'Post' object has no attribute
'save_m2m'
*** Model ***
class Post(models.Model):
id = models.AutoField(primary_
ial/datastructures.html
but it still remains unclear to me.
This is the queryset which works in the view Image.objects.filter
(member=request.user)
Thanks guys
On Jan 14, 8:38 pm, Tom Evans wrote:
> On Thu, Jan 14, 2010 at 6:39 PM, GoSantoni wrote:
> > Hi
>
> > Is it po
Hi group,
I have the following problem:
* a relation in the model between posts and images *
class Post(models.Model):
imagepost = models.ManyToManyField(Image, blank=True,
verbose_name=_('media'))
* usage of media in view *
def post(request, username, year, month, slug
Hey Daniel,
Thanks for response, as always helpful and quick. Like you suggested I
changed the fields to the class. This resulted in a error because
BlogForm could not be found. So I decided not to bother the photologue
model but import the Images into the blog model. This resulted in:
* blog
Hi group,
I've been using the django project docs about the ModelForm but still
I've got problems using the ModelMultipleChoiceField for a
ManyToManyField relation. The aim is to relate Images to blog Posts.
So images can get attached to multiple posts and posts can be attached
to multiple images.
Hi group,
Does anybody have a suggestion for this problem? I am trying to make a
matchmodel between the same field in two lists, item_one and item_two.
Item is one of the Charfields in a Post. The Post is attached with a
foreign key to a blog (blog__id=1 or blog__id=2).
So if in item list one the
Found this (old) post
http://oebfare.com/blog/2008/feb/23/changing-modelchoicefield-queryset/
So i tried
class Post(models.Model):
blog = models.ForeignKey(blog)
.
url = models.ModelChoiceField
(queryset=Image.objects.values_list())
def __init__(self, *args, **k
Hey just a newbie question about the design of the models.py What is
the best way to use the result of objects.values_list for a choices
model ?
** shell ***
In [1]: from photos.models import Image, Pool
In [3]: Image.objects.values_list('image')
Out[3]: [(u'p
Guys got 2 columns generated by
{% autopaginate blogs_one 3 %}
{% for blog_post in blogs_one %}
{% show_blog_post blog_post %}
{% endfor %}
{% paginate %}
{% autopaginate blogs_two 3 %}
{% for blog_post in blogs_
Hey i've got a very basic question about django form processing. Got
haystack installed and searching works fine in the standard search
template (http://haystacksearch.org/docs/tutorial.html#search-
template) in the /search . Though i want to use the search box defined
by {{ form.as_table }} in ano
Guys, i'm struggling with this problem for more than a week now. My
goal is to use a queryset filter with a foreign key.
Issues are
1) column generates a list, what is the right way to get the blog id
for a post? So whether the post belongs to blog 1 question or blog 2
answer? Tried Post.objects.
Hi all,
What does this mean? It doesn't make sense doesn't it? Line 25 isn't
referring to the PIL...
Thanks
TemplateSyntaxError at /bookstore/
Caught an exception while rendering: decoder zip not available
Request Method: GET
Request URL:http://localhost:8000/bookstore/
Exception Type: Templat
Hey all, i am new to django and started using pinax. For now i am
trying to set up il8n support using
http://docs.djangoproject.com/en/dev/topics/i18n/?from=olddocs
but it keeps on failing with a TemplateSyntaxError
'il8n' is not a valid tag library: Could not load template library
from django.tem
19 matches
Mail list logo