Foreign Key Across Database in Django multidb

2009-12-31 Thread malik
I heard that that multi DB support is now available in Django.Can some one tell me whether it is possible to have foreign Key across Databases. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@goo

Retaining POST DATA

2009-07-20 Thread Raashid Malik
hi all, I am sending POST data to a view But this view has login_required decorator enabled, So if i m user is not logged in, he goes to /accounts/login page and when user login, al the POST data is lost. Is there any way to maintain the actual POST data sent for view. Regards, Raashid Malik

Unhandled exception

2009-05-05 Thread Raashid Malik
rror message on lot other forms as well. Thanks Raashid Malik --~--~-~--~~~---~--~~ 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 un

Django-Logging

2009-05-08 Thread Raashid Malik
Hello, Please guid me to some good resource on django logging. Thanks, Raashid Malik --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to dj

Re: Django-Logging

2009-05-08 Thread Raashid Malik
nippet: > > http://www.djangosnippets.org/snippets/16/ > > On May 8, 3:39 pm, Raashid Malik wrote: > > Hello, > > > >Please guid me to some good resource on django logging. > > > > Thanks, > > Raashid Malik > > > -- Thanks, Raashid Malik --~

Django Logging

2009-05-09 Thread Raashid Malik
Hello, I m using django-logging module and able to see log messages at the bottom of browser. I m also able to create a file. But what u want is that i should be able to create an HTML file and all the logs should be appended. -- Thanks, Raashid Malik

Regarding login functionality in page other than login

2009-10-17 Thread Raashid Malik
I have a custom page e.g home and i want to have login functionality on this page. I m using django registration module for django login and registrations process. Now i m totally blank on how to implement this. Plz help Thanks, Raashid Malik

Addree Book Contact Importer in django/python

2009-11-17 Thread Raashid Malik
Hello, I need to import contacts of given email id/pwd from gmail,yahoo,hotmail for django app. Please suggest? - Thanks, Raashid Malik -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

win free dollors with out hard working and with out wait

2008-01-25 Thread robina malik
http://pickthedollors.blogspot.com open the site and get free dollors without any hardworking and without wait just open it and find a form in this site behind web links on this site and get free dollrs and bank account --~--~-~--~~~---~--~~ You received this messag

Re: Added new column to model and run migrations but not applied to database table

2022-07-03 Thread Malik Rumi
Hi Salima. I am having a similar issue. I see it has been two weeks without a response. Have you found a similar bur report on the Django bug tracker? Have you filed a bug report yourself? Have you found a sustainable solution? Thanks. On Wednesday, June 15, 2022 at 8:46:59 AM UTC-5 sali...@roh

ForeignKey Reverse Relation Fail

2022-07-27 Thread Malik Rumi
I have a model with a recursive foreign key to 'self'. This is intended to model a parent child relation among instances. The forward relation, on a field called 'childof', works as expected. The reverse relation, using the related_name 'parent', comes up as a RelatedManager, again as expected.

Re: ForeignKey Reverse Relation Fail

2022-07-27 Thread Malik Rumi
e you tried using OneToMany relationship ? > On 27 Jul 2022 12:18, "Malik Rumi" wrote: > >> I have a model with a recursive foreign key to 'self'. This is intended >> to model a parent child >> relation among instances. The forward relation, on a field

Re: JQuery .get new url is not updating the page

2012-05-18 Thread Furqan Malik
Thanks for the reply, You misunderstood my question. Passed_TestCases = data['Data1']; Failed_TestCases = data['Data2']; These values are fine, I am using them to create the table. My question is once these values come from view.py, I want to change the browser url so that url can be send to oth

Re: JQuery .get new url is not updating the page

2012-05-23 Thread Furqan Malik
Thank you so much Lee, I am able to change the url but when i copy and past that url to new browser, it opens parent page. Any help? On Sat, May 19, 2012 at 10:49 AM, Lee Hinde wrote: > > On May 18, 2012, at 8:24 PM, Furqan Malik wrote: > > Thanks for the reply, > > Yo

