Re: Code written by Senior Django Developers

2023-06-11 Thread Babatunde Akinyanmi
Hi Joseph, Django is open source. Feel free to dive in. Or better still, go through pull requests so that you can see the context for parts of the code and also what functionality they provide. On Sun, 11 Jun 2023 at 20:00, Joseph Balogun wrote: > Hi Django fam! > > Can you pls recommend a

Re: Postman-django Api help

2019-09-13 Thread Babatunde Akinyanmi
Are you talking of this postman api? https://docs.api.getpostman.com/?version=latest On Thu, 12 Sep 2019, 14:31 Tosin Ayoola, wrote: > Halo > Good day sorry I wan work on a airline tickets reservations project using > postman Api, but I've never used that before and can't seem to find any >

Re: How do you make a public user create polls on the site not just the admin

2019-06-12 Thread Babatunde Akinyanmi
Hello Progress. Just like how you fill out a form in the Admin site, you should also create a form in your site. On Mon, 10 Jun 2019, 12:18 Progress Onyema, wrote: > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To unsubscribe from this

Re: How to resolve UPPER_CASE naming issues in pylint

2019-03-31 Thread Babatunde Akinyanmi
> > On Sun, Mar 31, 2019 at 5:21 AM Babatunde Akinyanmi > wrote: > >> Hi, >> That's pylint telling you to change the variable name 'movie_resource' to >> all caps. >> >> On Sat, 30 Mar 2019, 07:30 Dennis Alabi, wrote: >> >>> My program throw

Re: How to resolve UPPER_CASE naming issues in pylint

