Question on creating a contact form app using bootstrap template

2014-08-18 Thread Kim
https://docs.djangoproject.com/en/dev/topics/forms/) but I wasn't sure how to structure the system. Could anyone suggest me how to integrate the backend system into the template? I would appreciate very much if you could give me sample code examples! Thanks, Kim -- You received this message becau

Re: Question on creating a contact form app using bootstrap template

2014-08-18 Thread Kim
Anyone? 2014年8月18日月曜日 16時13分28秒 UTC+9 Kim: > > Hi, > > I'm learning python/django and am building my personal page using this > template (http://startbootstrap.com/templates/agency/). > > Since it already has a contact form, I would like to integrate django form >

Re: Question on creating a contact form app using bootstrap template

2014-08-19 Thread Kim
Thank you for the advice, Collin! However, If I have this HTML below, where should I put {{ form.[name] }}?

HELP on unittest.loader.ModuleImportFailure

2014-06-07 Thread Kim
Hi, I started learning Django and am using "Test Driven Web Development with Python" book. On page 21, the book mentions to test using lists/tests.py. The book uses the code: $ python3 manage.py test to run the test. However, the manage.py file sits in the upper superlists folder and the tes

Running a test from other folder using manage.py

2014-06-08 Thread Kim
Hi everyone, I have a question on unit tests. I have manage.py file placed in the upper superlists folder and the tests.py placed in lists folder. I keep getting an error message saying "ImportError: No module named lists.tests”. Would anyone know how to access a test file from other folder u

unit test: AssertionError: 302 != 200

2014-06-20 Thread Kim
-- Ran 2 tests in 0.510s FAILED (failures=1) Destroying test database for alias 'default'... - Since I checked the admin is actually working(status 200) in my localhost, I thought I should give 200 status instead of 302. Please give me some advice to fix

unit test:AssertionError: False is not true

2014-06-21 Thread Kim
post.save() # Check new post saved all_posts = Post.objects.all() self.assertEquals(len(all_posts), 1) # Fetch the index response = self.client.get('/') self.assertEquals(response.status_code, 200) # Check the post title is in the re

Re: unit test:AssertionError: False is not true

2014-06-22 Thread Kim
Anyone? Help! 2014年6月21日土曜日 19時29分26秒 UTC+9 Kim: > > Hi everyone, > > I am making my blog from this tutorial: > http://matthewdaly.co.uk/blog/2013/12/28/django-blog-tutorial-the-next-generation-part-1/ > . > But I am continuously getting the AssertionError messages: &

defaultdict is not working on "for" template tag iteration.

2008-11-06 Thread Hyungyong Kim
Hi, Since a few hours ago, I've suffered following problem. I found this problem is due to collections.defaultdict. Normal dictionary is working collectly, but defaultdict is not working. >>> from django.template import Template, Context >>> t = Template("{% for k,v in data.items %}{{ k }}: {{

Re: defaultdict is not working on "for" template tag iteration.

2008-11-07 Thread Hyungyong Kim
Thanks for kind expatiation. I can understand why the error occured easily. But, it seems that templates' "." has to resolve dir(default_dict) first before dictionary lookup. Anyway, I glad to know the reason. Thanks. Hyungyong Kim On 11월7일, 오후10시18분, "Karen Tracey"

creating a combined form linked via foreign key??

2010-11-08 Thread sosurim kim
Sorry if this has been asked before, but how can I create a form that is a combination of two models linked through a foreign key? For example, let's say I have two models: # models.py class Myuser(User): bio = models.TextField() class AddressBook(models.Model): userid = models.ForeignKey(Cus

Re: creating a combined form linked via foreign key??

2010-11-08 Thread sosurim kim
Oops, I meant to say addressbook, not phonebook... sorry. # models.py class Myuser(User): bio = models.TextField() class AddressBook(models.Model): userid = models.ForeignKey(CustomUser, blank=True, null=True) address = models.CharField(max_length=50) city = models.CharField(max_length=50

Help!!: creating a combined form linked via foreign key??

2010-11-09 Thread sosurim kim
This message isn't going through for some reason... -- Forwarded message -- From: sosurim kim Date: Mon, Nov 8, 2010 at 1:55 PM Subject: Re: creating a combined form linked via foreign key?? To: django-users@googlegroups.com Oops, I meant to say addressbook, not phon

From v1.2, url templatetag can not use both comma and space

2010-02-23 Thread Hyungyong Kim
gt; OK {% url url_name arg1, arg2 %} --> TemplateSyntaxError: Malformed arguments to url tag Also this error is in django trunk, django/contrib/admin/templates/ registration/password_reset_email.html It need to be repaired. Thanks Hyungyong Kim -- You received this message because you are subs

How to

2011-11-07 Thread Songhun Kim
Hi. every one. I'm a beginner in django. I wrote a code for insert to mysql. ex) model_for_test = ModelTest(column01=postvalue1, column02=postvalue2...) model_for_test.save() This code made a query have no quotes like "insert ... values ( aaa, bbb ... );". So a mysql returns error. Interested th

Re: How to

