Re: For what is useful order_with_respect_to?

2006-04-26 Thread Ivan Sagalaev
Wilson Miner wrote: >To use the tutorial app as an example, if you have a number of choices >for each poll, you may want to make the choices orderable by an >arbitrary index within the poll, rather than sorting them >alphabetically. In that case you could set order_with_respect_to = >'poll_id' in

Re: errors dictionary

2006-04-28 Thread Ivan Sagalaev
PythonistL wrote: >Is it possible to use errors dictionary with non-English character? > > Sure! >I use errors like this: > >if new_data['CategoryF']==None > errors={1:'non-English characters} > return render_to_response('shop/Errors', {'errors': errors}) > > And what's in a temp

Re: got unexpected keyword argument

2006-04-28 Thread Ivan Sagalaev
Luis P. Mendes wrote: >As _django models_: >class Servico(meta.Model): >~codigo = meta.TextField(maxlength=4) >~nome = meta.CharField(maxlength=80) > >~def __repr__(self): >~return self.nome > >class Cadastro(meta.Model): >~serv_clientes = meta.Fore

Re: [M-R] lookup like Article.objects.filter(id__in = []) will fail

2006-04-29 Thread Ivan Sagalaev
Cheng Zhang wrote: >I tried lookup like Article.objects.filter(id__in = []), which will >have SQL statement whose where clause is something like 'WHERE >("poll_article"."id" IN ())'. Such SQL statement is ok with SQLite >but invalid for PostgreSQL. > >I work around this problem with code li

Re: Checking if ManyToManyField is empty in pre_save function

2006-05-01 Thread Ivan Sagalaev
Luke Plant wrote: >It would be possible to get Django to throw an exception in this case. >What do people think about that? > > I think it makes sense. As well as documenting that though dependent objects (both M2M and 12M) look like they are belong to the parent they really can't be proces

Re: For what is useful order_with_respect_to?

2006-05-02 Thread Ivan Sagalaev
Adrian Holovaty wrote: >No, ordering by ID wouldn't work, because you might want to change the >order of objects. Continuing Wilson's example, you may want to change >the ordering of choices for a given poll. > > Am I right guessing that to do this one should remove all related record and add

Re: Custom manipulator and file upload/saving

2006-05-03 Thread Ivan Sagalaev
Denis wrote: >I wonder what would it be the best way to save the file while im using >custom manipulator. >It contains objects from several models and im saving everingthing in >manipulator.save(). >Everything works great untill i have to save uploaded file. I wonder if >there is a way to save it

Re: APP DEPLOYMENT

2023-08-09 Thread ivan harold
Maybe this will help. https://docs.djangoproject.com/ On Sunday, August 6, 2023 at 5:09:29 AM UTC+8 Dennis Kinanga wrote: > Someone to give me instructions on how to go about it please > > On Aug 6, 2023 00:07, "John McClain" wrote: > > Heroku is easy to implement and offers free tier > > On Th

Re: honest reviews

2023-08-09 Thread ivan harold
Put a little more details on the site and instead of putting a screenshot on the my project page you can photoshopped an image to make it look more dynamic and enhanced. On Monday, July 31, 2023 at 9:51:49 PM UTC+8 oluwafemi damilola wrote: > It'll advice that you add some extra informations to

Re: Post multiple data

2023-08-09 Thread ivan harold
maybe this will help " from django.conf import settings class Design(models.Model): human_readable_id = models.CharField(max_length=10, default=id_generator, db_index=True) manager = models.CharField(max_length=40) worker = models.ForeignKey( settings.AUTH_USER_MODEL, on_delete=model

Re: Logout time

2023-08-09 Thread ivan harold
Maybe this will help, check out this code. def login (): login_time = time.time() def logout (): logout_time = time.time() #To get the number of seconds the user spent on the platform, #subtract login_time from logout_time On Monday, July 31, 2023 at 6:12:23 PM UTC+8 Prashanth Patelc wrote: >

Re: DAILY,MONTHLY AND ANNUAL REPORTS

2023-08-09 Thread ivan harold
is this thread closed? resolved? On Saturday, July 22, 2023 at 8:08:48 AM UTC+8 Ryan Nowakowski wrote: > Check out the Sum() aggregate: > > https://docs.djangoproject.com/en/4.2/topics/db/aggregation/ > > > On July 21, 2023 12:41:48 PM CDT, Abdou KARAMBIZI > wrote: > >> Hello Friends, >> >> Ho

Re: CreateView for non default database

2023-08-09 Thread ivan harold
Did you try what David Nugent suggested? Did it worked? On Thursday, July 27, 2023 at 6:31:33 PM UTC+8 David Nugent wrote: > Database Router is the trick for this. Django calls this function to > determine which database the transaction will use based on the type of > operation requested, so y

Re: Is Django Right for Me?

2012-05-27 Thread ivan sugiarto
communicate with the server. > > So - in summary: > * Yes, Django could be a useful part of your tech stack to do what > you're describing > * However, it won't solve the problem on it's own -- you'll need to > pick a client side framework too. > > Yours, > Ru

Re: image in browser

2012-06-14 Thread Ivan Ivanov
На Thu, 14 Jun 2012 11:45:19 +0530 Satvir Toor написа: > hello, > > i wish to display the image into the browser through a template . I > used the following code to retrieve the image from Disk and send that > data to Html file > > def my_image(request): > image_data = open("/home/toor/Desk

Re: image in browser

2012-06-14 Thread Ivan Ivanov
На Thu, 14 Jun 2012 14:21:00 +0530 Satvir Toor написа: > > This is a strange thing to want to do. What are you doing with > > `img` in the template? > I am using image_data variable as a image source in the template(html > file). > > > What should i ??? Image is not displaying. Use static fil

Re: Django Models: How to allow users to select an image from a choice of 3 pictures

2012-07-15 Thread Ivan Ivanov
На Sun, 15 Jul 2012 18:26:02 -0700 (PDT) croberts написа: > I am familiar with the use of Field.choices for text. > > However, I'd like the same option for images. Is this possible? I > want users to select one image from a list of 3 and be able to save > this. They can later come back in and

with/include template pattern? seeking best practices

2012-09-04 Thread Ivan Kirigin
so, I don't know the performance implications of so many with/include calls. This list could be very long (100s or 1000s). Thanks! Ivan Kirigin http://kirigin.com -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this

Re: Django and LDAP

2012-09-11 Thread Ivan Pavlović
Thank you Mike for your answer. I started this topic, because i have an assignment at my Faculty, which requires connection between Django and an LDAP (assistant insisted on 389ds). I installed Django, enabled admin, logged in through Firefox. I can't make up my mind, do i need to connect Django an

Re: Django and LDAP

2012-09-11 Thread Ivan Pavlović
Once again, thank you. If you have some advices or pointers where to start (besides the ones you've already mentioned), how to develop my knowledge, please feel free to share with me. Grateful Tony On Wed, Sep 12, 2012 at 12:05 AM, Mike Dewhirst wrote: > On 12/09/2012 7:49am, Ivan

Re: Django and LDAP

2012-09-11 Thread Ivan Pavlović
I appreciate it Thomas :) On Wed, Sep 12, 2012 at 12:11 AM, Ivan Pavlović wrote: > Once again, thank you. If you have some advices or pointers where to start > (besides the ones you've already mentioned), how to develop my knowledge, > please feel free to share with me. >

Re: Django and LDAP

2012-09-13 Thread Ivan Pavlović
Thank you sbrandt. I found the same thing, but i don't know how to use it. Where do i need to copy the files and do i erase some lines of the code or not, to make them as comments. I'm trying but i am not succeeding at making it work... Can you help me about that? On Thu, Sep 13, 2012 at 10:16 AM

Extending admin's index view

2011-09-02 Thread Ivan Ivanov
appeared? What I can see from the django.contrib.admin.sites is that the admin_view function is the one, calling the login view. But I have noting to do with it, I haven't modify it and I don't understand what disturbs it's functionallity. Thank you in advance for your help! Ivan

Re: mysql installation error

2011-09-20 Thread Ivan Ivanov
First – It's not a Django question, and second search, read, but try: http://www.fuyun.org/2009/12/install-mysql-for-python-on-windows/ That was the second result I found :) I hope, it is what you need, couse I don't use windows and cannot test the problem and its solution. Ivan

Django-CMS and inherit plugin

2011-10-04 Thread Ivan Ivanov
nder_plugin' The problem is in the template on the following line: {% placeholder "template_1_content" %} I know, that this has something to do with the sentence from the docs, I cannot understand, but I am stuck... Thanks for the help! Ivan -- You received this message because

Re: howto disable label for field in admin app form?

2011-10-04 Thread Ivan Ivanov
Source: https://docs.djangoproject.com/en/dev/ref/forms/api/#configuring-html-label-tags If auto_id is False, then the form output will not include tags nor id attributes: f = ContactForm(auto_id=False) I think, this is exactly what you want. На Tue, 4 Oct 2011 14:34:56 +0200 Aljoša Mohorović н

Re: Beginner a bit lost - need some pointers please

2011-10-05 Thread Ivan Ivanov
На Wed, 5 Oct 2011 15:02:13 -0500 Javier Guerra Giraldez написа: > about how to write, check the paragraph about the MTV architecture: If you are familier with MVC (Model, View, Controller), MTV is the same but with different component names. -- You received this message because you are subscr

Android browser and csrf protection

2011-10-19 Thread Ivan Uemlianin
eload eg.com/profile/ # ok, "tu01"'s homepage Has anyone else had odd behaviour like this from the Android browser? Can anyone suggest what might be the problem? (Haven't tested with iPhone or Blackberry yet, will do do this evening). With thanks and best wishes Ivan -- Y

Re: Android browser and csrf protection

2011-10-20 Thread Ivan Uemlianin
ot;failing" site is on webfaction, the Working" site is on a bare machine (centos, nginx, etc). Does anyone have any suggestions as to what's going on? Why should the Android browser be behaving differently to all the others? Best wishes Ivan On Oct 19, 3:17 pm, Ivan Uemlianin

Announcement: django-geoshortcuts - GeoJSON and GPX shortcuts for GeoDjango apps

2012-01-12 Thread Ivan Mincik
omments, patches and whatever else is welcome. [1] -  https://github.com/gista/django-geoshortcuts Ivan Mincik, Gista s.r.o. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googleg

Re: [offtopic] put a title

2012-12-22 Thread Ivan Ivanov
Just a little hint – it woud be good, when you put an informative title of your emails, so the people can orient what the topic of the email is. Best wishes! Ivan На Sat, 22 Dec 2012 10:16:16 +0530 vinoth kumar renganathan написа: > i am new user to django .and i don't know ho

Is file based cache is safe for concurrent process?

2013-03-26 Thread Ivan Smirnoff
Hi all. Can anyone tell, does django.cache locks file for writing by concurrent process? -- 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..

django1.5 - url resolver vs i18n_patterns : wrong behaviour

2013-06-04 Thread Ivan Tatarchuk
When I using i18n_patterns in my project urls.py I have strange behaviour of url resolver: expected behaviour: - if pattern defined in django.conf.urls.patterns, url resolver doesn't add language prefix - ip pattern defined in django.conf.urls.i18n.i18n_patterns, url resolver adds la

Re: django1.5 - url resolver vs i18n_patterns : wrong behaviour

2013-06-06 Thread Ivan Tatarchuk
this case. ='( вторник, 4 июня 2013 г., 17:38:05 UTC+3 пользователь Ramiro Morales написал: > > On Tue, Jun 4, 2013 at 6:23 AM, Ivan Tatarchuk > > wrote: > > > from django.conf.urls import patterns, include, url > > from django.conf.urls.i18n import i18n

django.contrib.auth and username's field size

2013-07-25 Thread Ivan Voras
Hello, I'm new to Django, and still finding out how it all fits together. I've seen django.contrib.auth and I'm wondering - is it a common practice to actually use it as a basis for application authentication? If so, I have a question: the username field as defined (30 characters) is too short

Re: django.contrib.auth and username's field size

2013-07-25 Thread Ivan Voras
chema description - and create new, more complex classes containing specific code? On Thursday, 25 July 2013 23:36:49 UTC+2, jondbaker wrote: > > Hi Ivan, and welcome. Django >= 1.5 features custom User models, which I > believe would solve your problem: > https://docs.djangoproject.co

Re: django.contrib.auth and username's field size

2013-07-27 Thread Ivan Voras
Thanks, everyone! While I'm here: is there a way to create additional db objects in the syncdb phase? Specifically, I'd like to create some database VIEWs as a means of avoding using raw queries in my code. Ideally, I would like a way of specifying my own SQL which creates a Model's database objec

Re: django.contrib.auth and username's field size

2013-08-02 Thread Ivan Voras
On Thursday, 25 July 2013 23:36:49 UTC+2, jondbaker wrote: > Hi Ivan, and welcome. Django >= 1.5 features custom User models, which I > believe would solve your problem: > https://docs.djangoproject.com/en/dev/topics/auth/customizing/#specifying-a-custom-user-model > Hello, I

Django South - SyntaxError: invalid syntax (, line 1)

2013-09-30 Thread Ivan Goncalves
ef save (self, force_insert = False, force_update = False): self.nome self.nome.upper = () super (Carrier, self). save (force_insert, force_update) def __ unicode__ (self): return u '% s'% (self.nome) I need the field User. What I have to do ?

(3rd party app) How to safely reverse a custom user model admin url?

2013-10-25 Thread Ivan VenOsdel
My project uses a custom user model and I am trying to use a 3rd party app that uses the Reversing Admin URLstechnique to enhance my administration interface. However problems arise when the app tries to make use of

Re: (3rd party app) How to safely reverse a custom user model admin url?

2013-10-28 Thread Ivan VenOsdel
plate. It feels like the only way is to use the tag in that case and instead somehow call the changelist function (wherever that is) in the view. If so, anyone know how to do that? On Friday, October 25, 2013 7:39:59 PM UTC-5, Ivan VenOsdel wrote: > > My project uses a custom user model and

Re: Problem in Part2 of the tutorial "DoesNotExist at /admin/"

2011-05-18 Thread Ivan Galic
is nil, and self.model._meta.object_name is 'Site'. That's all I've been able to dig out; I'd appreciate any further help. I'm surprised I ran into this problem because I was just strictly following the tutorial, and I've basically just added some 10 lines of cod

Re: Problem in Part2 of the tutorial "DoesNotExist at /admin/"

2011-05-18 Thread Ivan Galic
ty, so I added a row with id==1 (the same that I have in settings.py) and then it worked. However, I still don't understand what went wrong. Who should be responsible for putting that table row in the database? I ran syncdb several times (to make sure I didn't miss it :) ), but it

Re: Problems with "Polls app"

2011-05-22 Thread Ivan Galic
What exactly is the problem? 'couldn't do it ok' isn't telling much. You do seem to have some problems with the indentation though. Ivan On May 22, 2011, at 10:51 AM, abilondias wrote: > Hello everyone, > I was trying Django and building the first app in the tutori

csrf protection and testing with tsung

2011-06-21 Thread Ivan Uemlianin
ith it). With thanks and best wishes Ivan -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@google

