Hello Django Warriors!

2012-07-14 Thread Kakar
I'm very new to this Phyton and i just downloaded django package. What i wanted to ask was,..can i make a social site where the users itself can customize their themes or the layout??? M a vey newbie in programming so please explain me in detail. Thank you. -- You received this message because

Is it possible to create website like Squarespace or Wix in django?

2013-04-20 Thread Kakar
Hello everyone! I am really a newbie in the django world, and it might be to much to ask now this question, but am just curious. So, is it possible to make websites like Squarespace or wix where the user can itself choose the template or customize it later on, and also that a programmer can cha

SQLite database module name???

2013-04-21 Thread Kakar
I am in settings.py and using SQLite3, but when i run manage.py syncdb it tells me: " Value Error: Empty module name." Please help me with this, i didn't undesrtood this part. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe fro

SQLite3 database error!!!

2013-04-21 Thread Kakar
I am in settings.py and using SQLite3. But when i execute manage.py syncdb, it gives me error: "Value error: Empty module name" I didn't understood this part. Plz help me guyz. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe fro

Accessing django development server using internet

2013-05-07 Thread Kakar
I have my project in my pc, and on python manage.py runserver, i can view it on my browser. But how to view from other computer or on the internet and not locally?... How to make my pc a server to view it from over the internet? Plz help me guyz! -- You received this message because you are su

Accessing django development server from internet!

2013-05-07 Thread Kakar
I have my project in my pc, and on python manage.py runserver, i can view it on my browser. But how to view from other computer or on the internet and not locally?... How to make my pc a server to view it from over the internet? Plz help me guyz! -- You received this message because you are su

Authenticate users with both username and email

2015-01-15 Thread Kakar Nyori
I have extendted the *UserCreationForm* with email and other fields, so that I could authenticate a user with both its username and email. forms.py: > class UserCreationForm(UserCreationForm): > class Meta: > model = User > fields = ('first_name', 'last_name', 'username', 'email',) views.p

Handle multiple modelforms in one html form