Re: JQuery .get new url is not updating the page

2012-05-23 Thread Furqan Malik
h the given query > (my/page/?foo=bar) then they'll see the same thing > > Of course this will probably require modifying your view to accept queries. > > On Wed, May 23, 2012 at 11:23 AM, Furqan Malik > wrote: > > Thank you so much Lee, > > > > I am able to chang

Re: JQuery .get new url is not updating the page

2012-05-23 Thread Furqan Malik
AX with some given query > 2. Modify the URL to match the query > 3. When a user accesses the same page with the given query > (my/page/?foo=bar) then they'll see the same thing > > Of course this will probably require modifying your view to accept queries. > > On Wed, May 2

foreign key: need to instantiate a form with the initialized foreign key value

2012-10-14 Thread Malik Aqib
class HmsPatient(models.Model): id = models.IntegerField(primary_key=True) regdatetime = models.DateTimeField(default=datetime.datetime.now()) name = models.CharField(max_length=576) dob = models.DateField(default=datetime.datetime.now()) email = models.CharField(max_length=1152

Re: Not getting static files with django & heroku deployment

2015-07-04 Thread Malik Rumi
Hi Martin, First let me say unapologetically that I love PyDanny and his work and contributions to the Django community, especially Two Scoops. However, you should know that the philosophy he espouses there is very different from the one Heroku espouses. I've been told he talks about that somew

Fighting with sqlcustom

2014-07-09 Thread Malik Rumi
Background: I am new to Django and Python, having started on Windows this past December. Currently I am working in a Vagrant precise64 box, and wanted to import one of my old Windows apps which was done on sqlite3 to my current postgres. Once I got that done, Django told me I would need to run

Errors Using Pip In Powershell to Download Django

2014-07-16 Thread Malik Rumi
Yesterday I tried to get the 1.7rc1 and got the error 'file contains no section headers'. I assumed this was because it was a tarball, and after looking around gave up for the night. Tonight I decided to just get 1.6.5. But to my surprise, I got the same error. I have no control over putting sec

Re: Errors Using Pip In Powershell to Download Django

2014-07-17 Thread Malik Rumi
Thanks to both of you. I had a corrupt pip cache. Solution here: http://stackoverflow.com/questions/9510474/removing-pips-cache On Thursday, July 17, 2014 10:20:51 AM UTC-5, cmawe...@gmail.com wrote: > > Yesterday I tried to get the 1.7rc1 and got the error 'file contains no >> section headers'.

What is the difference between running manage.py and ./manage.py?

2014-08-03 Thread Malik Rumi
Is this a Linux thing? -- 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-use

How to Construct a View with multiple and singular objects?

2014-08-04 Thread Malik Rumi
I have a model with numerous objects. However, some of these objects have sub-objects and some do not. When calling up an object with sub-objects, (linked by a foreign key) I’d like to display Object 1.Sub object 2.Sub object And when the user requests an object with no subs, they

Re: What is the difference between running manage.py and ./manage.py?

2014-08-04 Thread Malik Rumi
oth give > the same result, since it's two ways of doing the same thing. > > cheers > L. > > On 4 August 2014 12:03, Malik Rumi > > wrote: > > Is this a Linux thing? > > > > -- > > You received this message because you are subscribed to t

1.7: module has no attribute

2014-08-10 Thread Malik Rumi
I am trying to make my first django project using 1.7. When I try to run python manage.py * (runserver, makemigrations, shell, validate - it doesn't matter) I get the same error: slug = models.Slugfield(max_length=50, unique=True) AttributeError: 'module' object has no attribute 'Slugfield' He

Re: 1.7: module has no attribute

2014-08-11 Thread Malik Rumi
t; Refer: > https://docs.djangoproject.com/en/dev/ref/models/fields/#slugfield > > > > On Monday, 11 August 2014 10:06:20 UTC+5:30, Malik Rumi wrote: >> >> I am trying to make my first django project using 1.7. When I try to run >> python manage.py * (runserver, makemigratio

Re: How to Construct a View with multiple and singular objects?

2014-08-11 Thread Malik Rumi
This is on hold while I wrestle with other problems. On Monday, August 4, 2014 11:43:52 AM UTC-5, Collin Anderson wrote: > > Do you get an error if you wrap it in an if statement? > > {% if object.sub_object %}{{ object.sub_object }}{% endif %} > > -- You received this message because you are s

Django 1.7: ImportError: No module named .models

2014-08-11 Thread Malik Rumi
#admin.py: from apps..models import Articles, Sections ImportError: No module named .models I have seen this error before, and it went away when I changed INSTALLED APPS from to apps. because I have all my apps in a folder called apps. Now I have changed even that to Config because

Re: Django 1.7: ImportError: No module named .models

2014-08-11 Thread Malik Rumi
reference to a decorator of any kind. Is this the source of my problems? Where is the documentation on “.models”? Yes, I have looked and found zip. Thanks. On Monday, August 11, 2014 8:43:29 AM UTC-5, Malik Rumi wrote: > > #admin.py: > > from apps..models import Articl

Re: Django 1.7: ImportError: No module named .models

2014-08-11 Thread Malik Rumi
's knowns as a > "relative import" > > > On Monday, August 11, 2014 1:35:50 PM UTC-4, Malik Rumi wrote: >> >> UPDATE >> >> What is “.models”, why and when do we import from it, and how is it >> different from importing from “models”? >>

Sequence of code validation

2014-08-17 Thread Malik Rumi
When you run python mange.py *, Django runs through your code and stops to point out errors instead of giving you runserver or shell or whatever you were trying to do. What is that sequence? Is it the same every time? Where can I find out more about it? I looked in the docs, but I couldn't find

Re: Sequence of code validation

2014-08-17 Thread Malik Rumi
son I asked specifically about the sequence of these checks is because I am trying to track down a NameError that is showing up in urls.py even though my import from views.py is *. On Sun, Aug 17, 2014 at 8:15 AM, Russell Keith-Magee < russ...@keith-magee.com> wrote: > HI Malik, > >

Re: Sequence of code validation

2014-08-17 Thread Malik Rumi
rote: > Hi Malik, > > Ah - in that case, you're not looking at anything special that Django is > doing; you're just seeing the result of importing Python code. > > Running something like ./manage.py runserver sets of a sequence of complex > code internally - effecti

Re: Does Django detect changes in models Meta ?

2014-09-07 Thread Malik Rumi
Django 1.7rc2 here. Same question, same hope for an answer. It may be that not all possible changes to a model are intended to be picked up. For example, I created all my models directly in 1.7rc2, and I have not changed any fields. What I have done is changed / added some meta and methods. May

Re: Does Django detect changes in models Meta ?

2014-09-08 Thread Malik Rumi
lue and then did makemigrations > then migrate. It doesn't work. I get a very long error. > > On Sep 7, 2014, at 8:54 AM, Malik Rumi wrote: > > Django 1.7rc2 here. Same question, same hope for an answer. It may be that > not all possible changes to a model are intended to be

1 named url per page/screen?

2014-09-25 Thread Malik Rumi
1. I am trying to understand the documentation here: https://docs.djangoproject.com/en/1.7/topics/http/urls/#naming-url-patterns Let us suppose I have a model and folder on mysite called Colors. Within Colors there are several individual documents: blue, green, yellow. If blue, green, and yell

Failure to get data from database and onto template.

2014-10-01 Thread Malik Rumi
Executive Summary: I need to know how to consistently write fbv’s that get the content I want out of my database and into my templates for display on my site in the way I want it displayed. I confess, I don’t get it. Mark me down in points for asking a dumb question. I don’t care. I need hel

Re: 1 named url per page/screen?

2014-10-01 Thread Malik Rumi
ut of the woods yet. I posted a new request for help here: https://groups.google.com/forum/#!topic/django-users/fbiVWytyz5w . I invite you to share your wisdom. On Thursday, September 25, 2014 4:43:43 PM UTC-5, Malik Rumi wrote: > > 1. I am trying to understand the documentation here: > h

Re: 1 named url per page/screen?

2014-10-02 Thread Malik Rumi
rewrite. What would that be? On Thursday, October 2, 2014 8:27:52 AM UTC-5, Daniel Roseman wrote: > > On Wednesday, 1 October 2014 21:35:30 UTC+1, Malik Rumi wrote: >> >> Ok, thank you Daniel. Your response is reasonable and makes sense, but >> that clarity is not on

Re: Failure to get data from database and onto template.

2014-10-02 Thread Malik Rumi
27;ve done plenty already. Thx. On Thursday, October 2, 2014 8:36:59 AM UTC-5, Daniel Roseman wrote: > > On Wednesday, 1 October 2014 21:32:14 UTC+1, Malik Rumi wrote: >> >> Executive Summary: >> >> I need to know how to consistently write fbv’s that get the content

Re: Failure to get data from database and onto template.

2014-10-02 Thread Malik Rumi
Collin, Thank you for the suggestion. I will try it tonight after I get off work and can finish cleaning up the code following Daniel's answer. sectionView is supposed to be id/slug, but I included the Article name in the Section names, because I can't put a fk in the slug. So maybe that was al

Re: Failure to get data from database and onto template.

2014-10-03 Thread Malik Rumi
me so I can get this done better next time, I am all ears. Thanks again for all the help. On Thursday, October 2, 2014 4:08:24 PM UTC-5, Malik Rumi wrote: > > Collin, > Thank you for the suggestion. I will try it tonight after I get off work > and can finish cleaning up th

moving existing django projects

2014-11-12 Thread Malik Rumi
Q: This is a ‘help me understand how this works / what it does’ question rather than a ‘help me I’m stuck’ question. I have an existing Django project I wanted to get on Heroku. I created a new site on Heroku, uploaded my project, and ran migrations. But all I have is a generic new, empty Dja

Re: moving existing django projects

2014-11-15 Thread Malik Rumi
;t get that at all. Your wisdom and insights will be greatly appreciated. On Wed, Nov 12, 2014 at 5:05 PM, Carl Meyer wrote: > Hi Malik, > > On 11/12/2014 08:27 PM, Malik Rumi wrote: > > Q: This is a ‘help me understand how this works / what it does’ question > > rather

Re: moving existing django projects

2014-11-18 Thread Malik Rumi
and how all these things work better than I do now. On Mon, Nov 17, 2014 at 12:47 PM, Carl Meyer wrote: > Hi Malik, > > On 11/15/2014 08:52 PM, Malik Rumi wrote: > > << What WSGI server are you using in the > > Heroku deployment? Can you point to the instructions you

wsgi errors lead to 500 launching django on heroku

2015-01-01 Thread Malik Rumi
I have a wsgi problem I am hoping you can help me with. I am running Django1.7 with gunicorn 19.1.1 and wsgiref 0.1.2. I am trying to get this to run on Heroku. The last error was that it could not find the template home.html and that there was a wsgi error. I added TEMPLATE_DIR to my setting

Re: wsgi errors lead to 500 launching django on heroku

2015-01-03 Thread Malik Rumi
SOLVED. On Thursday, January 1, 2015 9:17:57 PM UTC-6, Malik Rumi wrote: > > I have a wsgi problem I am hoping you can help me with. I am running > Django1.7 with gunicorn 19.1.1 and wsgiref 0.1.2. I am trying to get this > to run on Heroku. The last error was that it could

Re: Can't Install on Windows 8.1

2013-12-24 Thread Malik Rumi
ther requirements inside your virtualenv. > > > > HTH, > Tim > > > > > On Tue, Dec 24, 2013 at 11:35 AM, Malik Rumi > > wrote: > >> Hello. This is my first post. The attached Word document tracks >> everything I have done this morning

Re: Can't Install on Windows 8.1

2013-12-25 Thread Malik Rumi
re / how would I do that? Everything I have done so far has been thru the windows command line. Thanx. - - On Tuesday, December 24, 2013 11:48:22 AM UTC-6, Malik Rumi wrote: > > Boy, the speedy responses on this thread are great! I can't wait to get > home from work so I can put this

Re: Can't Install on Windows 8.1

2014-01-05 Thread Malik Rumi
got a patch (not from Google) and my GAE is fine again. Nevertheless, all this has eaten up a lot of time. When and if I ever get Django running I'll be back, but I don't expect to have any Windows problems anymore. Thanks. On Wednesday, December 25, 2013 4:02:52 PM UTC-6, Felipe

New in Django

2014-01-14 Thread Anu Malik
Hi All, I'm new in Django,i am not sure how pickling/caching works? -- 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. T

Re: Can't Install on Windows 8.1

2014-01-15 Thread Malik Rumi
I got it done. Finally. Thanks to all. On Mon, Jan 6, 2014 at 2:41 AM, Mike Dewhirst wrote: > Malik > > I'm confused. What are you doing with GAE and Windows 8.1? Have you given > up Windows? > > Also, I think you will fare better with Pillow rather than PIL. It seems &

I have a gap in the reported error location of template does not exist

2014-01-25 Thread Malik Rumi
I'm wondering why this is and if it is why I am getting this eror? The template is in the default template dir. 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 em

failure of auto increment in inndb (mysql)

2014-01-27 Thread Malik Rumi
I read this on the django project site: > > Since MySQL 5.5.5, the default storage engine is > InnoDB. > This engine is fully transactional and supports foreign key references. > It’s probably the best choice at this point. Howe

moving from sqlite3 to mysql

2014-01-28 Thread Malik Rumi
This is somewhat like the question in "need help moving to production server" but I think the right procedure is to start a new thread. So I think I have done well for just starting out. With your help I've gotten Django running on Windows, and I completed a tutorial and got my site working loc

Re: Implementing detailed access rights for users of different elements.

2014-01-28 Thread Malik Rumi
I don't have any solutions for you, but I am VERY interested in the responses, since you describe some of the same issues I will have soon but have not gotten to yet - especially the last one, which I don't think is 'minor' at all. So, how about it, all you experienced users out there? Answer t

Re: moving from sqlite3 to mysql

2014-02-05 Thread Malik Rumi
be created for you. > While with MySQL, you should create the database directly in the shell, > and this should give you an empty database. The Django tables will be > created after configuring your settings, and running syncdb. > > > > > On Wed, Jan 29, 2014 at 1:17 AM,

Re: moving from sqlite3 to mysql

2014-02-06 Thread Malik Rumi
'ENGINE': 'django.db.backends.mysql', >> 'NAME': 'django_1', # Or path to database file if using sqlite3. >> # 'USER': '', >> # 'PASSWORD': '', >> # 'HOST':

Django default settings module errors

2014-02-11 Thread Malik Rumi
My immediate goal is to port my (first) Django project to Google App Engine. It is running fine in Django’s runserver. However, in the GAE SDK I get nothing but blank white pages. I have looked at the Djangosettings documentation , the d

heroku better for django?

2014-02-11 Thread Malik Rumi
I have been trying to get my django project on Google App Engine without success, including posting my most recent problem on Stack Overflow and getting zero responses (I just reposted that question herein Django Google Groups)

Re: heroku better for django?

2014-02-12 Thread Malik Rumi
Thanks to both of you. Clearly both Heroku and AWS are more welcoming to Django than GAE. I wasn't looking forward to running the server myself, but the documentation on AWS as well as Glyn's post make it seem a little less intimidating, so I am going to take a test flight on AWS and see what h

Re: heroku better for django?

2014-02-13 Thread Malik Rumi
when trying to load this module even if I precede the load command with sudo. Can you help, please? Thanks. On Wednesday, February 12, 2014 12:02:37 PM UTC-6, Malik Rumi wrote: > > Thanks to both of you. Clearly both Heroku and AWS are more welcoming to > Django than GAE. I wasn

Re: heroku better for django?

2014-02-13 Thread Malik Rumi
Are you the same Daniel Roseman that replied to a search question of mine on Stack Overflow? On Thursday, February 13, 2014 2:59:15 PM UTC-6, Daniel Roseman wrote: > > On Thursday, 13 February 2014 20:47:58 UTC, Malik Rumi wrote: >> >> Glyn, I am following your guide but when I

installing django trunk

2014-03-08 Thread Malik Rumi
I am going from 1.6.1 to 1.7a2, mostly to take advantage of the new migrations feature. I followed the directions here http://django.readthedocs.org/en/latest/topics/install.html#removing-old-versions-of-django Since I originally installed with pip, supposedly that would take care of removing

Re: installing django trunk

2014-03-15 Thread Malik Rumi
it was running 1.6.1. So, I guess I'll have to muddle along without migrations, which was the whole point of this exercise in futility. But I sure would like to understand what is happening here, if any of you wiser and more experienced heads can enlighten me. \ On Saturday, March 8,

Re: installing django trunk

2014-03-19 Thread Malik Rumi
Anybody? A little help here? Just to update, I ran a search for 'migrations' in my django folder, and got a lot of hits, but when I tried to actually run 'makemigrations" I got 'unknown command' On Sat, Mar 15, 2014 at 6:37 PM, Malik Rumi wrote: > First,

django-cms context_processors.media has been deprecated

2014-04-03 Thread Tameen Malik
This below command errors generates when i run my program with this command python manage.py runserver /usr/local/lib/python2.7/dist-packages/cms/context_processors.py:20: DeprecationWarning: cms.context_processors.media has been deprecated in favor of cms.context_processors.cms_settings

Re: I can't connect Django with SQL Anywhere 11 Database

2014-04-15 Thread Tameen Malik
Elio. have you defined your database in your local settings.py file? -- 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.

Re: I can't connect Django with SQL Anywhere 11 Database

2014-04-15 Thread Tameen Malik
Elio. have you define your database in your local settings.py file? -- 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

VIEW PERMISSION

2014-04-17 Thread Tameen Malik
An old Query / I know that but need assistance! so dear django users see what i want to ask and what i did: *Story:* As django admin has three permissions in it's auth : add, change, delete! I want to add view permission in this auth in admin panel.I know i have to customize permissions to add

View Permissions -- DJANGO

2014-04-17 Thread Tameen Malik
An old Query / I know that but need assistance! so dear django users see what i want to ask and what i did: *Story:* As django admin has three permissions in it's auth : add, change, delete! I want to add view permission in this auth in admin panel.I know i have to customize permissions to add

Re: I can't connect Django with SQL Anywhere 11 Database

2014-04-17 Thread Tameen Malik
Elio -- Have you used UTF-8 *By default, with a UTF-8 database, MySQL will use the utf8_general_ci collation. This results in all string equality comparisons being done in a case-insensitive manner. That is, "Fred" and "freD" are considered equal at the database level. If you have a unique co

3 table many to many relationship

2014-04-23 Thread Malik Rumi
I was designing the models I will need for this project. I designed an intermediate table for two models, A and B, and then started to sketch out an intermediate table for two other models, A and C, when I realized that these two intermediate tables both use A, and further, the information in

Re: 3 table many to many relationship

2014-04-26 Thread Malik Rumi
g objects to > relationships (A().b_set.create() won't work). > You'll need to explicitly create `R` instances instead: > R.objects.create(a=a, b=b, c=c). > > Simon > > Le mercredi 23 avril 2014 23:24:04 UTC-4, Malik Rumi a écrit : > >> I was designing the m

i've screwed up my virtualenv

2014-05-05 Thread Malik Rumi
I have several problems. They are: My Django project folder is 3 levels below my virtualenv. Pip freeze: a.on my virtualenv, in the parent folder or the Django project, only gives me the Django-trunk I got from github b.but in the Django project folder, and without the virtualenv, i

Re: i've screwed up my virtualenv

2014-05-05 Thread Malik Rumi
THANKS! Yea, it's that 'activate' part that I kept forgetting that got me into this mess. Maybe I should paste it to my forehead? (-: On Mon, May 5, 2014 at 2:46 AM, Mike Dewhirst wrote: > On 5/05/2014 5:32 PM, Malik Rumi wrote: > >> >> I have sever

What does "+=" mean, or do?

2014-05-12 Thread Malik Rumi
I saw it here http://www.slideshare.net/jacobian/the-best-and-worst-of-django on slide 41. That's a lot to go through, I know, sorry about that. But I googled it and of course got nothing because Google ignores things like + and = now. And I know in this particular example he says 'don't do thi

Re: What does "+=" mean, or do?

2014-05-12 Thread Malik Rumi
Wow, really quick replies! thanks to both of you! On Monday, May 12, 2014 8:26:57 AM UTC-5, Tom Evans wrote: > > On Mon, May 12, 2014 at 2:22 PM, Malik Rumi > > > wrote: > > I saw it here > > http://www.slideshare.net/jacobian/the-best-and-worst-of-django on >

Remote development on Heroku

2014-07-02 Thread Malik Rumi
Because I have not been able to get a response to this issue I am going to use for remote development. Since I will not be giving out the url,will it be okay to set debug to true a

Search results in template

2017-12-19 Thread Malik Rumi
I am implementing search on a local Django project: Django 1.11.5, Python 3.6.3, Ubuntu 16.04. My issue is getting the search results onto the template. I am using standard CBV for everything else in the site, but for this one I wrote my own. It uses the same template as my ListView, which s

Re: Search results in template

2017-12-22 Thread Malik Rumi
Thanks to both of you. The template context is what it should be, and putting all the view in the same block made no difference. :-( On Wednesday, December 20, 2017 at 6:24:57 AM UTC-8, James Schneider wrote: > > > > On Dec 19, 2017 5:12 PM, "Malik Rumi" > > wrote:

Re: Search results in template

2017-12-23 Thread Malik Rumi
FIRST, James, let me say how much I *greatly* appreciate you hanging in there and trying to help me. 2nd, as to your two points about the html: a. This template, serp_list.html, is identical to ktab_list.html, except that serp_list has the title 'SEARCH' at the top and some bolierplate text abou

Re: Search results in template

2017-12-26 Thread Malik Rumi
nd to the query 'eaa'. They just aren't there. 😪 *“None of you has faith until he loves for his brother or his neighbor what he loves for himself.”* On Sun, Dec 24, 2017 at 2:44 AM, James Schneider wrote: > > > On Dec 23, 2017 5:36 PM, "Malik Rumi" wro

Re: Search results in template

2017-12-26 Thread Malik Rumi
Here is the Entry model: class Entry(models.Model): title = models.CharField(max_length=100, blank=False, null=False) slug = models.SlugField(max_length=100) content = models.TextField() posted_date = models.DateTimeField(auto_now=True) chron_date = models.DateField(auto_now=Fa

Re: Search results in template

2017-12-26 Thread Malik Rumi
he loves for his brother or his neighbor what he loves for himself.”* On Tue, Dec 26, 2017 at 8:34 PM, Malik Rumi wrote: > Here is the Entry model: > > class Entry(models.Model): > title = models.CharField(max_length=100, blank=False, null=False) > slug = model

Re: Search results in template

2017-12-26 Thread Malik Rumi
That appears to be it. I got content and all that on the simple template this time. I put values_list in there because that's the way it was done on the postgres full text search tutorial I was using. I assumed it was needed for rank, I never thought about it limiting me otherwise. If I seem a lit

Django: text, font, and style

2018-01-01 Thread Malik Rumi
Apparently I completely misunderstand the built in template tags {% autoescape &} and {% safe %}. Either they don't do what I expect, or I can't get them to do what I expect. But what I am trying to do is not at all unusual, so this post is all about learning from the community what are the

Re: Django: text, font, and style

2018-01-01 Thread Malik Rumi
I'm sorry, James. What the heck is 'steering' in this context? *“None of you has faith until he loves for his brother or his neighbor what he loves for himself.”* On Mon, Jan 1, 2018 at 3:11 PM, James Schneider wrote: > > > > Have you verified that object.content contains un-escaped (raw) HTML?

Re: Django: text, font, and style

2018-01-01 Thread Malik Rumi
cape while waiting for these answers, and I may now have a better grasp on how it works, but still not so much with safe. But this is a good start. thx! *“None of you has faith until he loves for his brother or his neighbor what he loves for himself.”* On Mon, Jan 1, 2018 at 6:00 PM, Malik Rumi wro

Re: Django: text, font, and style

2018-01-01 Thread Malik Rumi
his brother or his neighbor what he loves for himself.”* On Mon, Jan 1, 2018 at 2:47 PM, Malik Rumi wrote: > This also fails, and renders exactly as you now see it on my web page: > > {% autoescape off %} > Yea, that's going to be a monster > {% endautoescape

Re: Django: text, font, and style

2018-01-01 Thread Malik Rumi
28 PM, Malik Rumi wrote: > Well, as I said at the beginning, I don't seem to 'get' autoescape and > safe. For example, I put this in my template: > > {{ object.content|linebreaks|safe }} > > But the result in my web page is: > > Friday, November 17,

Re: Django: text, font, and style

2018-01-01 Thread Malik Rumi
ault all strings processed through Django templating language are > considered as unsafe. IOW all strings gets HTML escaped properly. > > To get around that you can either use safe filter or declare particular > string as a safe in a view. > > 1.1.2018 20.47 "Malik Rumi" k

Re: Django: text, font, and style

2018-01-01 Thread Malik Rumi
Yea, I disconnected that feature on my phone. *“None of you has faith until he loves for his brother or his neighbor what he loves for himself.”* On Mon, Jan 1, 2018 at 7:03 PM, James Schneider wrote: > > > On Jan 1, 2018 6:01 PM, "Malik Rumi" wrote: > > I'm

Using Django create() on a time.field

2018-01-07 Thread Malik Rumi
I am trying to process some text files and feed the result directly into a django model using create(). As so often seems to happen with me, this turns out to not be as simple as I thought it would be. Specifically, I can’t seem to get any data into ‘clock’, the time field in my model. When I

Re: How to get Foreign Key Objects programmatically?

2018-02-27 Thread Malik Rumi
Did you ever find an answer? If so, do you mind sharing it? Thanks. On Sunday, October 29, 2017 at 9:33:10 AM UTC-7, rmschne wrote: > > I'm using Django as front end to a MySQL database. User interface is a > terminal program, not a web site. > > I've written a very simple generic function to edi

Clarification on Foreign Keys requested

2018-03-05 Thread Malik Rumi
Hello all, Up to now, (admittedly not long - I'm not a total newbie but I still have a LOT to learn) when making a foreign key I would just put the pk of that instance in the fk field, as the docs suggest: By default ForeignKey will target the pk of the remote model but this behavior can be ch

Re: Clarification on Foreign Keys requested

2018-03-05 Thread Malik Rumi
standard (defaulted) stuff, it's a mystery. > Either way folks probably need to see some of your code to help out. > > On Mon, Mar 5, 2018 at 5:06 PM, Malik Rumi wrote: > >> Hello all, >> >> Up to now, (admittedly not long - I'm not a total newbie but I still

about django framework execution sequence

2016-05-21 Thread zeeshan malik
anybody plz tel me the exzact sequence of Djngo framework execution like: first of all url call to view functions and then views render the templates and data will show on page then in case of inserting data in form how djngo execute in sequence how model and form work and how ORM role in map

Re: Multi-table Inheritance: How to add child to parent model?

2016-06-22 Thread Malik Rumi
This thread is obviously very old, but since it helped me find the answer, I thought I would share that for the benefit of others mystified by the lack of information on https://docs.djangoproject.com/en/1.9/topics/db/models/#multi-table-inheritance. It turns out that although Derek's link t

Django Rest Framework Custom Viewsets.

2016-06-24 Thread Malik Junaid
A very small library for extending the functionality of DRF ModelViewSet. Viewsets The first of out custom viewsets is the CustomSerializerViewSet that allows you to specify different serializers for different actions of a viewset.

  1   2   >