2011-11-07 Thread Songhun Kim
Hi. Oh. Okay. Thanks you!!! I'll check again setting of MySQL and AWS. Maybe It's a problem of setting of MySQL. Because update is worked well, just insert has a problem. Thanks. Songhun -- You received this message because you are subscribed to the Google Groups "Django users" group. To view

Django 1.7, KeyError: u'manager' error

2014-10-17 Thread Taenyon Kim
Example class ModelA(models.Model): fielda = models.CharField(max_length=10) class ModelB(models.Model): modela = models.ForeignKey(ModelA) fieldb = models.CharField(max_length=10) When I query like "modela_instance.modelb_set()", then I will get KeyError: u'manager' as shown below

error

2014-06-10 Thread kim jinhoo
I installed both python and django. After I create a project, I try to run a server error occurred. Re-install django hayeotneunde still see the same error occurs. Let them know what is causing me. File "C:\Python27\lib\functools.py", line 56, in '__lt__': [('__gt__', lambda self, other:

runserver error

2014-06-10 Thread kim jinhoo
I installed both python and django. After I create a project, I try to run a server error occurred. So had to reinstall django. But I still see the same error. Let them know what is causing me. File "C:\Python27\lib\functools.py", line 56, in '__lt__': [('__gt__', lambda self, other:

How to make a place where you could type in data(number)?

2018-01-04 Thread June Kim
I'm looking for a way to set up a place(square box) where you could input data(number) on a website. and those data would be saved in somewhere else as an excel sheet (.csv) -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from t

Re: Calling api from django view error. forbidden (csrf token is missing or incorrect)

2018-01-22 Thread Yungjae Kim
You will have to either get CSRF token and send it or ignore it completely. csrf_exempt from django.views.decorators.csrf will be helpful. For HttpResponse to returning a json, pass in a stringfied dict. On Monday, January 22, 2018 at 5:06:35 AM UTC-5, chern...@gmail.com wrote: > > The reason wh

Re: Calling api from django view error. forbidden (csrf token is missing or incorrect)

2018-01-23 Thread Yungjae Kim
r = requests.post('http://127.0.0.1:8000/api/test/', > data=request.POST) > else: > r = requests.get('http://127.0.0.1:8000/api/test/', data=request.GET) > if r.status_code == 200: > return HttpResponse(request.GET) > return HttpRespon

Despite what django doc says, multiple inheritance with a common ancestor causes an error(models.E005). I found a tricky solution, but are there any better solutions?

2017-06-13 Thread Hyunsoo Kim
This doc says multiple inheritance with a common ancestor can do the job. However, I've experienced an error while making migrations. Here's the error message. > models.E005: The field '**_ptr' from parent model ' >

Re: Despite what django doc says, multiple inheritance with a common ancestor causes an error(models.E005). I found a tricky solution, but are there any better solutions?

2017-06-15 Thread Hyunsoo Kim
Currently no model is abstract. I can guarantee this because each model is referenced by one or more foreign keys. I don't think this is my special case problem. The same problem happens when you use the common ancestor model in the django document. -- You received this message because you are

End of extended support for Django 1.11

2020-03-25 Thread Daniela Kim
Hi everyone, When exactly is the *end of extended support* for Django 1.11? The Django Roadmap says "Until at least April 2020" and Django's supported versions page says "A

Re: beginner guide

2018-10-09 Thread Kim Sunga
If you're interested on the newest django (2.X) try to read Django 2 by Example by Antonio Mele On Tue, Oct 9, 2018 at 7:37 PM 'puhlmann7' via Django users < django-users@googlegroups.com> wrote: > Hi Ashok, > > You may have a look on this: https://tutorial.djangogirls.org/en/ > > Am Montag, 8. O

Re: Best option for hosting django website

2018-10-09 Thread Kim Sunga
Try Heroku and for hosting static and media files Google drive and Cloudinary. Works very well for me On Tue, Oct 9, 2018 at 12:33 PM Muhammad Tahir wrote: > Thank You All > On Monday, October 8, 2018 at 4:10:04 PM UTC+5, Muhammad Tahir wrote: >> >> i need to host my django website on live serv

facial recognition

2024-03-09 Thread Iza kim
does anyone knows how to create a website for facial recognition? -- 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

Re: facial recognition

2024-03-09 Thread Iza kim
my experience, that's not a trivial task, technically. > > First and foremost, can you create a website? > > Secondly, do you have an engine for facial recognition? > > On Sat, 9 Mar 2024 at 23:13, Iza kim wrote: > >> does anyone knows how to create a website for fa

wRe: facial recognition

2024-03-09 Thread Iza kim
s://dev.to/cole_ruche/placeholder-2chb> >> <https://dev.to/cole_ruche/placeholder-2chb> >> >> And that’s all. >> >> Have you tried asking google or chatGPT first? >> https://github.com/Divyansh6799/Face-recognition-in-python-django :) &

Re: New to Django

2013-10-15 Thread Bryan Kim Artificio
HI, good day! i would like to know id there's a way to connect the postgresSQL with django? regards, On Tuesday, October 15, 2013 1:55:01 PM UTC+8, Mahantesh U wrote: > > Hi All, > > I am new to Django framework. I worked on Flask framework using python. > Please share the sites to learn Dj