2015-01-17 Thread Kakar Nyori
A user will have photos which will be related with their specific album. So this was the model for that: class Album(models.Model): > user = models.ForeignKey(User) > title = models.CharField(max_length=200) > pub_date = models.DateTimeField(auto_now_add=True, auto_now

amazon s3 and django - Allow only the users from my website and not the anonymous users

2015-02-06 Thread Kakar Nyori
I am using amazon s3 to store uploaded user images. My problems are: - If I permit or grantee for me, I cannot upload or download the contents. - If I permit or grantee for everyone, all the users and (especially) anonymous users will be able to see the contents, which I don't want. So, my quest

Re: amazon s3 and django - Allow only the users from my website and not the anonymous users

2015-02-07 Thread Kakar Nyori
t; this should be the default if you use the "url" property. E.g., > > signed_url = status_obj.image.url > > Then keep the file itself private. No one will be able to access it > without a signed URL, and you can control who gets a signed URL in your > Django app. >

Re: How to make a phone number field mandatory like password.

2014-09-26 Thread Kakar Nyori
You can do it in the form itself. On Fri, Sep 26, 2014 at 8:49 PM, Sachin Tiwari wrote: > Hi > > I am learning django and I want to add a phone number field which would be > mandatory when we use add user button in users section. > > I tried it with blank=False or null=False but it would not wo

no module in error log django-1.3.7

2014-10-22 Thread Kakar Nyori
Hello, I am trying to run a python app in pythonanywhere.com. If I run the project through the bash it runs without any error. But when I see it in the browser with the name like myproject.pythonanywhere.com, it display "something went wrong". And when I check in the error log, it show me this: no

Re: broken image on my django production site. Why is it?

2014-11-02 Thread Kakar Nyori
I think, you should add "static"/ in your html: Or else change your directory settings. On Sat, Nov 1, 2014 at 8:21 PM, rdyact wrote: > > > I just product my site using Heroku and I

Re: Django + Database Connections

2014-11-11 Thread Kakar Nyori
Very nicely explained. On Wed, Nov 12, 2014 at 2:55 AM, Russell Keith-Magee < russ...@keith-magee.com> wrote: > Hi Edward, > > On Tue, Nov 11, 2014 at 12:30 AM, Edward Armes > wrote: > >> Hi there, >> >> I am currently looking at Django for a personal project. While I >> understand how a lot of

Re: Swampdragon, the realtime framework for Django seems interesting. But will it scale ?

2014-11-11 Thread Kakar Nyori
Oooh! Nice one. But its very new though. I would also like to hear from the experts!!! Thanks for the post though On Wed, Nov 12, 2014 at 10:07 AM, Suren Sth wrote: > I recently came across Swampdragon ( Visit official site > ). I am curious can it be used in production

Re: Uploadfile form and CSS Style

2014-11-13 Thread Kakar Nyori
Then you need to apply css to the form. On Fri, Nov 14, 2014 at 1:16 AM, Russo wrote: > Hi, > > i just implemented the uploadfile form on Django, and everything goes > greate, but i would like to do if it is possible to apply CSS styles to the > upload botton on the forms, Anybody knows this? >

Re: Want to change home->blog to Admin home -> blog

2014-11-15 Thread Kakar Nyori
Your question is unclear. Please try to elaborate more. On Sat, Nov 15, 2014 at 4:37 PM, Sachin Tiwari wrote: > > > On Thursday, November 13, 2014 7:49:28 PM UTC+5:30, Sachin Tiwari wrote: >> >> Hi All, >> >> I want to change Home link at admin page to Admin Home -> blog -> ... >> >> I tried

Re: Uploadfile form and CSS Style

2014-11-18 Thread Kakar Nyori
> ID's to any or all elements in the form. Even if you are using something >>> like the {{ form.as_p }} method to display the form, you can still style it >>> using CSS styles at the tag level. Just include a custom CSS file with your >>> template. >>> &

Review needed

2014-03-02 Thread Kakar Nyori
Hello, This may be long, but I really need your help. I have a class *Asset*, which is the *base class* of another *classes *(like *Photo, Question, Video etc.*) Basically its a *Multiple Table Inheritance*. I need this to get all the post or all the *objects* of the user. And it does what I wan

Re: Django and Long Polling

2014-03-23 Thread Kakar Nyori
You mean requesting db in the given time? On Sun, Mar 23, 2014 at 8:50 AM, Venkatraman S wrote: > Why not use (async)callbacks? > > -V > > > On Sun, Mar 23, 2014 at 1:11 AM, Robin Lery wrote: > >> Hello, >> I need to implement long polling in my application to retrieve the >> events. But I hav

Re:Autoupdate

2014-04-14 Thread Kakar Nyori
Ajax is the way to go. Or else, web sockets. On Apr 14, 2014 5:59 PM, "Saransh Mehta" wrote: > I want some data to autoupdate on my homepage as more entries come into > the database. It is more or less like the news feed feature of Facebook. > How do we do that? > > -- > You received this messag

Create objects using a start date, an end date and time list

2018-02-15 Thread Kakar Nyori
I have an Event model, and each event will have different shows. class Event(models.Model): title = models.CharField(max_length=200) class Show(models.Model): event = models.ForeignKey(Event, on_delete=models.CASCADE) date_time = models.DateTimeField(unique=True)

Understanding django channels persistant data

2016-12-20 Thread Kakar Nyori
I am trying to grasp the concept of persistant data in django channels . I have searched the reference and other parts but didn't clear my confusion. I would really appreciate if you help me understand better. consumer

Re: Understanding django channels persistant data

2016-12-20 Thread Kakar Nyori
.content['text']*, but instead its *"text": message['text']*? Thank you Kakar Nyori -- 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 a

Re: Understanding django channels persistant data

2016-12-20 Thread Kakar Nyori
a great tool for us. Kakar Nyori -- 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, sen

Re: What is the best combination of components when installing Django on Windows 10?

2016-12-28 Thread Kakar Nyori
same exact configuration that is in your production machine. Hope this will be helpful to you as it was for me. And again, this may not be the best practice for someone else. Cheers! Kakar. -- You received this message because you are subscribed to the Google Groups "Django users" group.

Migrating from django user model to a custom user model

2017-03-14 Thread Kakar Nyori
I am following these two references (one and two ) to have a custom user model in order to authenticate via email and also to add an extra field to it.

How to django with jquery-mobile

2015-07-29 Thread Kakar Nyori
Django provides many features for the template (extends, block content etc.) I am just learning jquery mobile, but so far when using jquery mobile, there's just one actual html page and inside it we have to create a page (data-role="page"). So, how can we utilize the django's templating features wi

Re: Hello Django Warriors!

2012-07-17 Thread Kakar Arunachal Service
On Sun, Jul 15, 2012 at 2:56 AM, Timothy Makobu wrote: > Django Warr LOL! > > Have a look at Pinax http://pinaxproject.com/ > > > On Sun, Jul 15, 2012 at 5:18 AM, Kurtis Mullins > wrote: > >> On Sat, Jul 14, 2012 at 4:44 PM, Kakar >> >> I'

Re: Is it possible to create website like Squarespace or Wix in django?

2013-04-20 Thread Kakar Arunachal Service
Thank u so much! Now i know django is my way to go. On Sun, Apr 21, 2013 at 10:28 AM, Shawn Milochik wrote: > I don't think there's any kind of site you *can't* make with Django. It's > a Web framework, not a CMS. > > It's definitely possible (and trivial) to offer a wide variety of > templates

Re: Accessing django development server from internet!

2013-05-07 Thread Kakar Arunachal Service
ou'll need to > configure your router. > > _Nik > > > On 5/7/2013 8:43 AM, Kakar wrote: > > I have my project in my pc, and on python manage.py runserver, i can view it > on my browser. But how to view from other computer or on the internet and not > locally?...

Re: Accessing django development server using internet

2013-05-07 Thread Kakar Arunachal Service
Sorry, i'm on win 7. On Tue, May 7, 2013 at 9:30 PM, Shawn Milochik wrote: > pip install gunicorn, then run python manage.py run_gunicorn instead of > runserver. > > Ensure that the port you're running your app on is being handled properly > by your Web server app (nginx or Apache). This means

no module name.models

2013-05-18 Thread Kakar Arunachal Service
I'm practicing from a book Begining django e-commerce and m stuck in one place. My project name is ecomstore, and in it i have two app, one is preview and the other is catalog. In my preview app, there's just html in the templates dir, and thats not the problem, because the result was fine when i r

no module name error

2013-05-18 Thread Kakar Arunachal Service
I'm practicing from a book Begining django e-commerce and m stuck in one place. My project name is ecomstore, and in it i have two app, one is preview and the other is catalog. In my preview app, there's just html in the templates dir, and thats not the problem, because the result was fine when i r

Re: no module name error

2013-05-18 Thread Kakar Arunachal Service
Oh..m sorry. I mistyped, it was not django.ecomstore.catalog.models, but just, ecomstore.catalog.models import Category, Product. N in the catalog dir, it has __init__.py file, so should have done the problem. N m using sqlite3 so i dnt need adapters too. Pls help. -- You received this message be

Re: no module name error

2013-05-18 Thread Kakar Arunachal Service
ecomstore is the project name. And within it, it has another ecomstore, which has the __init__.py, settings.py, urls.py and wsgi.py. And yes catalog too has the __init__.py file in it, as it was created by the startapp command. The error says, import error: no module named catalog.models in admin.p

Re: no module name error

2013-05-18 Thread Kakar Arunachal Service
The directory is as follows: ecomstore --manage.py --ecomstore __init__.py settings.py urls.py wsgi.py --preview __init__.py models.py views.py test.py --templates --tags navigation.html base.html catalog.html index.html --static css.css --catalog __init__.py admin.py

Re: no module name error

2013-05-18 Thread Kakar Arunachal Service
Ok i removed ecomstore from, from ecomstore.catalog.models import Product, Category to from catalog.models import Product, Category And i think it worked fine. But now again it gives an error: ImproperlyConfigured at/catalog - 'ProductAdmin.exclude' refers to field 'created_at' that is missing from

Re: no module name error

2013-05-18 Thread Kakar Arunachal Service
And by the way thanks for being patience with me! -- 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 grou

Re: no module name erro

2013-05-18 Thread Kakar Arunachal Service
Ok i got d solution for ProductAdmin not in the form problem. But thanks again! -- 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...@googlegr

Re: no module name.models

2013-05-19 Thread Kakar Arunachal Service
Thanks! But i gt d solution, i just had to import catalog.models, as it was in my project folder. Thanks by d way! -- 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 t

postgresql

2013-05-20 Thread Kakar Arunachal Service
hi guyz! I'm new to django and python, and very new to postgresql. Can u suggest any books or tutorial for postgresql??? -- 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 em

theme generator

2013-05-21 Thread Kakar Arunachal Service
Hi! Is there any kind of theme generator or css generator for django? -- 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.

view data tables?

2013-05-25 Thread Kakar Arunachal Service
Hi, how to view the tables in pg admin for postgresql database, or in workbench for mysql db.?? Like there's sqlite databse browser for sqlite3. Any other GUI maybe? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group

Re: view data tables?

2013-05-25 Thread Kakar Arunachal Service
Sad, i'm on windows! So, can u tell me how to view the tables that i created after syncdb django in pg admin3, there were so many tables. M sorry, m jst a begginer. I dont understand much. On Sun, May 26, 2013 at 5:51 AM, Drew Ferguson wrote: > On Sun, 26 May 2013 05:23:08 +0530

Re: view data tables?

2013-05-30 Thread Kakar Arunachal Service
thanks It worked pretty well! On Sun, May 26, 2013 at 6:47 AM, Drew Ferguson wrote: > On Sun, 26 May 2013 06:14:11 +0530 > Kakar Arunachal Service wrote: > > > Sad, i'm on windows! So, can u tell me how to view the tables that i > > created after syncdb django i

linux or windows

2013-05-31 Thread Kakar Arunachal Service
Hi! I know this question is one absurd question, but just out of curiosity, is it important to use linux other than the windows, related to django. Cause i'm in windows, and if it is, then i was thinking to use Ubuntu. Please advise. -- You received this message because you are subscribed to the

Re: linux or windows

2013-05-31 Thread Kakar Arunachal Service
rver is ubuntu some might choose to use it for > development also, to be as close as possible to the production environment > > > On Fri, May 31, 2013 at 2:15 PM, Jonas Geiregat wrote: > >> >> On 31 May 2013, at 13:11, Kakar Arunachal Service wrote: >> >> > H

Re: linux or windows

2013-05-31 Thread Kakar Arunachal Service
weren't familiar with a unix/linux flavor (not saying you aren't). > > Also, security is better historically (may have to check on that one.) > > > On Fri, May 31, 2013 at 7:26 AM, Kakar Arunachal Service < > kakararunachalserv...@gmail.com> wrote: > >>

