>>
>>>> On Mon, 5 Jun, 2023, 22:35 AKHIL KORE, wrote:
>>>>
>>>>> Hi django developer group.
>>>>>
>>>>> I'm from india. I got one django assignment from xyz comapny. But i
>>>>> can't how to create that log
>>> dashlakshyaraj2...@gmail.com> wrote:
>>>
>>>> Bro please send in pdf format so that it will be possible to open in
>>>> mobile
>>>>
>>>> On Mon, 5 Jun, 2023, 22:35 AKHIL KORE, wrote:
>>>>
>>>>> Hi django d
e:
>>
>>> Bro please send in pdf format so that it will be possible to open in
>>> mobile
>>>
>>> On Mon, 5 Jun, 2023, 22:35 AKHIL KORE, wrote:
>>>
>>>> Hi django developer group.
>>>>
>>>> I'm from ind
>> wrote:
>>
>>> Bro please send in pdf format so that it will be possible to open in
>>> mobile
>>>
>>> On Mon, 5 Jun, 2023, 22:35 AKHIL KORE, wrote:
>>>
>>>> Hi django developer group.
>>>>
>>>> I'm fro
On Mon, 5 Jun, 2023, 22:35 AKHIL KORE, wrote:
>>>
>>>> Hi django developer group.
>>>>
>>>> I'm from india. I got one django assignment from xyz comapny. But i
>>>> can't how to create that logical way. Please help me. Below file is that
gt;
>> On Mon, 5 Jun, 2023, 22:35 AKHIL KORE, wrote:
>>
>>> Hi django developer group.
>>>
>>> I'm from india. I got one django assignment from xyz comapny. But i
>>> can't how to create that logical way. Please help me. Below file is that
>>&
india. I got one django assignment from xyz comapny. But i can't
> how to create that logical way. Please help me. Below file is that
> assignment. Please open and see it.
> can any one send that type of related previous projects code.
>
> --
> You received this message
m from india. I got one django assignment from xyz comapny. But i
>> can't how to create that logical way. Please help me. Below file is that
>> assignment. Please open and see it.
>> can any one send that type of related previous projects code.
>>
>> --
>> You rec
Bro please send in pdf format so that it will be possible to open in mobile
On Mon, 5 Jun, 2023, 22:35 AKHIL KORE, wrote:
> Hi django developer group.
>
> I'm from india. I got one django assignment from xyz comapny. But i can't
> how to create that logical way. Please help me
Hi django developer group.
I'm from india. I got one django assignment from xyz comapny. But i can't
how to create that logical way. Please help me. Below file is that
assignment. Please open and see it.
can any one send that type of related previous projects code.
--
You received
Can you help me with this assignment problem?
1. List down the number of apps you would create in the Django application
2. Share screenshots of the model of every app which you will create in
this use case
3. Create the following API
a. To get plans
b. To recharge (2-3 APIs as per your
https://stackoverflow.com/questions/73482442/django-inline-admin.
Can anyone help me to solve this problem??
On Sun, 28 Aug 2022 at 06:41, Anh Nguyen wrote:
> Quite hard for a student. I guess
>
>
> On Thu, 25 Aug 2022 at 23:11 Scott Sawyer wrote:
>
>> long time lurker here...
>>
>> On
Quite hard for a student. I guess
On Thu, 25 Aug 2022 at 23:11 Scott Sawyer wrote:
> long time lurker here...
>
> On 8/25/2022 8:24 AM, shairy wrote:
>
> Can anyone help me to solve this problem.
>
> Consider a recharge website platform for mobile prepaid recharge like Paytm
>
> 1. List down
long time lurker here...
On 8/25/2022 8:24 AM, shairy wrote:
Can anyone help me to solve this problem.
Consider a recharge website platform for mobile prepaid recharge like
Paytm
1. List down number of apps you would create in Django application
As many as are needed to do the functions
Can anyone help me to solve this problem.
Consider a recharge website platform for mobile prepaid recharge like Paytm
1. List down number of apps you would create in Django application
2. Share screenshots of model of every app which you will create in this
use case
3. Create following api’s
at please don't give me
> answer.
>
>
> Thank you
> Ronak Jain
>
> On Sun, Oct 28, 2018 at 10:59 AM Joel Mathew wrote:
>
>> Isn't this cheating? Why dont you complete your own assignment?
>>
>> Joel G Mathew
>>
>>
>> On Sun, 28 Oct 2018 at
our own assignment?
>
> Joel G Mathew
>
>
> On Sun, 28 Oct 2018 at 10:40, RONAK JAIN wrote:
> >
> > Hi
> >
> >
> > Please help me out this assignment urgent. How can I solve ?
> >
> >
> >
> >
> > Thanks
> > RJ
&
Isn't this cheating? Why dont you complete your own assignment?
Joel G Mathew
On Sun, 28 Oct 2018 at 10:40, RONAK JAIN wrote:
>
> Hi
>
>
> Please help me out this assignment urgent. How can I solve ?
>
>
>
>
> Thanks
> RJ
>
>
> --
> You rec
Hi
Please help me out this assignment urgent. How can I solve ?
Thanks
RJ
--
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-user
that is good
On Monday, April 30, 2018 at 7:08:16 AM UTC-5, Rob B wrote:
>
> Thanks George - I understand now. I never thought it would only apply to
> the admin interface but should have. Kind regards,
>
> Rob
>
>
> On Sun, Apr 29, 2018, 10:05 PM George Lubaretsi, >
Thanks George - I understand now. I never thought it would only apply to
the admin interface but should have. Kind regards,
Rob
On Sun, Apr 29, 2018, 10:05 PM George Lubaretsi,
wrote:
> Django permissions are only enforced in Admin interface by default. You
> have to
Django permissions are only enforced in Admin interface by default. You
have to enforce them in your views by using `has_perm` method of `user`
instance - `user.has_perm('.')`
Here's the documentation for permissions
-
I'm trying to confirm if this is correct: I create a group with no
permissions in it, and assign this group to a user. This user is not
"staff status" nor is the user "superuser status" - they are only active.
The user is not a member of any other groups - just the one with no
permissions.
n call_command
> > return klass.execute(*args, **defaults)
> > File "/home/rok/apps/django-trunk/django/core/management/base.py",
> > line 232, in execute
> > output = self.handle(*args, **options)
> > File "/home/rok/apps/django-trunk/django/core/managem
:
>>
>> def gene_view(request, slug=None, gene=None, org=None, template=None):
>> print(KeyError)
>>
>> and I get this exception with django 1.4 (if it matters):
>> UnboundLocalError at /predictions/gene/
>> local variable 'KeyError' referenced before assi
late=None):
> print(KeyError)
>
> and I get this exception with django 1.4 (if it matters):
> UnboundLocalError at /predictions/gene/
> local variable 'KeyError' referenced before assignment
Python thinks KeyError is a local variable, thus it sounds like code
in the view subsequent to
/
local variable 'KeyError' referenced before assignment
In ./manage.py shell though, I can do:
./manage.py shell
Python 2.7.2+ (default, Oct 4 2011, 20:06:09)
[GCC 4.6.1] on linux2
Type "help", "copyright", "credits" or "license" for more information.
= self.handle(*args, **options)
> File "/home/rok/apps/django-trunk/django/core/management/commands/
> loaddata.py", line 239, in handle
> (full_path, ''.join(traceback.format_exception(sys.exc_type,
> UnboundLocalError: local variable 'full_path' referenced before
> assignment
options)
File "/home/rok/apps/django-trunk/django/core/management/commands/
loaddata.py", line 239, in handle
(full_path, ''.join(traceback.format_exception(sys.exc_type,
UnboundLocalError: local variable 'full_path' referenced before
assignment
Does this ring a bell to anyone
Dear Sébastien
Thankyou for your enlightment
I really appreciate it
Sincerely
-bino-
On 09/30/2011 03:34 PM, BILLION Sébastien wrote:
Hi,
You must add a ManyToManyField in your models
https://docs.djangoproject.com/en/dev/ref/models/fields/#django.db.models.ManyToManyField
...
--
You
Hi,
You must add a ManyToManyField in your models
https://docs.djangoproject.com/en/dev/ref/models/fields/#django.db.models.ManyToManyField
class Person(models.Model):
name = models.Charfield(max_lenght=200)
colours = models.ManyToManyField(Color)
class Color(models.Model):
name =
Dear All ..
Let's say I have 2 model in manyTOmany relation, i.e : Persons and colours
I want a 2 CRUD interface for this , that is :
1. Persons : where I can add colours to each person, and
2. Colours : where I can add Persons to each colour
I also want the "ADD" methode (Add colours to
oundLocalError: local variable 'settings' referenced before
> > assignment
>
> > I have in my views .py
>
> > from django.conf import settings
> > other imports...
>
> > def new_view(request):
> > if not request.user.is_authenticated():
> >
On Wed, Jul 20, 2011 at 1:14 PM, ydjango <traderash...@gmail.com> wrote:
> Occasionally I see this error in my app,
>
> UnboundLocalError: local variable 'settings' referenced before
> assignment
>
> I have in my views .py
>
> from django.conf import settings
Occasionally I see this error in my app,
UnboundLocalError: local variable 'settings' referenced before
assignment
I have in my views .py
from django.conf import settings
other imports...
def new_view(request):
if not request.user.is_authenticated():
return
On 8 avr, 11:25, gintare wrote:
> I do not know how to save changes:
>
> for Lists in [a.SynGREn, a.SynGREnn]:
> ...
> .. make changes in field by editing Lists, i.e. cropping part of
> text: changed_text=crop(Lists, words)
> ...Lists=changed_text
> ...
I would like to remove multiplicative items in several fields of the
model.
I do not know how to save changes:
for Lists in [a.SynGREn, a.SynGREnn]:
...
.. make changes in field by editing Lists, i.e. cropping part of
text: changed_text=crop(Lists, words)
...Lists=changed_text
Rainy
Yes I think you and Bruno have helped me look at it all over again and I
will certainly get into Python so I can understand it more fully. I
have not ever programmed before and although I have tried to seek local
authority courses and other types of training it seems they are not
On Jan 24, 1:46 pm, Trevor Stanley wrote:
> Bruno
>
> I will take your advice and seek out some Python literature. I did run
> through an online Python tutorial about a year ago. I should probably
> go through it again as I may understand it more now.
>
> Thanks, even
Bruno
I will take your advice and seek out some Python literature. I did run
through an online Python tutorial about a year ago. I should probably
go through it again as I may understand it more now.
Thanks, even though your delivery is rather blunt - Trevor
bruno desthuilliers wrote:
On
On 23 jan, 23:20, Trevor Stanley wrote:
> Thanks Bruno for the critique and you are right I don't know what I'm
> doing and I am rather learning by accident. I am not a programmer and
> don't profess to be one(yet). I have built the apps in the excellent
> book,
Thanks Bruno for the critique and you are right I don't know what I'm
doing and I am rather learning by accident. I am not a programmer and
don't profess to be one(yet). I have built the apps in the excellent
book, Practical Django Projects and I have also worked through, The
Definitive
On 23 jan, 17:27, Trevor Stanley wrote:
> Karen
>
> Thanks for your reply. The reason I was trying to filter the id with
> count was that I had read somewhere that you have to pass sum at least
> two arguments (but may be I mis-understood what I was reading!)
The
return u'%d'(0)
if ft.count()==1:
qft=ft.get('percentage')
return u'%d'(qft)
You only set qft to something if ft.count() is 1. Yet the next line of
code (the return, which uses the value of qft) is not indented to the
same leve
return u'%d'(0)
>if ft.count()==1:
>qft=ft.get('percentage')
>return u'%d'(qft)
>
You only set qft to something if ft.count() is 1. Yet the next line of code
(the return, which uses the value of qft) is not indented to the same level
as the ass
ite/bt4/models.py" in
get_fringe_value
134. return u'%d'(qft)
Exception Type: UnboundLocalError at /admin/bt4/detail/1/
Exception Value: local variable 'qft' referenced before assignment
--
You received this message because you are subscribed to the Google Groups
"Django use
On 11 juin, 15:26, Marcus Whybrow wrote:
> I have found a ticket already open for this problem (http://
> code.djangoproject.com/ticket/13684),
> The problem was in fact that I had a settings.py file and a module
> called settings with default and local settings residing
return self.handle_uncaught_exception(request, resolver, exc_info)
> > UnboundLocalError: local variable 'resolver' referenced before
> > assignment
>
> > I have just set up a brand new Django project called tinygraph and I
> > am using WSGI and virutalenv in combination.
>
>
se.py", line
> 142, in get_response
> return self.handle_uncaught_exception(request, resolver, exc_info)
> UnboundLocalError: local variable 'resolver' referenced before
> assignment
>
> I have just set up a brand new Django project called tinygraph and I
> am using WSGI and v
l variable 'resolver' referenced before
assignment
I have just set up a brand new Django project called tinygraph and I
am using WSGI and virutalenv in combination.
I have took a peak at the Django source code and resolver is not
assigned a value unless a urlconf is set,
I though this might be b
AND THE ANSWER IS :
[...]
if formset.is_valid():
# do something with the formset.cleaned_data
cd = formset.cleaned_data
for i in range(len(cd)):
cd[i]['answer'] = cd[i]['x'] + cd[i]['y']
formset = ArticleFormSet(initial=cd)
[...]
--
You received this message because
Getting out of the bed, I partly found why this new problem occurs.
This is because the following HTML line:
Becomes this after the first submit by the browser:
Then I loose "id_form-0" substring and the corrupted HTML cannot work
twice.
This seem encouraging, but now I need to sleep. I will
I made some progress replacing the defective line with:
formset.forms[i] = ArticleForm(cd[i])
Mysteriously: it work when the browser send the first submit. But the
form becomes empty if I submit twice.
Here is the template:
Test
Test
{% if form.errors %}
Good evening,
I stick with the above error message in the following example. I
looked at each
attributes of the object (Base_fields, etc.), but I can't find how I
to assign the new dataset back into the form.
def manage_articles(request):
ArticleFormSet = formset_factory(ArticleForm)
if
I guess I was mixing tabs and spaces, thanks guys.
On Dec 29, 3:38 pm, Ramiro Morales wrote:
> On Tue, Dec 29, 2009 at 8:31 PM, neridaj wrote:
> > File "/Users/jasonnerida/django-apps/blog/models.py" in
> > moderate_comment
> > 142. if delta.days >
On Tue, Dec 29, 2009 at 8:31 PM, neridaj wrote:
> File "/Users/jasonnerida/django-apps/blog/models.py" in
> moderate_comment
> 142. if delta.days > 30:
I suspect you have the above line badly indented,
e.g. at the same level of the
if not instance.id:
line
neridaj wrote:
> File "/Users/jasonnerida/django-apps/blog/models.py" in
> moderate_comment
> 142. if delta.days > 30:
Okay, now the line numbered code for the whole of the moderate_comment
function...
Also, check you're not mixing tabs and spaces in that models.py file...
Chris
--
-apps/blog/models.py" in
moderate_comment
142. if delta.days > 30:
Exception Type: UnboundLocalError at /comments/post/
Exception Value: local variable 'delta' referenced before assignment
On Dec 29, 3:29 pm, Chris Withers <ch...@simplistix.co.uk> wrote:
> neridaj wrote:
> &g
stance(content, Tweet):
> delta = datetime.datetime.now() - content.pub_time
> else:
> delta = datetime.datetime.now() - content.pub_date
> if delta.days > 30: #failure
>
>
> local variable 'delta' referenced before assignment
Please
= datetime.datetime.now() - content.pub_time
else:
delta = datetime.datetime.now() - content.pub_date
if delta.days > 30: #failure
local variable 'delta' referenced before assignment
Thanks,
Jason
--
You received this message because you are subscribed to the Goo
Hello All,
In http://code.djangoproject.com/browser/django/trunk/django/forms/models.py
line 53 it states:
53 # OneToOneField doesn't allow assignment of None. Guard
against that
54 # instead of allowing it and throwing an error.
55 if isinstance(f
On Mon, Mar 9, 2009 at 12:10 PM, Jesse wrote:
>
> The problem is that the python converts the andor value to a
> character, even though the radio button is presenting it as numeric.
> I needed to place quotes around the number:
> if andor == '1' and then it works. Hope this
The problem is that the python converts the andor value to a
character, even though the radio button is presenting it as numeric.
I needed to place quotes around the number:
if andor == '1' and then it works. Hope this helps someone else.
--~--~-~--~~~---~--~~
You
Template:
{% for pathology in pathology_list %}
{{ pathology.pathology }}
{% endfor %}
There are actually three search selects(pathology, commodity,
technology) The user can do and/or for a mix or match of the three,
which is why I need the and/or option in the views.py.
; def Bypub(request):
>andor1 = request.POST['andor1']
>list=[]
> andlist=[]
> for publication in pub1:
>if andor1 == 1:# this assignment is being ignored.
>if publication not in list:
>list.append(publication)
>if andor1
i see that there exists a handy way -- *icontains* does exactly what iam
looking at
On Sun, Aug 31, 2008 at 9:35 PM, Vadivel Kumar <[EMAIL PROTECTED]> wrote:
> Thanks Michael,
>
> I solved the problem - i had a silly mistake in the way how i handled to
> check the existing tag. But, now the
Thanks Michael,
I solved the problem - i had a silly mistake in the way how i handled to
check the existing tag. But, now the problem is when i check the given tag
text against the database, i do it as like below,
newTag = request.POST['tag']
existingTag =
On Aug 31, 11:14 am, "Vadivel Kumar" <[EMAIL PROTECTED]> wrote:
> I know this might sound very newbie .. its true
>
> How can i assign an exising record of the child table to an parent record.
> For example I have two models,
>
> class User (models.Model):
> ... all other fields ...
I know this might sound very newbie .. its true
How can i assign an exising record of the child table to an parent record.
For example I have two models,
class User (models.Model):
... all other fields ...
Tags = models.ManyToManyField(Tag)
class Tag (models.Mode):
lt_handler, arg=req, silent=hlist.silent)
File "/usr/lib/python2.5/site-packages/mod_python/importer.py", line
1206, in _process_target
object = apache.resolve_object(module, object_str, arg,
silent=silent)
UnboundLocalError: local variable 'module' referenc
I feel I'm getting close to an answer... I hope you guys can help me
out...
I get this TypeError: Records() takes exactly 3 non-keyword arguments
(2 given)
def Records (request, UserName, Name):
gamer = Artist.objects.get(UserName=UserName)
record = Record.objects.get(Name=Name)
Hello guys!
I have another little (i'm sure it is) problem (i have like 3 days
trying to resolve it by myself but i just gave up lol), i'm using
django-tagging so I can tag some records, the problem here is that i
don't know how to take one object, take its id and then keep the
cycle. this is
Object", so I need kind
of aliasing/mapping of variable names or variable assignment in
template. currently I'm thinking about extension {% include %} tag for
accepting third argument (for mapping) or custom tag like {% let
object childObject %}. maybe there is better or standard approach
ex
On 7/4/07, Chris Brand <[EMAIL PROTECTED]> wrote:
> If you go to edit that same user in the Admin, the group should be selected
> in that same multiselect box.
>
> It's as simple as that.
Aha - it did not occur me. I was looking for some gadget proof against
an accidental (re)selection. This
> If I open page to edit user's account, at the bottom is multiselect
> box containing all existing groups.
>
> If I select one(s) and save user profile, in DB table
> auth_user_grooups I see a correct links between auth_user and
> auth_group table.
>
> But I cannot find the same information in
Hi,
I'm learning Django and trying to use/customize Admin module but I cannot
find information about group(s) a user is assigned to.
If I open page to edit user's account, at the bottom is multiselect
box containing all existing groups.
If I select one(s) and save user profile, in DB table
Thanks, Jeremy.
Your piece of code works perfectly.
I will think about suggestions for the documentation and open a
ticket.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this
On 6/16/07, Vertigo <[EMAIL PROTECTED]> wrote:
> * Are Django sessions only designed to be used through the request
> context (and session middleware) ?
No, but they're most convenient that way.
> * Is there any "easy" snippet of code to do what I want (i.e update a
> Session object out of
pport item assignment
I had a look at the session documentation. If one misses one of the
first lines (like I did), it can lead to a mess (like I have :-) ):
"Sessions are implemented via a piece of middleware and a Django
model".
And indeed, sessions appear clean and developer-friendly in the
do
item assignment". the template tag is quite simple:
from myproject.models import Project
from django.template import Library,Node
register = Library()
def build_project_list(parser, token):
"""
{% get_project_list %}
"""
return ProjectListObject()
80 matches
Mail list logo