Re: csrf protection and testing with tsung

2011-06-21 Thread Ivan Uemlianin
Dear Malcolm Thanks, this is a good clue. I'll try it out tomorrow and report back. Best wishes Ivan On 21/06/11 17:54, Malcolm Box wrote: On 21 June 2011 16:48, Ivan Uemlianin wrote: With tsung you record a site visit (called a session) --- log in, view various pages, do a few t

Re: csrf protection and testing with tsung

2011-06-22 Thread Ivan Uemlianin
Dear Malcom Thanks very much for your help! You were exactly right. The following config works (simplified for exposition). Best wishes Ivan On Jun 21, 5:54 pm, Malcolm Box wrote: > On 21 June 2011 16:48, Ivan Uemlianin wrote: > > > With tsung you record

Re: Possible interest in a webcast/presentation about Django site with 40mil+ rows of data??

2011-06-22 Thread Ivan Aleman
On 22 June 2011 08:15, Cal Leeming [Simplicity Media Ltd] < cal.leem...@simplicitymedialtd.co.uk> wrote: > > If you're interested, please reply on-list so others can see. > > > Sweet! Count me in :) > > -- Iván -- You received this message because you are subscribed to the Google Groups "Dja

Re: Pinax: worth installing?

2011-01-19 Thread Ivan Uemlianin
Cal Leeming's question: can anyone point to Pinax sites in the wild? Best wishes Ivan On Jan 19, 8:37 am, Oscar Carballal wrote: > O Mar, 18-01-2011 ás 21:37 -0800, Gath escribiu: > > > > > Magee, > > > Wow! Now thats what we call a response. > > > You mad