Re: linux or windows

2013-05-31 Thread Kakar Arunachal Service
Ok! Thank u so much! -- 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 django-users

Re: linux or windows

2013-05-31 Thread Kakar Arunachal Service
Thanks! Learned many things! On Fri, May 31, 2013 at 6:57 PM, Javier Guerra Giraldez wrote: > On Fri, May 31, 2013 at 7:55 AM, Mike Dewhirst > wrote: > > I don't know of anyone voluntarily using Windows as a Django production > > server platform. > > > not sure if it counts as "voluntarily", bu

Re: linux or windows

2013-06-01 Thread Kakar Arunachal Service
ndows. if > you want meet new problem every day - windows is your choice :) > > пятница, 31 мая 2013 г., 14:11:23 UTC+3 пользователь Kakar написал: > >> Hi! >> I know this question is one absurd question, but just out of curiosity, >> is it important to use linux ot

postgresql 64 bit in python 32 bit

2013-06-03 Thread Kakar Arunachal Service
Hi, I just uninstalled python 64 bit and reinstalled python 32 bit. So i have postgresql 64 bit in my system. Will it a problem later if i use 32 bit python in 64 bit postresql? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from

Re: What is the best practice to learn Django 1.5?

2013-06-28 Thread Kakar Arunachal Service
For me, Beginning Django E-commerce by James McGaw was very helpful! Hope this helped you. On Fri, Jun 28, 2013 at 8:08 PM, Mike Dewhirst wrote: > On 28/06/2013 11:47pm, Roberto López López wrote: > >> Two scoops of django is also a good book https://django.2scoops.org/ >> > > +1 > > > >> >> On

