Sure, you would just override the get() and post() and possibly dispatch()
methods in your classes as needed.
I always recommend the classy CBV inspector, helps immensely with
understanding the available methods and inheritance in the CBV's.
http://ccbv.co.uk/
Also check out the source code of D
Hi L,
Thanks for your reply.
I’m through pip to install the django-auth-ldap already. But there are two
question here.
1. How can I check the django-auth-ldap version?
2. What do you mean of install via virt env? I’m follow the edX
Ubuntu 12.04 +64 bit installation guid
Hi all,
I'm on a Django project, and I have written the following functions in my
views.py.
def my_view_function_1(request):
#Some code
return HttpResponse(--)
def my_view_function_2(request):
#Some code
return HttpResponse(--)
def my_view_function_3(request):
#Som
You're welcome, glad I could help :D
On Mon, Feb 23, 2015 at 5:25 PM, Ronaldo Bahia wrote:
> Awesome! Now it works perfectly.
>
> I'm updating my stackoverflow code for anyone facing the same doubt.
>
> Thanks a lot man
>
>
> Em segunda-feira, 23 de fevereiro de 2015 13:02:06 UTC-3, Vijay Kh
Hi,
I just studied and created first modelFormSet, and tried to use it in view.
I have same code in template as is in django documentation.
modelFormset shows data ok, but submit button is missing,why it is not in
example template in documentation?
ok, I added submit button like I have used with b
Sorry, I've been organising a conference and have been awol. I'll be
able to take a look next week. But quickly:
I don't understand why you have two versions of Django, I would
suggest that is an issue.
You should be using django-auth-ldap, and that's got Django > 1.3 as a
requirement.
You shoul
Awesome! Now it works perfectly.
I'm updating my stackoverflow code for anyone facing the same doubt.
Thanks a lot man
Em segunda-feira, 23 de fevereiro de 2015 13:02:06 UTC-3, Vijay Khemlani
escreveu:
>
> Change the declaration of the funciotn
>
> def filter_job_candidates(job):
>
> to
>
If so, are there any tutorials?
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to d
Change the declaration of the funciotn
def filter_job_candidates(job):
to
def filter_job_candidates(self, job):
And the filtering depends on the particular job being displayed on the
view, if you change the line to
Job.objects.applied_to.all()
Then it would filter the candidates for all the j
OK, thanks. I had added that. I was just putting the url to the particular
file in place. This is my whole urls.py at the top: So you are saying don't
add the line that includes the web.urls?
urlpatterns = patterns('',
url(r'^admin/', include(admin.site.urls)),
url(r'^$', RedirectView.a
Oh, I'm feeling stupid right now :D
now my new error:
filter_job_candidates() takes exactly 1 argument (2 given)
in views.py
job_candidates = form_cand.filter_job_candidates(self.object)
I've tried to remove the arguments but django says "global name 'self' not
defined"
I also think that in
2015-02-23 15:30 GMT+01:00 Brad Rice :
> I'm using RedirectView and it is redirecting to my app, but is not
> rendering the view in the app I am pointing to.
>
> I want to redirect my root / to my app /web
>
> I have this in my primary app urls:
>
> url(r'^$', RedirectView.as_view(url='/web/', per
I'm using RedirectView and it is redirecting to my app, but is not
rendering the view in the app I am pointing to.
I want to redirect my root / to my app /web
I have this in my primary app urls:
url(r'^$', RedirectView.as_view(url='/web/', permanent=False)),
I have this in web.urls.py
url(r'^$
Oh, if it is that line I missed a parenthesis in the my previuos snippet in
the filter of haircolor
job_candidates =
job_candidates.filter(candidate__candidatelook__haircolor=self.cleaned_data['haircolor'])
You also need to change the other filter
job_candidates = job_candidates.filter(status=se
>From what I can tell, you want to run a copy of the database on
multiple mini devices and have replication between them? If so, this
isn't really a good use case for replication, and adds several
unnecessary layers of complexity. So lets look at the end goal, you
want multiple clients to have read
I recently came across this article:
https://www.clairereynaud.net/blog/adding-offline-mode-to-your-mobile-app/
May be of interest as it deals with versions and revisions to track
conflict between changes...
On Saturday, 21 February 2015 16:45:40 UTC+2, Blazor wrote:
>
> Hi all,
>
> I was asked t
>>> In my case, a Task can have one or more TaskStatus. I do not wish to
store
>>> the TaskStatus in the database since they are simply constants.
>>>
>>> Does anyone have a better way of how I can approach this?
>>>
I just read this a bit closer. I think what you mean is that you don't want
a sep
The reason for my strategy here is because I will need to have a
multi-select instead of a single select for choosing the TaskStatus in the
form i.e. A *Task* can have one or more *TaskStatus*.
Moreover, I will again have to create another class, *SomeClass*, which has
a direct relation to the *Ta
For global constants, I would second the strategy that Mike outlined, and
rename your constants in a more specific way, such as TASK_CANCELLED,
TASK_COMPLETE, etc. unless of course CANCELLED can apply to more than just
tasks.
The use of a separate class to store such constants is of course viable,
I have just updated my code in stackoverflow:
http://stackoverflow.com/questions/28637326/how-to-filter-results-using-forms-in-django-best-approach
*Ronaldo Bahia *
Diretor | JobConvo.com
Tel: 11 3280 6971
2015-02-22 23:16 GMT-03:00 Vijay Khemlani :
> Well, I think you can continue posting the u
Hi L,
Actually, I has been input the LDAP string in
/edx/app/edxapp/edx-platform/lms/envs/common.py. But there a two
problems after the configuration. Firstly, the script can't get the
%user value I need to hardcode the username / email in the connection
string than I can login to edx. Seco
On 23/02/2015 5:23 PM, Frankline wrote:
Hi all,
I am getting confused regarding the use of constants and would be keen to
know how the rest of you handle constants in your models. Ofcourse I could
handle it easily similar to how it has been handled here:
https://docs.djangoproject.com/en/1.7/ref
22 matches
Mail list logo