mis-named setting? SESSION_EXPIRE_AT_BROWSER_CLOSE

2011-01-31 Thread Ivan Uemlianin
de, but for the server side it's irrelevant surely? A clearer name would be something like SESSION_COOKIE_EXPIRE_AT_BROWSER_CLOSE. Best wishes Ivan -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this gro

Re: mis-named setting? SESSION_EXPIRE_AT_BROWSER_CLOSE

2011-01-31 Thread Ivan Uemlianin
't keep the session alive. Setting SESSION_COOKIE_AGE too low will risk logging out against users' wishes, but setting it to much more than a few minutes will render this solution useless. This solution doesn't feel right at all. If (a) is possible I think I'll go with that. Best Ivan

Re: manytomany help

2011-02-07 Thread ivan sugiarto
You must delete those tables and run sync db again.. On 8 Feb 2011 11:32, "Bobby Roberts" wrote: I've got two models: class a (models.Model): id = models.AutoField (primary_key=True) name = models.CharField (max_length=50, blank=False, db_index=True) class aAdmin(admin.ModelAdmin)

Re: How should I properly impliment HTTP(S) auth (REMOTE_AUTH) in django?

2011-02-08 Thread ivan sugiarto
o. > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To post to this group, send email to django-users@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegro

Re: Why does the startproject command open a file instead of creating project folders