nginx and apache

2013-07-01 Thread Kakar Arunachal Service
Hi, I am very confused with these two. I know about apache, but not much. And then i came across nginx and that its much faster and easier than apache. Please guide me. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this gro

django admin

2013-07-02 Thread Kakar Arunachal Service
Hi! I am really confused here Can i change the admin url??? Or does it always have to be "www.example.com/admin" ??? -- 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 emai

Re: nginx and apache

2013-07-02 Thread Kakar Arunachal Service
apache for app server... others says that nginx with lighttpd its more > faster (and better for concurrency). > For now im using only one web-server. > > Cheers > > > 2013/7/1 Kakar Arunachal Service > >> Hi, >> I am very confused with these two. I know about apache,

Re: django admin

2013-07-02 Thread Kakar Arunachal Service
Thanks a ton! :D On Tue, Jul 2, 2013 at 9:13 PM, Deepak Sharma wrote: > On Tue, Jul 2, 2013 at 9:05 PM, Kakar Arunachal Service > wrote: > > I am really confused here Can i change the admin url??? Or does it always > > have to be > > "www.example.com/admin"

Re: nginx and apache

2013-07-02 Thread Kakar Arunachal Service
Can you please suggest any good tutorial regarding this. And i'm on windows. :( -- 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...@googlegr