2019-03-30 Thread Babatunde Akinyanmi
Hi, That's pylint telling you to change the variable name 'movie_resource' to all caps. On Sat, 30 Mar 2019, 07:30 Dennis Alabi, wrote: > My program throw up this error >>Constant name "movie_resource" doesn't > conform to UPPER_CASE naming stylepylint(invalid-name) > > > > > > """vidly URL

Re: please i need assistance with mine css file .Mine base.html file failed to load my style.css.

2018-11-21 Thread Babatunde Akinyanmi
Hi. You haven't given us any useful information for assisting you. You will get more replies if you say what you have done, show what your settings look like, tell if your are using the development server, stuff like that. Welcome to the django community On Wed, 21 Nov 2018, 16:06 Obodoma

Re: Django to serve JSON: overkill?

2018-10-27 Thread Babatunde Akinyanmi
Not necessarily. It just depends on the exact use case, the direction the application is moving in the future, etc On Sat, 27 Oct 2018, 14:13 Charley Paulus, wrote: > Hi, > > Is it overkill to use Django just to dispatch url requests and to reply > with JSON (i.e. not using at all the HTML

Re: ARGPARSE ERROR

2018-04-12 Thread Babatunde Akinyanmi
This is not a django problem. Simply install and upgrade the apps specified in the error message On Thu, 12 Apr 2018, 16:03 Ank, wrote: > Hi all, > > Iḿ trying to setup Catmaid - http://catmaid.readthedocs.io/en/stable/. Iḿ > receiving this error when installing

Re: Help: 'django.utils.six.moves' is not a package

2018-04-10 Thread Babatunde Akinyanmi
f of Derek Zeng <zen1...@gmail.com> > *Sent:* Tuesday, April 10, 2018 10:31:27 AM > *To:* django-users@googlegroups.com > *Subject:* Re: Help: 'django.utils.six.moves' is not a package > > > > On Tue, Apr 10, 2018, 1:39 AM Babatunde Akinyanmi <tundeba...@gmail.com>

Re: Help: 'django.utils.six.moves' is not a package

2018-04-09 Thread Babatunde Akinyanmi
On Tue, 10 Apr 2018, 02:47 Derek Zeng, wrote: > I'm using django 2.0. > What exactly is the purpose of django.utils.six.moves module? > Allowing a code base to be able to run on both python 2 and python 3 I have read the source but don't quite understand. Seems like a

Re: Request Timed Out When Generating Huge Data

2018-04-01 Thread Babatunde Akinyanmi
Hi, How many records are we talking about? What code are you using to fetch the records? In other words, add more information so that it's easier to troubleshoot On Mon, 2 Apr 2018, 02:27 tango ward, wrote: > > Good day, > > I need suggestions on how to approach this

Re: Updating Django for my web based application

2018-03-31 Thread Babatunde Akinyanmi
Hi Ahmed, I made some inline comments On Sat, 31 Mar 2018, 10:44 Haroon Ahmed, wrote: > Hi, > > I am using python 3.4 already! > Yes my project is big, it is almost completed now but the requirement is > to upgrade it to latest suitable release and that release should not

Re: Making django.contrib.admin compatible with Bootstrap4?

2018-03-25 Thread Babatunde Akinyanmi
Hi Vincent, I'm not sure what you mean by "compatible". If you are asking if the Admin app can be styled with the bootstrap4, the answer is yes. There are many third party apps that do this for you and you can find them with a simple Google search. If you are asking if django Admin app is going

Re: I NEED HELP PLEASE

2018-03-16 Thread Babatunde Akinyanmi
Hi Daniella. Welcome to the django ecosystem. As per your question, to get started with django, read the tutorial. https://www.djangoproject.com/start/ On 16 Mar 2018 18:57, "Daniella" wrote: PLEASE I AM NEW TO DJANGO FRAME WORK. PLEASE CAN SOMEONE PUT ME THROUGH

Re: GSOC WITH DJANGO

2018-03-02 Thread Babatunde Akinyanmi
You need to give a proposal detailing what you want to work on. Note that while you may ultimately improve your skills with the project, your main goal will be to improve the project. On 1 March 2018 at 05:25, tola temitope wrote: > hey, good day guys i am a Django

Re: Please help me

2017-05-29 Thread Babatunde Akinyanmi
I'd love to but the problem is I don't have the time. I suggest you start by attempting to build something. The django community is very welcoming to beginners so if you encounter issues and you can't find the answer on stackoverflow.com, post a message to the mailing list. You can copy me also

Re: How to get a mentor

2017-04-08 Thread Babatunde Akinyanmi
I'd joyfully be of assistance. Email me. On 5 Apr 2017 16:47, "Joe Landrigan" wrote: > Thanks Mark! I'll take all the free mentoring I can get. ;) I could use > both types of mentors, but wasn't expecting an entrepreneurial mentor on a > Django site. The idea is actually

Re: Django signup problem Urgent

2017-03-27 Thread Babatunde Akinyanmi
Hello Idowu. You were supposed to include your stack trace so that there can be a proper diagnosis of the problem. Now we can only guess. I guess you are submitting your form with the `description` field empty because your defined it with `blank=True` in your models.py. If you want to be able to

Re: Issue with Django-axes

2017-03-06 Thread Babatunde Akinyanmi
I think the only way you will be able to uniquely identify a computer is by using a "permanent" cookie. I find such practice very very intrusive and it's something I will personally not do. Meanwhile, IP addresses, cookies and the likes are good to identify computers not users. If you really

Re: Django stops working with RuntimeError: populate() isn't reentrant

2016-12-23 Thread Babatunde Akinyanmi
How about the stack trace? On 22 Dec 2016 16:43, "pradam programmer" wrote: > I restarted hundred times still can't able to rectify it > > On 22 Dec 2016 9:07 pm, "ADEWALE ADISA" wrote: > > Restart the server > On Dec 22, 2016 4:27 PM,

Re: Django Multiple Currencies Implementation

2016-08-08 Thread Babatunde Akinyanmi
-in a given > conversion rate at some point in future for a given amount. > > A smaller firm would most likely choose just one stable currency and force > all buyers to pay in that currency. > > Probably not answering your question but I hope that helps > > Mike > > > Reg

Re: Django Multiple Currencies Implementation

2016-08-07 Thread Babatunde Akinyanmi
Hello Khan, Your payment processor will specify in its API how it determines currency. This is not a django problem. I'm sure the answer to your question lies in the documentation of Stripe and Braintree On 7 Aug 2016 18:46, "A.Khan" wrote: > Hi I am new to Django and

Re: Slow Django dev server reload

2016-07-04 Thread Babatunde Akinyanmi
This is a punch in the dark. It takes about 3 - 5 seconds on my my windows machine when I run the dev server using pycharm's inbuilt terminal and my code is way below 5k lines On Jul 4, 2016 7:20 AM, "Krishna Bharadwaj" wrote: > Hi Fred, > > It takes about 3.5 - 5

Re: how to design custom forms in django with bootstrap

2016-06-21 Thread Babatunde Akinyanmi
Hello Ikram, You still didn't give enough details. For example, does it submit and successfully or does it not? Anyway, I can see some problems in your markup. 1. I do not see any form tag ( <\form>) in your markup. 2. More importantly, your form input elements do not have a name attribute.

Re: how to design custom forms in django with bootstrap

2016-06-20 Thread Babatunde Akinyanmi
Hello Ikram, It's going to be difficult to help you without more information about the problem. If you give information about what you have tried and what's failing, you will get more helpful answers. On Jun 20, 2016 12:56 PM, "Ikram Ulhaq" wrote: > Hi everyone! > i am new

Re: LoginRequiredMixin ignored

2016-06-16 Thread Babatunde Akinyanmi
Actually it's you. Please see inline: On Jun 15, 2016 11:56 PM, "Lee Hinde" wrote: > > Using Django 1.9.7. > > I have the following class: > > class AddView(LoginRequiredMixin, CreateView): > template_name = "entry.html" > model = Property > form_class =

Re: Django forms validation

2016-05-06 Thread Babatunde Akinyanmi
elf).__init__() >> >> for key in self.fields: >> >> self.fields[key].required= False >> >> self.fields[key].label = False >> >> >> >> >> >> class Meta: >> >> fields = '

Re: Django forms validation

2016-05-05 Thread Babatunde Akinyanmi
Hello Lekan. I have responded inline but my answer might not be a complete fix. On May 5, 2016 4:56 PM, "Lekan Wahab" wrote: > > Hello, > Please, i have a model form in forms.py which am trying to validate and update my database with. However, for some reason the form is

Re: Multidimensional form requirements

2016-04-08 Thread Babatunde Akinyanmi
I don't know if I'm off target but. I'm presently work on something like this where I have have to save three models at a go. One model is a stand alone while the other two have a foreign key to the stand alone model which is a many to one relationship. So to implement the many to one where I

Re: Migrating from sqllite3 to postgres

2015-05-23 Thread Babatunde Akinyanmi
Or Create a new postgres database, transfer the data to it, verify its correctness then change your settings file to point to the postgres database. On 22 May 2015 09:59, "Gergely Polonkai" wrote: > I will also have to do this in the near future (same reason), and already >

Re: Mongodb + django

2015-05-13 Thread Babatunde Akinyanmi
That tutorial works when you are using django-nonrel which is a fork of django. To get a solution to the issue you are experiencing, you might have better luck by posting on the django-nonrel mailing list On 13 May 2015 03:14, "Abhijit Chatterjee" wrote: > > > On

Re: Question on auto-generating username while using django registration

2015-05-01 Thread Babatunde Akinyanmi
Yes it is and very easy. Create a form without a username field and do something like this: def autogenerate_username (): # some logic new_user=User.objects.create_user(autogenerate_username (), self.cleaned_data['email'],

Re: [Python] Problem with arguments given

2015-03-14 Thread Babatunde Akinyanmi
On 14 Mar 2015 12:22, "John" wrote: > > > Dariusz, > > You've declared ask_number() as an instance method in class Hand. You are calling it as if it was a class method. See https://docs.python.org/3.1/tutorial/classes.html. > In other words, you have to first create

Re: Different between Object-save and form-save

2015-03-01 Thread Babatunde Akinyanmi
Something like that. The essence of "form_save" is to save data from a form to the fields of the User model in the database. The thing to note is that a Form's save method returns the object that was saved. Also, a Form's save method and model save method do the same thing On 1 Mar 2015 20:30,

Re: How to get hold of a session after getting signaled?

2015-01-31 Thread Babatunde Akinyanmi
On 31 Jan 2015 10:11, "Stephen J. Butler" wrote: > > You still could store the do_something_after_badge_awarded result in a > database table, but cache the lookups from the view for something > short, like 5 minutes. How quickly after a badge is awarded do people > need

Re: Best Practices Django Questions

2015-01-30 Thread Babatunde Akinyanmi
On 30 Jan 2015 21:03, "G Z" wrote: > > Hello, I'm in the design stages of a site that I'm building. It is going to be a basic social media site for a game I'm designing in unity. I'm not entirely sure how to do some of the things I want to in Django. Thus, my first question is

Re: Do Signals block Django process?

2015-01-30 Thread Babatunde Akinyanmi
On 30 Jan 2015 17:13, "Tobias Dacoir" wrote: > > I just added django-badges to my project. Basically it can award Badges if Users fullfill certain requirements. For this, everytime I call user.save() django-badges receives the post_save() signal and starts checking. > > Now my

Re: ImportError: No module named check_constraints

2015-01-13 Thread Babatunde Akinyanmi
I don't think you are going to get any helpful replies with that kind of statement? On 13 Jan 2015 13:04, "Jenefa Jeyaraj" wrote: > ImportError: No module named check_constraints > > -- > You received this message because you are subscribed to the Google Groups > "Django

Re: Django - trying to access User model column field from a view

2015-01-06 Thread Babatunde Akinyanmi
James said it all. I'll just add that you really need to brush up on your python. Django is pure python. I've all been there before. On 6 Jan 2015 21:10, "Henry Versemann" wrote: > I tried what you suggested and printed from the view what the type command > returned and it

Re: Django - trying to access User model column field from a view

2015-01-06 Thread Babatunde Akinyanmi
userobj = User.objects.get(username=myuser) Will get you a User object or throw an error if it can't find anything. The string representation of the User object is the string contained its username field. Try this to confirm: type(userobj) On 6 Jan 2015 18:48, "Henry Versemann"

Re: Error: 'NoneType' object has no attribute 'strip'

2014-12-03 Thread Babatunde Akinyanmi
At this point i think it will be good to paste the stacktrace here On 3 Dec 2014 14:18, "Danish Ali" wrote: > I also used this method. But I got same error in this method too. > > def save(self, *args, **kwargs): > self.slug = slugify(self.name) > super(Shop,

Re: Unable to store static

2014-10-16 Thread Babatunde Akinyanmi
On 16 Oct 2014 15:36, tundeba...@gmail.com wrote: > > Hi, > > > Is this verbatim? So sorry. "Slip of hand". If you are writing your tags that way it won't work because of the double quotation mark. Do something like this: -- You received this message because you are subscribed to the Google

Re: Unable to store static

2014-10-16 Thread Babatunde Akinyanmi
Hi, > Is this verbatim? -- 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

Re: Unable to store static

2014-10-16 Thread Babatunde Akinyanmi
Hi, > Is this verbatim? -- 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

Re: Postgres database server

2014-10-13 Thread Babatunde Akinyanmi
Hi Sheyda, Perhaps you need to adjust your postgres configuration file On 13 Oct 2014 19:52, "sheyda kianimehr" wrote: > Hi Collin, > I made a Database, I can see the tables of my DBs in terminal but when I > use this python manage.py runserver > for connecting to server I

Re: CSRF Token: is it okay if it is attached to my url when I enter my form?

2014-10-03 Thread Babatunde Akinyanmi
I don't think its risky to have csrf token in the url since its in open view in the page's source anyway (I'm not a security expert so that with a very large bag of salt). However you would have that behavior when you are submitting a form with a GET. You should use POST to submit your form

Re: Please help: urgent deployment problem with django post office

2014-10-02 Thread Babatunde Akinyanmi
You should also change your email password immediately because you just exposed it to the whole world On 2 Oct 2014 15:52, "Erik Cederstrand" wrote: > > Den 02/10/2014 kl. 16.37 skrev Sabine Maennel : > > > Please help! > > > > I want to

Re: Custom User

2014-09-30 Thread Babatunde Akinyanmi
Your question is vague. You need to be specific about what you want to do. Let us see what you have tried and let us see the stack trace of any error. Otherwise, your question seems like "hi, I want to build a car". When you put in the details i can assure you that answers will start flying in.

Re: Custom User

2014-09-30 Thread Babatunde Akinyanmi
Hello Sachin, On 30 Sep 2014 10:50, "Sachin Tiwari" wrote: > > Hi > > I want to display a phone number field at users list page, > > Username emailAddress FirstName LastName staffstatus PhoneNumber > sachin a...@g.com sachintiwari

Re: Django 1.7 and Python 2.6

2014-09-27 Thread Babatunde Akinyanmi
Hi, If you can download in your server then you can install python 2.7+ into your virtenv. On 27 Sep 2014 19:54, "François Schiettecatte" wrote: > Hi > > I know that Django 1.7 does not officially run on Python 2.6: > > >

Re: Django hosting

2014-09-25 Thread Babatunde Akinyanmi
Hi Sabine, I use Redhat's Openshift. On 25 Sep 2014 07:55, "Sabine Maennel" wrote: > Thank you very much for your advice Marc, it is very valuable to me, > especially the part that my hosting provider for today does not need to be > that of the future. My problem right

Re: how to call django web page with ordinary html page

2014-08-30 Thread Babatunde Akinyanmi
On 30 Aug 2014 07:15, "James Schneider" wrote: > > I reread the OP, and it sounds like he is using a static HTML page served elsewhere and POSTing directly to the Django app. If you disable CSRF validation on the form view in Django, it should work. However, I would

Re: how to call django web page with ordinary html page

2014-08-29 Thread Babatunde Akinyanmi
Why are you adding a csrf token in your context? On 29 Aug 2014 13:05, "Pawan Soni" wrote: > Hi , > > i have a simple html page,*p.html *which is not made in django > application ,its just a ordinary html page which look like.. > > > > http://127.0.0.1:8000/test/;

Re: Django admin can't display user detail view: 500 error

2014-08-28 Thread Babatunde Akinyanmi
Hi Amarshall? We need more information. Give us the traceback On 29 Aug 2014 01:22, "amarshall" wrote: > I've deployed my django application using Nginx and uWSGI. > > In development I can login to my django admin-> users-> [username] and it > shows the users information.

Re: Djamgo wizard problem

2014-08-28 Thread Babatunde Akinyanmi
Hi Mihai, Ee can't help you without enough information. You need to at least give the traceback of the error On 28 Aug 2014 21:28, "Mihai Andrei Gabara" wrote: > Hi! who can help me with "wizard" problem. i have 7 steps. every step have > the "next" and "back"

Re: Model - def __unicode__(self) - doesn't work

2014-08-26 Thread Babatunde Akinyanmi
On 25 Aug 2014 23:32, "Babatunde Akinyanmi" <tundeba...@gmail.com> wrote: > > Hi Przemek, > I'm not sure there's a name attribute for Field and its subclasses. > Does removing the name attribute work? > Oops. I meant argument not attribute > On 25 Aug 2014

Re: Model - def __unicode__(self) - doesn't work

2014-08-26 Thread Babatunde Akinyanmi
On 26 Aug 2014 14:38, "James Schneider" wrote: > > Try changing the 'name' argument to 'verbose_name' like so: > > name = models.CharField(max_length=30, verbose_name='Vlan name') > > I don't believe model fields accept 'name' as a keyword arg. This would also explain the

Re: Model - def __unicode__(self) - doesn't work

2014-08-25 Thread Babatunde Akinyanmi
Hi Przemek, I'm not sure there's a name attribute for Field and its subclasses. Does removing the name attribute work? On 25 Aug 2014 22:19, "Przemek Ciborowski" wrote: Hello guys, I'm really beginner in django. I have extremely simple example: class Vlan(models.Model):

Re: Changing URL

2014-08-25 Thread Babatunde Akinyanmi
On 25 Aug 2014 22:12, "Jagger" wrote: > > It works. Thanks. I removed the hardcoded URLs from the templates and I refer to index in this way: > > NEWS > > You asked why I gave the two patterns the same name. > The website default page is 'index'. It contains the news. The News

Re: Changing URL

2014-08-25 Thread Babatunde Akinyanmi
Ok. I'm replying inline: On 24 Aug 2014 18:43, "Jagger" wrote: > > The link is in the base.html of spweb app: > > NEWS > This link is relative so the browser will append the href attribute to the present URL. You should change it to: NEWS >> >> On 24 Aug 2014 12:30, "Jagger"

Re: Changing URL

2014-08-24 Thread Babatunde Akinyanmi
How did you write the link as a relative link un your template? On 24 Aug 2014 12:30, "Jagger" wrote: > Hi Everyone! > > > > I use Python 2.7 and Django 1.6 on Xubuntu 14.04. > > > I'm a beginner. My problem is: > > > The root URLConf: > > from django.conf.urls import

Re: hosting django app

2014-08-22 Thread Babatunde Akinyanmi
Google Redhat Openshift On 22 Aug 2014 09:25, "ngangsia akumbo" wrote: > my boss uses php to build web apps > > he is n9ot very convince that django can be very cheap in hosting as php. > > is there any way i can host a django app whic is as cheap as php? > > -- > You

Re: Django frustrations :)

2014-08-16 Thread Babatunde Akinyanmi
Hi Mariusz, You won't go far in learning anything if you back out at the slightest resistance. When your code spews errors, you should attempt to find out what exactly caused the errors. That said, Django is just pure python. Nothing special and magical about it. My advice, anytime you hit such

Re: My form filed values are not sent to server

2014-08-13 Thread Babatunde Akinyanmi
Also, if you are manually adding the form to your template you should make sure you add a name attribute to all the input tags On 13 Aug 2014 15:33, "Collin Anderson" wrote: > Are your form fields actually in the tag? Is there any data at all > in request.POST? > > -- >

Re: Going throught the Django tutorial help pls

2014-08-03 Thread Babatunde Akinyanmi
Perhaps you should show your model definition and the complete traceback. A wild guess though, did you syncdb? On 2 Aug 2014 20:23, "Michael Carey" wrote: > FieldError at /polls/ > > Cannot resolve keyword 'name' into field. Choices are: choice, id, pub_date, > question > >

Re: update a field of a related table on form save

2014-07-30 Thread Babatunde Akinyanmi
Hi Brad, my response is inline On 30 Jul 2014 02:26, "Brad Rice" wrote: > > I have three tables. The first one is application which has a flag for if an app has been submitted as well as created date and modified date. The other two tables relate to the application table. I

Re: simultaneously submit three forms on the same page

2014-07-29 Thread Babatunde Akinyanmi
Hi Devin, On 29 Jul 2014 12:33, "Devin Cky" wrote: > > hi i am a beginner in django and I have a problem .. how can I validate 3 forms on the same page simultaneously ..please help me > This is what formsets were made for. > -- > You received this message because you are

Re: django Page

2014-07-23 Thread Babatunde Akinyanmi
On 23 Jul 2014 11:08, "ngangsia akumbo" wrote: > > this is what am doing. > I am creating a website which i will like to include the ability of adding pages to that site. > > I have already a news, event and gallery app working, i wish to include the ability to create other

Re: Newbie: Complete environment setup(virtualenv, pip, eclipse, git...)

2014-07-22 Thread Babatunde Akinyanmi
On 22 Jul 2014 18:56, "Ezequiel" wrote: > > On Saturday, July 19, 2014 10:41:11 PM UTC-3, Martin Torre Castro wrote: >> >> Please could someone help with some piece of advice, pros and cons of every option. Just don't want to do something now I will regret in future. >>

Re: Model._meta.get_all_related_objects() returns [] in Django 1.7b4

2014-06-07 Thread Babatunde Akinyanmi
Hi Lucas. The development version of django is unstable so if you choose to use it, you should not be surprised if strange things like what you have described happen. Also, _meta is a private part of the code base that can change anytime. On 7 Jun 2014 21:18, "Lucas Sampaio"

Re: Suggestions for Paginating a Growing Django Queryset

2014-05-31 Thread Babatunde Akinyanmi
Like someone said, you can consider caching the entire queryset. That will definitely impact memory. Another idea is to play with timestamps in your query since you don't care if the results are not accurate. Maybe you shouldn't paginate then you can draw out the whole queryset, render them on the

Re: How to connect Django to Cassandra Data base?

2014-05-09 Thread Babatunde Akinyanmi
You have to search google for a third party cassandra backend app as Django does not support nosql by default. On 9 May 2014 17:56, "youssef simo" wrote: > I have a project witch i have to develop with Django using Cassandra data > base, i looked in documentation but

Re: Tutorial - Customize the admin look and feel

2014-04-27 Thread Babatunde Akinyanmi
This does not answer the question but you really shouldn't be learning with the dev version On 27 Apr 2014 15:38, "rob25" wrote: > Hello, > > I was following the instructions to create a basic poll application with > django 1.8 (dev), but now I'm stuck to this >

Re: url error

2014-02-05 Thread Babatunde Akinyanmi
Ji Cristiano. You show the code that is not behaving as you expect On 6 Feb 2014 03:15, "Cristiano Araujo" wrote: > the message error: >> > > Using the URLconf defined in webapp.urls, Django tried these URL > patterns, in this order: > >1. ^blog/ ^$ >2. ^blog/

Re: problems when interpreter calls module 'taggit'

2014-01-30 Thread Babatunde Akinyanmi
On 31 Jan 2014 02:13, "Charly Román" wrote: > > You need to install django-taggit. > Or add taggit to your INSTALLED_APPS setting. > > > 2014-01-30 Cristiano Araujo : > >> goodevening guys >> i'm new in this group >> >> my problem is this: i'm

Re: Problems with admin.autodiscover()

2014-01-29 Thread Babatunde Akinyanmi
Response inline On 29 Jan 2014 07:22, "Mark Phillips" wrote: > > I have a site built using django 1.6. It runs as expected with runserver on my Debian laptop in a virtual env based on Python 2.7 (development machine). I copied the site to another Debian server

Re: Need Help Moving Database to production server

2014-01-29 Thread Babatunde Akinyanmi
Replies are inline On 28 Jan 2014 17:15, "Mark Phillips" wrote: > > On Mon, Jan 27, 2014 at 11:51 PM, Mike Dewhirst wrote: >> >> On 28/01/2014 4:51pm, Mark Phillips wrote: >>> >>> I have a django project running on my laptop. I have (finally)

Re: JSON serialization

2014-01-18 Thread Babatunde Akinyanmi
> François > > On Jan 18, 2014, at 12:05 PM, Babatunde Akinyanmi <tundeba...@gmail.com> wrote: > > > https://docs.djangoproject.com/en/1.6/ref/request-response/#usage > > > > Actually, Google is your friend. > > > > On 18 Jan 2014 19:48, "Igor

Re: JSON serialization

2014-01-18 Thread Babatunde Akinyanmi
https://docs.djangoproject.com/en/1.6/ref/request-response/#usage Actually, Google is your friend. On 18 Jan 2014 19:48, "Igor Korot" <ikoro...@gmail.com> wrote: > Hi, Babatunde, > > On Sat, Jan 18, 2014 at 8:32 AM, Babatunde Akinyanmi > <tundeba...@gmail.com>

Re: JSON serialization

2014-01-18 Thread Babatunde Akinyanmi
ro...@gmail.com> wrote: Hi, guys, On Sat, Jan 18, 2014 at 12:02 AM, Babatunde Akinyanmi <tundeba...@gmail.com> wrote: > > On 18 Jan 2014 08:32, "Mario Gudelj" <mario.gud...@gmail.com> wrote: >> >> In your template try {{usb_data|safe}} > > ..

Re: JSON serialization

2014-01-18 Thread Babatunde Akinyanmi
On 18 Jan 2014 08:32, "Mario Gudelj" wrote: > > In your template try {{usb_data|safe}} ...because django escapes everything in the template by default except you ask not to. One of the methods of doing so if by using the `safe` filter like Mario suggested. You can

Re: Django Website Development issue

2014-01-10 Thread Babatunde Akinyanmi
Or just ask Google On 10 Jan 2014 16:11, "carlos" wrote: > actually yes bluehost support django read this > http://blog.ruedaminute.com/2011/01/2011-installation-instructions-for-django-on-bluehost/ > maybe help you!! > > Cheers > > > On Fri, Jan 10, 2014 at 9:08 AM,

Re: Question about the __unicode__()

2014-01-08 Thread Babatunde Akinyanmi
Think about it like this. A class is a box with something inside. The __unicode__ method is putting a label on the box to describe what is inside the box. The label doesn't have to be there and if its there, it can have anything written on it (which should make sense to the person writing it). The

RE: Responsive design

2013-09-29 Thread Babatunde Akinyanmi
ican.mumu.com.ng Sent from my Windows Phone From: Jasvir Singh Sent: 9/29/2013 6:43 AM To: django-users@googlegroups.com Subject: Re: Responsive design On Thu, Sep 26, 2013 at 1:48 PM, Jasvir Singh wrote: > Could anyone please tell me, how to make responsive design > in

Re: duplicate entry in django

2013-09-08 Thread Babatunde Akinyanmi
On Sun, Sep 8, 2013 at 3:49 AM, Harjot Mann <harjotmann1...@gmail.com>wrote: > On Wed, Sep 4, 2013 at 2:17 PM, Babatunde Akinyanmi > <tundeba...@gmail.com> wrote: > > This is usually a side effect of not doing a redirect from the view > > that handles your submitted

RE: duplicate entry in django

2013-09-04 Thread Babatunde Akinyanmi
This is usually a side effect of not doing a redirect from the view that handles your submitted form. Sent from my Windows Phone From: Harjot Mann Sent: 9/4/2013 5:31 AM To: django-users@googlegroups.com Subject: duplicate entry in django In my app whenever the page is refreshed, the double entry

Re: django and favicon.ico

2013-08-04 Thread Babatunde Akinyanmi
On Sun, Aug 4, 2013 at 11:56 PM, Mike Dewhirst wrote: > On 5/08/2013 4:22am, Tundebabzy wrote: > >> Hi, >> Is there any documentation on how django behaves during a GET >> /favicon.ico? In my django 1.4.5 installation with runserver, GET >> /favicon.ico redirects to

RE: Can I only have one "get_queryset" per Viewpage?

2013-07-23 Thread Babatunde Akinyanmi
Override your get method but it's easier to override the get_context_data method like # From my head def get_context_data(**kwargs): context = super(IndexView, self).get_context_data(**kwargs) #filter1 is already present as latest_poll_list in the context filter2 = Word.blah()

RE: Submit a form but stay on the page and the form changes

2013-07-12 Thread Babatunde Akinyanmi
I'm assuming you want the form to morph on the screen without a page reload. If that's the case, you need JavaScript like jQuery. let the view you are submitting your POST to return the data you need in JSON and use jQuery to remove the form and add the results or url Sent from my Windows Phone

RE: 'SimpleLazyObject'

2013-07-12 Thread Babatunde Akinyanmi
How about changing this: Bookmark.objects.get_or_create( user = request.user, link = link ) To this: Bookmark.objects.get_or_create( user = request.user.id, link = link ) Sent from my Windows Phone

RE: How to have two unicode methods in the models?

2013-06-26 Thread Babatunde Akinyanmi
.or just use an if statement Sent from my Windows Phone From: Christophe Pettus Sent: 6/26/2013 3:37 AM To: django-users@googlegroups.com Subject: Re: How to have two unicode methods in the models? On Jun 25, 2013, at 6:54 PM, yeswanth nadella wrote: > How do I add another unicode method so

RE: Sending emails, models or views?

2013-06-19 Thread Babatunde Akinyanmi
Coincidentally, I debated this with myself this afternoon. At the end, i put my notify_by_email method in models.py because I didn't need the request object and it kinda "felt at home" there. However, I'd have put it in my view if I needed the request object so personally, it depends on use case.

RE: Django Tagging: no module named tagging, locally win7

2013-06-09 Thread Babatunde Akinyanmi
Did you add 'tagging' to your installed apps? Sent from my Windows Phone -- From: Lu Sheng Sent: 6/9/2013 9:43 PM To: django-users@googlegroups.com Subject: Django Tagging: no module named tagging, locally win7 My boss want me to handle a Django web-site. I install

RE: problem with extending django registration form

2013-05-31 Thread Babatunde Akinyanmi
I'm guessing you want to store more information than default registration allows you to when signing up users. First hijack the URL for displaying the registration form so go to your urls.py file and add this: from path.to.form import CustomForm urlpatterns = patterns('', #hijack

RE: problem with extending django registration form

2013-05-30 Thread Babatunde Akinyanmi
Hi, Have you been able to sort out this issue? Why don't you create your own backend and shoe horn it into django-registration. You'll need to implement register, activate, registration_allowed, get_form_class, post_registration_redirect and post_activation_redirect methods (as needed) though.

RE: Poll tutorial: running the command 'python manage.py

2013-05-26 Thread Babatunde Akinyanmi
runserver' produces an error MIME-Version: 1.0 Content-Type: multipart/signed; micalg=PGP-SHA1; boundary="Sig_/Iufyh5ys=boUhbk8j.ZRe8A"; protocol="application/pgp-signature" --Sig_/Iufyh5ys=boUhbk8j.ZRe8A Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable

RE: error - MultiValueDictKeyError at /profilesetting/ramuss

2013-05-09 Thread Babatunde Akinyanmi
, Babatunde Akinyanmi <tundeba...@gmail.com>wrote: > Hi Avnesh, > Your form has only one input with name as "pic" but in your view you are > checking the QueryDict for six keys and none of them is even named "pic". > > meanwhile, I see that you are trying to upload

RE: error - MultiValueDictKeyError at /profilesetting/ramuss

2013-05-09 Thread Babatunde Akinyanmi
Hi Avnesh, Your form has only one input with name as "pic" but in your view you are checking the QueryDict for six keys and none of them is even named "pic". meanwhile, I see that you are trying to upload a file, so you might want to read

RE: How can i extend django registration Field

2013-05-08 Thread Babatunde Akinyanmi
How about specifics on the things you have tried and the errors that you got. You would get more responses of you supply those Sent from my Windows Phone -- From: Okorie Emmanuel Sent: 5/8/2013 9:23 AM To: django-users@googlegroups.com Subject: How can i extend django

RE: How to edit django_openid_auth login template

2013-04-27 Thread Babatunde Akinyanmi
The right way is to open django_openid_auth source and copy the contents of its templates folder into your own templates directory and then edit from your templates directory. I wrote about this recently: http://tundebabzy.blogspot.com/2013/04/overriding-templates-from-django-apps.html Sent from

  1   2   3   >