2013-12-08 Thread Ivan Ramirez
I had the exact problem today when going through the first part. This worked for me: python “C:\Program Files\Anaconda\Scripts\django-admin.py” startproject mysite -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group

Django Admin - search_fields + related fields

2014-02-20 Thread Ivan Goncalves
I have these two models below: class business(models.Model): name=models.CharField(max_length=40, blank=True, null=True) class phone(models.Model): business=models.ForeignKey(business, verbose_name='Business',blank=False) phone=models.CharField(max_length=40, blank=True, nul

Re: ms sql server connectivity to django

2019-01-07 Thread Ivan Martić
;ODBC Driver 17 for SQL Server', 'host_is_server': True, 'autocommit': True, 'driver_needs_utf8': True, 'use_legacy_date_fields' : True, }, } } You need to have pyodbc installed. BR, Iv

Re: ms sql server connectivity to django

2019-01-07 Thread Ivan Martić
27;host_is_server': True, 'autocommit': True, 'driver_needs_utf8': True, 'use_legacy_date_fields' : True, }, } } You need to have pyodbc azure installed. GL, Ivan -- You received this message because you are subsc

How to add a new record in django admin list_view, in a way similar to what extra forms do in inlines

2019-01-10 Thread Ivan Molineris
Hi, I asked a question on stackoverflow but I will ask also on this group just in case. Using ModelAdmin.list_editable I can edit the fields

Populate modelform field with username

2019-01-15 Thread Ivan Martić
Hi all, can someone assist me. I cant get the modelform field get populated with active username. Does any one have a good advice? view: def performance_view(request): form = PerformanceForm(request.POST or None) if form.is_valid(): form.save() return render(request, 'qif/performance.html', {"f

Re: Populate modelform field with username

2019-01-15 Thread Ivan Martić
dodaj ovako u views.py: > view: > def performance_view(request): > form = PerformanceForm({'supplier_name':request.user}) > if form.is_valid(): > form.save() > return render(request, 'qif/performance.html', {"form" : form}) > > уто, 15. јан 2019. у 09

Re: Populate modelform field with username

2019-01-15 Thread Ivan Martić
Bravo! radi! Samo što sad neradi spremanje (request.POST)...kako da to sad implementiram, jel može savjet? uto, 15. sij 2019. u 12:22 Nebojsa Hajdukovic napisao je: > Obrisi ovo request.post or none > > uto, 15. jan 2019. 12:19 Ivan Martić je > napisao/la: > >> Bok Neboj

Re: Populate modelform field with username

2019-01-15 Thread Ivan Martić
ni sad sam u nekoj bas velikoj guzvi, evo ti otprilike kako sam ja na > drugoj formi uradio, ako ne uspes ispisacu ti malo kasnije > [image: image.png] > > уто, 15. јан 2019. у 12:26 Ivan Martić је > написао/ла: > >> Bravo! radi! >> Samo što sad neradi spremanje (reque

Re: Populate modelform field with username

2019-01-15 Thread Ivan Martić
form = PerformanceForm[request.POST] > if form.is_valid(): > form.save() > return render(request, 'qif/performance.html', {"form" : form}) > > ovako nekako bi trebalo da radi > > уто, 15. јан 2019. у 12:49 Ivan Martić је > написао/ла: > >> Ej

Re: Populate modelform field with username

2019-01-15 Thread Ivan Martić
P/1.1" 200 8939 [15/Jan/2019 13:01:33] "GET /performance/ HTTP/1.1" 200 14799 [15/Jan/2019 13:01:39] "POST /performance/ HTTP/1.1" 200 14811 Da li ovi podaci mogu što pomoći? uto, 15. sij 2019. u 12:54 Ivan Martić napisao je: > Nažalost, iz nekog razloga ne prolazi

Re: Populate modelform field with username

2019-01-15 Thread Ivan Martić
st.POST or None, > initial={'supplier_name':request.user}) > if prepoznaj_form.is_valid(): > prepoznaj_form.save() > > context = { > 'prepoznaj_form': prepoznaj_form > } > > return render(request, 'prepoznaj/forma.html&#x

Matching query does not exist

2019-01-18 Thread Ivan Martić
Hi all, i am having trouble to get this query on db table right. I am always getting error. Please check shell erorr attached. I appreciate your help! -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop

Re: Matching query does not exist

2019-01-18 Thread Ivan Martić
Thank you Kasper, i have copied that model after doing inspectdb. So it should be set by default from django that way. Usually all was ok.. Also, i have tried that change now and got the same result. Any other idea where i gone wrong? -- You received this message because you are subscribed t

Re: Matching query does not exist

2019-01-18 Thread Ivan Martić
er Laudrup napisao je: > Hi Ivan, > > On 1/18/19 10:59 AM, Ivan Martić wrote: > > Thank you Kasper, > > > > You're welcome. > > > i have copied that model after doing inspectdb. So it should be set by > > default from django that way. Usually all was ok..

NoReverseMatch at /someurlname/ - Reverse for 'htmlname' with arguments '('1',)' not found. 1 pattern(s) tried: ['somehtmlname/$']

2019-01-24 Thread Ivan Martić
Hi all, i am having issue with url tag, every time i put url tag like --{% url 'productsgrouping' item.id%}-- i get no reverse error. Can you help me figure it out on what am i doing wrong? view: def productsgrouping_view(request): queryset = MaterialGroup.objects.all() context = {"list" : query

Re: NoReverseMatch at /someurlname/ - Reverse for 'htmlname' with arguments '('1',)' not found. 1 pattern(s) tried: ['somehtmlname/$']

2019-01-24 Thread Ivan Martić
t; You may mean: > {{ item }} - {{ > item.id}} > ? > > Regards, > > Andréas > > > Den tors 24 jan. 2019 kl 13:28 skrev Ivan Martić : > >> Hi all, >> >> i am having issue with url tag, every time i put url tag like --{% url >> 'p

Re: NoReverseMatch at /someurlname/ - Reverse for 'htmlname' with arguments '('1',)' not found. 1 pattern(s) tried: ['somehtmlname/$']

2019-01-29 Thread Ivan Martić
not sure what to say čet, 24. sij 2019. u 13:53 Ivan Martić napisao je: > Hi Andréas, > sorry for misspeling in codes. All is working ok except when i try to put > url tag for 'update_productsgrouping'. > I need to update group with new products but It does not argument

Re: NoReverseMatch at /someurlname/ - Reverse for 'htmlname' with arguments '('1',)' not found. 1 pattern(s) tried: ['somehtmlname/$']

2019-01-29 Thread Ivan Martić
gt; https://docs.djangoproject.com/en/2.1/ref/class-based-views/generic-editing/ > > Ako hoćeš preko funkcije ja radim sa get_object_or_404, ovako: > def productsgrouping_update_view(request, url_id): > product_lista = get_object_or_404(MaterialGroup, pk=url_id) > > > уто, 29.

Re: NoReverseMatch at /someurlname/ - Reverse for 'htmlname' with arguments '('1',)' not found. 1 pattern(s) tried: ['somehtmlname/$']

2019-01-29 Thread Ivan Martić
view(request, url_id): > assigned = get_object_or_404(Material, pk=url_id) > > > naravno prvo moraš da importuješ get object or 404: > > from django.shortcuts import get_object_or_404 > > > уто, 29. јан 2019. у 12:00 Ivan Martić је > написао/ла: > >> Bok N

Re: NoReverseMatch at /someurlname/ - Reverse for 'htmlname' with arguments '('1',)' not found. 1 pattern(s) tried: ['somehtmlname/$']

2019-01-29 Thread Ivan Martić
gde je greška > > уто, 29. јан 2019. у 13:51 Ivan Martić је > написао/ла: > >> napravio sam točno kako si rekao i dalje nece, isti error ...vec danima >> se mucim sa ovime..nešto drugo je posrijedi. >> >> >> >> >> >> uto, 29. sij 2019. u 12:16

Re: NoReverseMatch at /someurlname/ - Reverse for 'htmlname' with arguments '('1',)' not found. 1 pattern(s) tried: ['somehtmlname/$']

2019-01-30 Thread Ivan Martić
> > Bok Nebojša, jel možeš uletit i pogledati molim te što radim krivo. >> >> Znači, imam 2 aplikacije, prva abc radi a druga product groups ne radi.. >> Sve je kopirano u 2 privitka. >> >> Da li imaš vremena pogledati pliz? >> > Šta god napravim, No reverse mi se javlja... -- You received th

django channels daphne static files

2019-01-31 Thread Ivan M
I'm on the latest Django 2.1.5, channels 2.1.6, daphne 2.2.4 Trying to get the static file to route through daphne. I've tried using the default 'AsgiHandler' and tried both 'StaticFilesHandler' and 'StaticFilesWrapper'. Here's my settings.py, routing.py setup and output: My code works using

Re: NoReverseMatch at /someurlname/ - Reverse for 'htmlname' with arguments '('1',)' not found. 1 pattern(s) tried: ['somehtmlname/$']

2019-02-01 Thread Ivan Martić
Hi guys, any help on this matter? i still have noreverse issue. There is something wrong with my url nameing sri, 30. sij 2019. u 10:55 Ivan Martić napisao je: > Bok Nebojša, jel možeš uletit i pogledati molim te što radim krivo. >>> >>> Znači, imam 2 aplikacije, prva abc

Re: NoReverseMatch at /someurlname/ - Reverse for 'htmlname' with arguments '('1',)' not found. 1 pattern(s) tried: ['somehtmlname/$']

2019-02-01 Thread Ivan Martić
i think i found the issue, problem was in the html url tag.. i should look like this href="{ url 'update_group' list_all.url_id }"> not like this href="{ url 'update_group' item.id }"> thank you all pet, 1. velj 2019. u 09:26 Ivan Martić napisao je

Re: Passing pk arguments from a URL into another view

2019-02-04 Thread Ivan Martić
Can you elaborate a bit, i have the same issue with noreverse error ned, 3. velj 2019. u 15:08 poOya mOsaddegh napisao je: > Hi > You may use include in urls.py > > urlpatterns = [ > path('', views.club_home, name='club_home'), > path('/', include(club_home_urls, namespace='club_home')),

NoReverseMatch at - Reverse with arguments '('',)' not found

2019-02-04 Thread Ivan Martić
Hi all, I need help. I keep getting this issue, NoReverseMatch at / Reverse for 'productsgrouping-update' with arguments '('',)' not found. 1 pattern(s) tried: ['update/(?P[0-9]+)/$'] not sure what am doing wrong. Any time I put url tag {% url 'productsgrouping-update' lista.id%} in html i get

Re: NoReverseMatch at - Reverse with arguments '('',)' not found

2019-02-07 Thread Ivan Martić
t; > thanks in advance. > waiting for a reply > > On Mon, Feb 4, 2019 at 5:18 PM Ivan Martić > wrote: > >> Hi all, >> >> I need help. >> I keep getting this issue, NoReverseMatch at / >> Reverse for 'productsgrouping-update' with arguments 

The database driver doesn't support modern datatime types.

2019-02-11 Thread Ivan Martić
Hi all, I am migrating to from development to prod server and getting this error app. Error started to show after installation of allauth library. I cant find anything on google related to this topic so I hope you can help me out. Traceback is saying: Exception Type: ImproperlyConfigured at /

Re: The database driver doesn't support modern datatime types.

2019-02-11 Thread Ivan Martić
resolved. Microsoft ODBC driver was missing, download it from MS official web page and all is working perfect now On Monday, February 11, 2019 at 11:21:37 AM UTC+1, Ivan Martić wrote: > > Hi all, > > I am migrating to from development to prod server and getting this error >

Passing values

2019-02-13 Thread Ivan Martić
Hi all, where can i find more info regarding passing values in views/forms/url. What I need is to pass value from form in previous url page to the form in next url page(also prefilling with data like timezone.now, request,user) Thank you in advance. Ivan -- You received this message because

Re: Passing values

2019-02-13 Thread Ivan Martić
response. sri, 13. velj 2019. u 11:48 Mohammad Etemaddar napisao je: > Dear Ivan, > If I get you right, You have a page with form, and you want to post it to > another page. so, fill the "action" part of html form with the second > page's url. > > Also the timezon

Query on 2 non related models

2019-05-20 Thread Ivan Martić
Hi guys, hope you can help me. I have 2 models and i want to make a count query on them. I need a count on how many articles i have in every category. Models: class Vendors(models.Model): id = models.AutoField(db_column='id', primary_key=True, blank=False, unique=True) name = models.Cha

Django Tutorial Issues

2017-05-04 Thread Ivan Cox
Hi i am new to Django and in the process of going through the django tutorial at https://www.djangoproject.com/ I have however run into problems on Part 4. I have added the following code to the detail.html page {{ question.question_text }} {% if error_message %}{{ error_message }}{% endif %}

Re: Access denied for MySQL user in Django

2017-10-09 Thread Ivan Gruer
Hi, as far as i understood cdraccess is a DB gust user, right? If so, from your DB admin user, grant cdraccess to access MySQL environment table 'mysql.user' as follow: GRANT SELECT ON `mysql`.`user` TO 'cdraccess'@'%'; To me it worked, Ivan On Thursday, Januar

Re: Access denied for MySQL user in Django

2017-10-09 Thread Ivan Gruer
Hi, as far as i understood cdraccess is a DB gust user, right? If so, from your DB admin user, grant cdraccess to access MySQL environment table 'mysql.user' as follow: GRANT SELECT ON `mysql`.`user` TO 'user_gui'@'%'; To me it worked, Ivan On Monday, Januar

Re: i learnt django basics but i want to learn django for become a master in django where can i get resourse

2023-08-12 Thread ivan harold
there are a lot of free learning website googe them and then learn from them do the small activities and try to create small projects. On Friday, August 11, 2023 at 11:42:03 AM UTC-5 ASAMOAH EMMANUEL wrote: > Here are premium resources for you: https://t.me/+VXTu7RXQ47VlM2Q0 > > On Thu, Aug 10,

Re: Django dynamic multiple databases

2023-08-12 Thread ivan harold
you can check this one out https://docs.djangoproject.com/en/4.2/topics/db/multi-db/ On Saturday, August 12, 2023 at 9:44:08 AM UTC-5 pankaj palmate wrote: > I want to creating saas based application containing one super admin and > rest will be customers where each customer will have their ow

Re: i learnt django basics but i want to learn django for become a master in django where can i get resourse

2023-08-12 Thread ivan harold
try different approach and then test them you'll earn quickly if you do simultaneous task at once. On Saturday, August 12, 2023 at 11:20:57 AM UTC-5 Obam Olohu wrote: > YouTube and chatGPT > > On Thu, Aug 10, 2023, 6:05 PM Peter Benjamin Ani > wrote: > >> Try getting the ebook (Django 4 by exam

Re: How to upload a folder in django?

2023-08-16 Thread ivan harold
just make sure to ink the path correctly. iex: ../page/page1/pag2/ etc.. On Monday, August 14, 2023 at 5:59:54 PM UTC-5 abu yahya Diab wrote: > Hi guys, I have a task to upload a folder in django. > So, what is the right way to do that? > and what if this folder has subfolder and these subfolders

Re: How is Django For Api book

2023-08-16 Thread ivan harold
*William S. **Vincent - REST APIs with Django* *I second this one this is a good read to boost your knowledge and learnings.* On Tuesday, August 15, 2023 at 4:30:50 PM UTC-5 Roy Lagg wrote: > > You could check out *William S. Vincent - REST APIs with Django. *The > book is easy to read and ha

Re: Timezone issue in when storing in DB

2023-08-16 Thread ivan harold
I recommend you reading this https://docs.djangoproject.com/en/4.2/topics/i18n/timezones/. On Wednesday, August 16, 2023 at 12:46:53 PM UTC-5 Madhusudhan Reddy wrote: > But I am using only fast api for APIs > > On Wed, 16 Aug 2023 at 3:45 PM, Ruby wrote: > >> You seem to be reinventing the whee

Re: Road Map for a newbie

2023-08-17 Thread ivan harold
try learning by going to certain websites that offer to learn, such as w3schools.com . On Thursday, August 17, 2023 at 10:15:03 AM UTC-5 Tesfaye Yimam wrote: > Hello all, > > This is my second day of learning Django. I am comfortable with python > (the basics and the OOP). > I wanted to have s

Re: hello forks, i need help

2023-08-17 Thread ivan harold
https://www.w3schools.com/django/django_admin_create_user.php check this one out. On Thursday, August 17, 2023 at 8:26:29 AM UTC-5 Abdoulaye SENE wrote: > i have created a group named adminis. how to create users in the group > using django admin > > -- You received this message because you a

Re: hello forks, i need help

2023-08-17 Thread ivan harold
not know > why. > > > Le jeu. 17 août 2023 à 16:48, Abdoulaye SENE a > écrit : > >> thanks a lot >> >> >> Le jeu. 17 août 2023 à 16:38, ivan harold a >> écrit : >> >>> https://www.w3schools.com/django/django_admin_create_user.php >>

Re: table bank_app_bank has no column named DOB

2023-08-19 Thread ivan harold
https://stackoverflow.com/questions/68269165/why-django-is-not-detecting-my-table-column Try reading this article, it may help you. On Saturday, August 19, 2023 at 3:05:57 AM UTC+8 meenu loranz wrote: > from django.contrib.auth.models import User > from django.db import models > from django.urls

Re: Unable to display records in form

2023-08-23 Thread ivan harold
Maybe this could help you. https://www.geeksforgeeks.org/django-crud-create-retrieve-update-delete-function-based-views/ On Monday, August 21, 2023 at 2:19:37 PM UTC-5 GLOBAL ENGINEERING ACADEMY wrote: > Hai, > I am trying to learn django on my own. I have created a small project of a > shop.

<    1   2   3   4   5   6   >