Re: nginx and apache

2013-07-03 Thread Kakar Arunachal Service
Thanks Rafael! On Wed, Jul 3, 2013 at 12:08 AM, Rafael E. Ferrero wrote: > https://code.djangoproject.com/wiki/DjangoAndNginx > http://wiki.nginx.org/DjangoFastCGI > > its a start. ;) > > > 2013/7/2 Kakar Arunachal Service > >> Can you please suggest any good tu

alternate to gunicorn

2013-07-03 Thread Kakar Arunachal Service
Hi, If i was to use nginx in windows, is ther any alternate to Gunicorn for windows environment. Thanks. -- 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-

model relationship

2013-07-05 Thread Kakar Arunachal Service
Hello, Please guide me in model relationship. When to use many to many, many to one, one to one relationships??? I'm all confused. Thank you. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving email

redirct page

2013-07-06 Thread Kakar Arunachal Service
Hi, I am having trouble with redirecting the login page to index page. Please guide me. Here's the html snippet: User Login {% if form.errors %} Your username and password didn't match. Please try again. {% endif %}

Re: redirct page

2013-07-06 Thread Kakar Arunachal Service
e problem, you need to provide more info and be more > specific about your "trouble". > > Dne Sat, 6 Jul 2013 17:44:04 +0530 > Kakar Arunachal Service napsal(a): > > > Hi, > > I am having trouble with redirecting the login page to index page. Please > > guide

Re: redirct page

2013-07-06 Thread Kakar Arunachal Service
thank you much! That did solved the problem! On Sat, Jul 6, 2013 at 7:15 PM, Black9design.com wrote: > I noticed in the snippet that you provided that it says "form methon". See > if that is the issue. > > On Jul 6, 2013, at 6:29 AM, Kakar Arunachal Service < > kak

CSRF verification failed

2013-07-06 Thread Kakar Arunachal Service
Hello! I am getting CSRF verification failed error, even after i added {% csrf_token %} tag in the html file. Here's my html file: {% extends "base.html" %} {% block title %} User Registration {% endblock %} {% block head %} User Registration {% endblock %} {% block content %} {% csrf_to

Re: CSRF verification failed

2013-07-06 Thread Kakar Arunachal Service
Thank you Sanjay! On Sun, Jul 7, 2013 at 4:08 AM, Sanjay Bhangar wrote: > On Sat, Jul 6, 2013 at 9:38 AM, Kakar Arunachal Service < > kakararunachalserv...@gmail.com> wrote: > >> Hello! >> I am getting CSRF verification failed error, even after i added {% >> c

Re: Big Picture?

2013-07-07 Thread Kakar Arunachal Service
True! On Sun, Jul 7, 2013 at 7:35 PM, Amirouche Boubekki < amirouche.boube...@gmail.com> wrote: > Hi, > > I have a diagram I call big picture, you might find it useful (see > attachment). > > Anything green is most of the time provided by the framework at least it > is the case in Django. > > An

change buttons or widgets

2013-07-07 Thread Kakar Arunachal Service
Hi, I think this is too early for me to ask bcoz m still learning the whole web thig. But i'm just very curious. So my question is, how do i change the button or widgets if i had to? I'm sorry if i named or termed it in a wrong way. Thanks! -- You received this message because you are subscribed

Re: change buttons or widgets

2013-07-08 Thread Kakar Arunachal Service
Thank you so much That's just what i needed! And while i was searching for this, i came across this: django-crispy ( http://django-crispy-forms.readthedocs.org/en/1.1.1/index.html). Just wanted to share! On Mon, Jul 8, 2013 at 6:48 PM, Derek wrote: > Widgets: https://docs.djangoproject.com/

form.errors

2013-07-11 Thread Kakar Arunachal Service
Hi, I am learning Django from an old Django version book, and i am stuck with a problem regarding forms. When i render forms, i get the registration right, but if its incorrect, it does not show the error msg in the html. I tried {{form.errors}}, but couldn't fix he problem. Please guide me. Thank

Re: form.errors

2013-07-11 Thread Kakar Arunachal Service
x27;, {'form':form}) > > Cheers > > > On Thu, Jul 11, 2013 at 4:08 PM, Kakar Arunachal Service < > kakararunachalserv...@gmail.com> wrote: > >> Hi, >> I am learning Django from an old Django version book, and i am stuck with >> a problem regard

Re: form.errors

2013-07-11 Thread Kakar Arunachal Service
Its just displaying form again, but without any errors. Please guide me to where am missing something. On Fri, Jul 12, 2013 at 4:34 AM, Kakar Arunachal Service < kakararunachalserv...@gmail.com> wrote: > I am sorry, but its still not displaying any errors after it renders. > > &

Re: form.errors

2013-07-12 Thread Kakar Arunachal Service
he indentation part (variables and return)? I am little bit puzzled in here. And don't the second 'if' require an else? Thanks again! On Fri, Jul 12, 2013 at 2:13 PM, Daniel Roseman wrote: > On Thursday, 11 July 2013 23:08:25 UTC+1, Kakar wrote: > >> Hi, >> I am learn

Re: form.errors

2013-07-12 Thread Kakar Arunachal Service
12 July 2013 14:27:31 UTC+1, Kakar wrote: > >> Okay! That did solved the problem. Thank you! Here's my new view.py: >> >> def register_page(request): >> if request.method == 'POST': >> form = RegistrationForm(request.POST)

'SimpleLazyObject'

2013-07-12 Thread Kakar Arunachal Service
I've got a TypeError: int() argument must be a string or a number, not 'SimpleLazyObject' Here's my view: def bookmark_save_page(request): if request.method == 'POST': form = BookmarkSaveForm(request.POST) if form.is_valid(): # Create or get link. lin

Re: 'SimpleLazyObject'

2013-07-12 Thread Kakar Arunachal Service
jango.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware') Traceback: File "C:\Python27\lib\site-packages\django\core\handlers\base.py" in get_response 115.

Re: 'SimpleLazyObject'

2013-07-13 Thread Kakar Arunachal Service
link = link > ) > > To this: > Bookmark.objects.get_or_create( > user = request.user.id, > link = link > ) > > Sent from my Windows Phone > -- > From: Kakar Arunacha

Re: 'SimpleLazyObject'

2013-07-13 Thread Kakar Arunachal Service
e of your arguments. An > anonymous user is a SimpleLazyObject; it is a user but there is no > reference to it on your databases. The Bookmark foreign key expects to > point to user instance on the users table. > > Thank you, > Victor Rocha > www.RochApps.com > > > > On Fri

Display error message

2013-07-13 Thread Kakar Arunachal Service
Hi, I have a site, that has a submit form, but one must be logged in for that. And if the user is not logged in, it redirects it to the login page. And this all fine. My question is, what do I do to display the error message, "You must be logged to submit.", if the user is not logged in and tries t

django statics

2013-07-14 Thread Kakar Arunachal Service
Hello, I read the django docs, but my still confused. How do i use the static files, for css? Thank you. -- 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-u

rich text editor

2013-07-18 Thread Kakar Arunachal Service
Hello, Just a thought, can a rich text editor be integrated to a social networking site. Or should every user have a css each? Its just a thought, was just wondering but would be glad if any of you could advice me how to if its possible. Thank you. -- You received this message because you are sub

Re: rich text editor

2013-07-18 Thread Kakar Arunachal Service
want to rollout your own. > > > Cheers, > AT > > On Thu, Jul 18, 2013 at 7:24 AM, Kakar Arunachal Service < > kakararunachalserv...@gmail.com> wrote: > >> Hello, >> Just a thought, can a rich text editor be integrated to a social >> networking site. Or s

Re: rich text editor

2013-07-18 Thread Kakar Arunachal Service
text > 5. Make changes to yourcurrentcssfile.css to include styling for the > BBCode. > 6. GOTO 2 > 7. ??? > 8. Profit!!! > > I hope I understood your question well enough. Good luck! > > Cheers, > AT > > On Thu, Jul 18, 2013 at 2:56 PM, Kakar Arunachal Servic