Backend In Web Programming | PHP, Laravel, ASP.NET, Django

2023-03-06 Thread PATRICK OFOSU AGYEMANG
Hi everyone, currently looking for a remote challenging opportunity for my next career. Kindly find attached my CV. Let me know if any help comes up. Thank you -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group

Re: DRF and React - request.user is "Anonymous user"

2022-09-19 Thread Jackson Patrick
Do i need to pass token in headers? On Tue, 20 Sep, 2022, 9:44 am Mohammad Ehsan Ansari, wrote: > make sure you have listed auth as jwt and added permission class for > authentication > > On Monday, 12 September 2022 at 09:52:22 UTC+5:30 jacks...@gmail.com > wrote: > >> I have used simple JWT

DRF and React - request.user is "Anonymous user"

2022-09-11 Thread Jackson Patrick
I have used simple JWT for authentication and i have successfully logged in and am getting tokens also. But when i do a request.user in backend i get "Annonymous user". Tried passing Authorization header in axios post in FE REACT but it throws error. Am setting both refresh and access in a state

DRF - request.user returns None

2022-08-26 Thread Jackson Patrick
I am trying to get user using request.user and when printing gets None and in console it shows "Annoymous user". and am using simple jwt -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails

Quick question for web hosting production

2021-10-08 Thread Patrick Luke Astrero
I want to ask a quick question guys that, is it possible to host 2 apps in one cloud service? like for example, angular for the front end and django for the backend? and they would use one ip address right but on a different port? -- You received this message because you are subscribed to

testing class based generic views

2020-10-24 Thread Patrick Carra
Can anyone point me towards a tutorial for how to test a CreateView function? -- 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

Re: How to redirect to a new view other than what is defined in get_absolute_url

2020-10-01 Thread Patrick Carra
searchOrdersFilter context = {'table': table, 'filter': filters} return render(request, template, context) On Thursday, October 1, 2020 at 10:59:11 AM UTC-5 Patrick Carra wrote: > I am using linkify in django_tables2 to create a link to an order by > defininig get_absolute_url

Re: Setting up models and postgres in django 3.1

2020-09-25 Thread Patrick Carra
Figured it out 3.1 is more strict about how it creates tables in postgres. The workaround I used was to put the tables into the various appname/models.py and then import them as needed when I need them. On Friday, September 25, 2020 at 12:38:19 PM UTC-5 Patrick Carra wrote: > So I h

Setting up models and postgres in django 3.1

2020-09-25 Thread Patrick Carra
So I have worked in django 2.2 where I have multiple apps that I use the same models.py file in for all of them (same meaning I make sure each one is exactly the same as the others not one single models.py). When I do migrations I have no problem with anything. When I started using django

Re: TypeError: object() takes No Parameters

2020-09-17 Thread Patrick Carra
eters On Thursday, September 17, 2020 at 3:00:08 PM UTC-5 Patrick Carra wrote: > The actual trace coolguy is > > TypeError at /functions/ClassMonthlyCost/object() takes no > parametersRequest > Method: GETRequest > URL: http://98.8.61.133:8080/functions/ClassMonth

Re: TypeError: object() takes No Parameters

2020-09-17 Thread Patrick Carra
The actual trace coolguy is TypeError at /functions/ClassMonthlyCost/object() takes no parametersRequest Method: GETRequest URL: http://98.8.61.133:8080/functions/ClassMonthlyCost/Django Version: 2.2.4Exception Type: TypeErrorException Value: object() takes no parametersException

TypeError: object() takes No Parameters

2020-09-17 Thread Patrick Carra
Hello everyone, I am trying to utilize the SIngleTableMixin of django_tables2 using a custom function that queries my database and aggregates the data into a list of dictionaries. I read to use the SingleTableMixin that all I needed was an iterable containing a data structure that has a key(a

Re: Setting an existing field to use ForeignKey can't access the object

2020-09-11 Thread Patrick Carra
Okay I figured it out. First I was using the wrong table (an old table that I should have deleted out). Second I needed to set the db_column attribute in my ForeignKey options). Works like a charm now. Sorry but thanks for the help! On Friday, September 11, 2020 at 11:59:56 AM UTC-5 Patrick

Re: Setting an existing field to use ForeignKey can't access the object

2020-09-11 Thread Patrick Carra
Opeyemi wrote: > Your ciecuitinfotable model does not have budget and budget_set field > > On Friday, September 11, 2020, Patrick Carra wrote: > >> hello I am attempting to relate two existing tables >> >> class Circuitinfotable(models.Model): >> id1 = mod

Setting an existing field to use ForeignKey can't access the object

2020-09-11 Thread Patrick Carra
hello I am attempting to relate two existing tables class Circuitinfotable(models.Model): id1 = models.AutoField(primary_key=True, null=False, unique=True) pid = models.CharField(max_length=255, blank=True, null=True) circuitid = models.CharField(max_length=255, blank=True,

Re: NoReverseMatch at /searchlit/customsearch and bigger problem of exporting a filtered queryset

2020-08-31 Thread Patrick Carra
/filtering.html > > > On Sat, 29 Aug 2020, 4:36 am Patrick Carra, wrote: > >> Hello All! I need some help with a problem I have been struggling with. >> One of you generous geniuses has the answer I'm sure of it. I am working >> on integrating an export

Re: NoReverseMatch at /searchlit/customsearch and bigger problem of exporting a filtered queryset

2020-08-31 Thread Patrick Carra
*Thanks coolguy I changed my urls.py to this and that resolved the error:* from django.urls import include, path from . import views from .views import search app_name= "searchLit" urlpatterns=[ path('customsearch/', views.search, name='search'), path('exportlit/',

NoReverseMatch at /searchlit/customsearch and bigger problem of exporting a filtered queryset

2020-08-28 Thread Patrick Carra
Hello All! I need some help with a problem I have been struggling with. One of you generous geniuses has the answer I'm sure of it. I am working on integrating an export to csv button(link) on my template to export filtered data from one of my tables. I have previously only been able to

Do I need to change my normal Django code when introducing Django Channels?

2020-07-10 Thread Marlon Patrick
Hi guys, I'm new to the python world and consequently I'm new to Django, Channels, WSGI, ASGI, etc. I asked this question on StackOverflow but I still haven't had any answers, so I decided to post here in order to try to receive some guidance.

Re: Populate choices from existing values in a model field

2020-06-23 Thread Patrick Carra
that restarts the server periodically(this seems like not a great solution). On Saturday, June 20, 2020 at 8:39:03 AM UTC-5, Integr@te System wrote: > > Hi Patrick, > > Plz review for your suitable case: > https://stackoverflow.com/questions/3742734/django-restart-server-or

Populate choices from existing values in a model field

2020-06-19 Thread Patrick Carra
I am trying to read distinct values from a model field and use the tuple list to populate the choices in a Form. The problem I have is that every time a new value is added I must reset the httpd server in order to include the new value in the form. I have researched and tried this a few

passing a parameter through CreateView to a be an initial value in a form

2020-02-19 Thread Patrick Carra
Hello I am trying to pass a value from a link into CreateView and use that value as an inital value in a form. I am not having much success and am not sure that I am doing this correctly. Here is what I have so far: Link: Circuit Ref: {{ record.id1 }} urls.py path('addXC//',

Re: passing an argument to ListView class and accessing using kwargs

2019-12-11 Thread Patrick Carra
Thank you Dominick your second suggestion worked beautifully! I appreciate your time and expertise! -- 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

Re: passing an argument to ListView class and accessing using kwargs

2019-12-10 Thread Patrick Carra
One more additional note this is the url that gets access when the link is clicked http://98.8.61.133:8080/viewLit/St.%20Louis%20to%20Mt.%20Vernon/viewutilization -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group

passing an argument to ListView class and accessing using kwargs

2019-12-10 Thread Patrick Carra
Hello I am attempting to pass an argument to a Class(ListView) and then perform a filter using a kwarg that contains the argument passed in the url. I am having a problem because I cannot access the variable in the url using kwargs. I am not sure what I'm doing wrong below is the link that

Adding drop down selection to my form and filter

2019-12-04 Thread Patrick Carra
Hello I am working on adding a drop down selection to my filters so far I am not having any luck. I recently changed my views.py to use a class instead of a def for this. Now when I use filter.form it shows every field in my models. It should only show the following fields circuitid,

Re: Trying to update a record using UpdateView Error: Circuitinfotable matching query does not exist

2019-11-27 Thread Patrick Carra
okay so I dumped all the contents of my editCircuit.html into a file called circuitinfotable_form.html and now I get my form. But I still don't understand why I had to use this name since I never specified it anywhere. -- You received this message because you are subscribed to the Google

Re: Trying to update a record using UpdateView Error: Circuitinfotable matching query does not exist

2019-11-27 Thread Patrick Carra
I don't have a circuitinfotable_form.html. I never specified circuitinfotable_form in any of my code. What should that form contain? My /viewLit/editCircuit.html form contains the following: {% block content %} {% csrf_token %} {{form.as_p}} {% endblock %} Shouldn't that suffice

Re: Trying to update a record using UpdateView Error: Circuitinfotable matching query does not exist

2019-11-27 Thread Patrick Carra
I didn't have one. I thought UpdateView would create the form for me. But I was working the problem and made one: from django.forms import ModelForm from . models import Circuitinfotable class CircuitinfotableForm(ModelForm): class Meta: model = Circuitinfotable fields =

Re: Trying to update a record using UpdateView Error: Circuitinfotable matching query does not exist

2019-11-27 Thread Patrick Carra
Raja that was a great suggestion thank you! Once a started playing around with the urls in the project level I found that it was still being routed to viewLit despite the edit/ in the url I was passing. I decided to put all these classes into the same app viewLit/views.py and now my parameter

Re: Trying to update a record using UpdateView Error: Circuitinfotable matching query does not exist

2019-11-26 Thread Patrick Carra
It's actually this I copy and pasted the wrong thing: Edit Circuit Info My project level urls.py is: from django.contrib import admin from django.urls import path, include from django.conf.urls import url import debug_toolbar urlpatterns = [ path('admin/', admin.site.urls), path('',

Re: Trying to update a record using UpdateView Error: Circuitinfotable matching query does not exist

2019-11-26 Thread Patrick Carra
Ha that was my mistake my brain has turned to mush anyhow the change was made and it still is broken :( On Tuesday, November 26, 2019 at 3:34:45 PM UTC-6, Patrick Carra wrote: > > Correct me if i'm wrong but I think you meant: > > urlpatterns= [ > path('circuit/', > vie

Re: Trying to update a record using UpdateView Error: Circuitinfotable matching query does not exist

2019-11-26 Thread Patrick Carra
Correct me if i'm wrong but I think you meant: urlpatterns= [ path('circuit/', views.editLit.as_view(),name='editLit'), ] I did make that change but the results were the same. -- You received this message because you are subscribed to the Google Groups "Django users" group. To

Re: Trying to update a record using UpdateView Error: Circuitinfotable matching query does not exist

2019-11-26 Thread Patrick Carra
Yea! This toolbar is an awesome tool thanks for the tip. So now I guess I'm not understanding how to route url's really. The a href is: Edit Jira Info My project level urls.py is: from django.contrib import admin from django.urls import path, include from django.conf.urls import url import

Re: Trying to update a record using UpdateView Error: Circuitinfotable matching query does not exist

2019-11-26 Thread Patrick Carra
I figured out the weirdness with the django-debug-toolbar I wasn't serving my static files from the apache/mod_wsgi configuration. After I figured that out this is what I have now: QueryTimelineTime (ms)Action +

Re: Trying to update a record using UpdateView Error: Circuitinfotable matching query does not exist

2019-11-26 Thread Patrick Carra
Okay I have worked on it I do have the toolbar on there but it's not display correctly it shows up at the bottom of each page and looks like this: - Hide » - Versions Django 2.2.4 - Time CPU: 51.78ms (56.68ms)

Re: Trying to update a record using UpdateView Error: Circuitinfotable matching query does not exist

2019-11-26 Thread Patrick Carra
I installed the django-debug-toolbar but its not doing anything. I imported it added it to settings.py installed apps and middleware, added the if statement to the project level urls.py and Debug is set to True. -- You received this message because you are subscribed to the Google Groups

Re: Trying to update a record using UpdateView Error: Circuitinfotable matching query does not exist

2019-11-26 Thread Patrick Carra
Could it possibly be that it is trying to match this entire value? /viewLit/edit/circuit/STTK-100G-18040-01-WRBB/ and if so what am I doing wrong in my urls and views that I am not dropping /viewLit/edit/circuit/? -- You received this message because you are subscribed to the Google Groups

Re: Trying to update a record using UpdateView Error: Circuitinfotable matching query does not exist

2019-11-26 Thread Patrick Carra
Thanks for the reply Gil i did this and was able to find this object. Python 3.6.8 (default, Aug 7 2019, 17:28:10) [GCC 4.8.5 20150623 (Red Hat 4.8.5-39)] on linux Type "help", "copyright", "credits" or "license" for more information. (InteractiveConsole) >>> from editLit.models import

Re: Trying to update a record using UpdateView Error: Circuitinfotable matching query does not exist

2019-11-25 Thread Patrick Carra
Sorry I forgot one! My models.py for this class is below: class Circuitinfotable(models.Model): id1 = models.IntegerField(blank=True, null=True) pid = models.CharField(max_length=255, blank=True, null=True) circuitid = models.CharField(primary_key=True, max_length=255, blank= False,

Trying to update a record using UpdateView Error: Circuitinfotable matching query does not exist

2019-11-25 Thread Patrick Carra
I have a built a database application that users can search and view records from. I am trying to incorporate an update feature to allow users to edit information the app is called editLit. When I try to pass a parameter into the editLit app via urls into views.py I get the following error:

Re: django passing a parameter for a view in a url produces Error: Circuitinfotable matching query does not exist.

2019-11-15 Thread Patrick Carra
In case anyone is interested I fixed this with some simple regex in my view. I identified the patterns for which apache was removing the // and replacing with a single / and then wrote some rules around that and replaced the single / with the // before passing it to my query. -- You received

Re: django passing a parameter for a view in a url produces Error: Circuitinfotable matching query does not exist.

2019-11-14 Thread Patrick Carra
Yea I think what I may have to do is write some regex in the template to catch anytime there is a // and convert it to something that won't interfere with the apache/mod_wsgi due to the url and then when I pass it back into my view convert it back to the original in order to perform the query

Re: django passing a parameter for a view in a url produces Error: Circuitinfotable matching query does not exist.

2019-11-14 Thread Patrick Carra
I think my assumption was wrong stackoverflow is down right now so I can't go to the link but it seems like somebody is suggesting this is an apache/mod_wsgi error https://code.djangoproject.com/ticket/14346 -- You received this message because you are subscribed to the Google Groups "Django

Re: django passing a parameter for a view in a url produces Error: Circuitinfotable matching query does not exist.

2019-11-14 Thread Patrick Carra
No change Daniel I looked that up and I think that is used for something else. The name makes since but its purpose is for something else. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving

Re: django passing a parameter for a view in a url produces Error: Circuitinfotable matching query does not exist.

2019-11-14 Thread Patrick Carra
There was no change after adding |safe after the value within {{}} example: View -- 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

Re: django passing a parameter for a view in a url produces Error: Circuitinfotable matching query does not exist.

2019-11-14 Thread Patrick Carra
That is a value from the table in models called Circuitinfotable and the field it is pulled from is called circuitid. -- 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

Re: django passing a parameter for a view in a url produces Error: Circuitinfotable matching query does not exist.

2019-11-14 Thread Patrick Carra
and the actual value is OQYX/173774//ZYO but Django is interpreting it as OQYX/173774/ZYO/ On Thursday, November 14, 2019 at 1:41:35 PM UTC-6, Patrick Carra wrote: > > That is a value from the table in models called Circuitinfotable and the > field it is pulled from is called

Re: django passing a parameter for a view in a url produces Error: Circuitinfotable matching query does not exist.

2019-11-14 Thread Patrick Carra
Could you provide an example of what you mean? I'm not sure what you mean by method call must include an object instance as argument. This code works for other values of circuitid but does not work for one that contains a //. This tells me, along with the traceback code, that django at some

Re: django passing a parameter for a view in a url produces Error: Circuitinfotable matching query does not exist.

2019-11-14 Thread Patrick Carra
t; >> datacen...@gmail.com >) escribió: >> >>> Hi Informer, >>> check you model Circuitinfotable, >>> Method call must include object instance as argument. >>> >>> >>> On Thu, Nov 14, 2019, 21:42 Patrick Carra >> > wrote

django passing a parameter for a view in a url produces Error: Circuitinfotable matching query does not exist.

2019-11-14 Thread Patrick Carra
I am passing a parameter in a url to another view and during the process it gets changed. An original parameter example that produces the error is OQYX/173774//ZYO but gets changed to '/viewLit/OQYX/173774/ZYO/' It drops the second / between 173774 and ZYO. I assumed this was because it was

Re: Performing a query returns an error

2019-11-13 Thread Patrick Carra
Simon thank you for that I had been playing around with db_column but did not realize the exact reference I should have been making. Thank you for the quick reply! On Wednesday, November 13, 2019 at 9:46:59 AM UTC-6, Simon Charette wrote: > > Hello Patrick, > > From what I un

Performing a query returns an error

2019-11-13 Thread Patrick Carra
Hello all I am new to django and I am trying to do a query to that will provide me with information from multiple tables I have included my models.py file below: Enter code hclass Circuitinfotable(models.Model): pid = models.CharField(max_length=255, blank=True, null=True) circuitid =

Re: Django - How to add a link to a table that will open another page(django app) from an html template and pass a variable with it.

2019-11-11 Thread Patrick Carra
> parameters are everything following the ? > so as you can do something like this > 127.0.0.1/foo/?field1=a=b=c > I am not sure if this is the better than your solution but this should > work. As well you can add a redirect in viewlit to a different page if > circuit_id does no

Re: Django - How to add a link to a table that will open another page(django app) from an html template and pass a variable with it.

2019-11-07 Thread Patrick Carra
Thank you Randy! On Wednesday, September 25, 2019 at 12:09:52 PM UTC-5, Patrick Carra wrote: > > Hello I have an app that displays some database information in a table. > Inside of the html template I am making an edit link that I want to open > another app(page viewLit) while pas

Django - How to add a link to a table that will open another page(django app) from an html template and pass a variable with it.

2019-09-25 Thread Patrick Carra
Hello I have an app that displays some database information in a table. Inside of the html template I am making an edit link that I want to open another app(page viewLit) while passing a value to it's view. I have added my code below. My question is I am unsure of how to make this links url

Re: A calendar booking app

2018-06-05 Thread Spence Patrick
I use Google calendar for a booking app that changes events in a public calendar for everyone to see On Tue, Jun 5, 2018, 06:33 Kasper Laudrup wrote: > Hi fellow Django users, > > I'm planning to start up a homepage for my familys summer house. > > There are a few ideas of what should be there,

Re: URL Concatenation Issue

2018-05-30 Thread Spence Patrick
Is your link tag href="./about" or href="/about/" On Wed, May 30, 2018, 19:14 wrote: > Hello, > > I'm debugging an issue that I'm having with my URL patterns. In my HTML I > have an "about me" page that is linking to an about.html file in my > templates/blog/ directory. When I load the homepage

Re: Attribute error

2018-05-30 Thread Spence Patrick
The f in field should be capitalized On Wed, May 30, 2018, 20:10 Caleb Bryson wrote: > it is still saying "AttributeError: model 'django.db.models' has no > attribute 'Charfeild' > > On Wednesday, May 30, 2018 at 10:04:04 PM UTC-4, Mike Dewhirst wrote: >> >> On 31/05/2018 11:45 AM, Caleb Bryson

Re: Aggregation and following relationships backwards multiple levels

2017-02-01 Thread Patrick Joy
Hi, Thank you for your response, this works perfectly! Patrick On Thursday, February 2, 2017 at 4:07:21 AM UTC+11, pradam.programming wrote: > > Hi Patrick, > you can do like this: > def total(self): > return ContractItem.objects.filter(contract__subbu

Aggregation and following relationships backwards multiple levels

2017-02-01 Thread Patrick Joy
Hi all, Would appreciate some advice on this, I'm having trouble working out the best way to aggregate across multiple foreign key relationships. I have come up with the solution below however I'm not sure if this is the correct way to handle this situation. Any advice would be appreciated.

Re: Using django/mod_wsgi with apache httpd ErrorDocument seems to confuse reverse URL mapping

2016-06-27 Thread Patrick Ethier
in different ways, but the most straight-forward seems to be the FORCE_SCRIPT_NAME in settings.py On Monday, June 27, 2016 at 3:09:13 PM UTC+2, Patrick Ethier wrote: > > Hi, I'm trying to set up mod_wsgi and Django to handle authentication and > I'm getting a weird problem. A

Using django/mod_wsgi with apache httpd ErrorDocument seems to confuse reverse URL mapping

2016-06-27 Thread Patrick Ethier
Hi, I'm trying to set up mod_wsgi and Django to handle authentication and I'm getting a weird problem. After much troubleshooting I've distilled it down to the configs below: /etc/httpd/conf.d/10-django.conf ServerName site.internal DocumentRoot

Re: New to Django (stuck at the end of the tutorial)

2016-04-26 Thread Patrick Harding
maybe giving it a namespace would handle it for you? such as include('sistema.urls', namespace='sistema') if not you can try this. the error i get is that you should "pass the callable instead" which means in your imports include the views that you want to import, then call them in you

Trying to extend the User model to create a user profile page

2016-04-26 Thread Patrick Harding
I am creating an app for our company to have users log in, create a profile page, and create updates on some personal progress. I have handled logging in and registering with django-registration, and have created the app for updates, but i'm not able to create a profile page extending the

ModelForm has no model class specified

2016-01-18 Thread walukagga patrick
Environment: Request Method: GET Request URL: http://127.0.0.1:8000/artists/form Django Version: 1.8.7 Python Version: 2.7.11 Installed Applications: ('django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages',

ModelForm has no model class specified. Request Method:

2016-01-18 Thread walukagga patrick
Am trying to create forms using models but i cant view forms because of ModelForm has no model class specified. -- 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

Re: List of available Jinja2 global symbols

2015-11-22 Thread Patrick Spencer
I see what you mean about not being about to have a global list of symbols because everything is subject to change. But it would be nice to have a default list of symbols available depending on the default initial setup. I think the csrf_token and request token are available in the

Re: List of available Jinja2 global symbols

2015-11-22 Thread Patrick Spencer
15 at 1:17:59 PM UTC+1, JirkaV wrote: >> >> Hi there, I'm not a Jinja2 user, but standard Django templates get these >> variables via context processors‎. Check out >> https://docs.djangoproject.com/en/1.8/topics/templates/#context-processors >> >> HTH >&

Re: List of available Jinja2 global symbols

2015-11-22 Thread Patrick Spencer
> https://docs.djangoproject.com/en/1.8/topics/templates/#context-processors > > HTH > >Jirka > > *From: *Patrick Spencer > *Sent: *neděle, 22. listopadu 2015 5:45 > *To: *Django users > *Reply To: *django...@googlegroups.com > *Subject: *List of available

List of available Jinja2 global symbols

2015-11-21 Thread Patrick Spencer
I'm using Django 1.8.6 with the built in JInja2 support. I spent a while trying to figure out how to pass a csrf token to a JInja2 template. After a while I realized one could just write {{ csrf_token }} in the template, without passing this value through a view, and it would just print out the

Login with email address

2015-11-04 Thread Patrick Breitenbach
Is there a current "best" approach or module for signup/login with an email address? I can't believe this is not included with django. In fact, it should be the default. 80-99% of services and projects do not use usernames. -- You received this message because you are subscribed to the Google

Re: Authenticate users with both username and email

2015-11-04 Thread Patrick Breitenbach
Are you suggesting that there's a relatively easy way to implement "email address as username"? Is it as easy as just putting an email address into the username field? And making sure to update it when someone updates their email address? On Monday, January 19, 2015 at 2:33:35 AM UTC-8, James

Django Admin should really support Twitter Bootsrap

2015-04-13 Thread Patrick Lemiuex
It's about time, the django admin tool should support twitter bootstrap markups and styling. This is the third django project where I've had to deal with custom form widgets because the admin tool supports kind of an outdated layout scheme in the admin template. This also affects a lot of

Re: Writing your first Django app, part 5 Testing

2015-02-21 Thread Gavin Patrick McCoy
Ok. I get you. Thanks very much! On Saturday, 21 February 2015 11:56:50 UTC, Daniel Roseman wrote: > > You're doing this in the shell, which uses your devv database in which you > have obviously defined a poll already. > > The docs are taking about running this in a unit test, which would

Re: Writing your first Django app, part 5 Testing

2015-02-21 Thread Gavin Patrick McCoy
o Yan--About me : http://about.me/chao_yan > <http://about.me/chao_yan>* > > *My twitter: @yanchao727 <https://twitter.com/yanchao727>* > *My Weibo: http://weibo.com/herewearenow <http://weibo.com/herewearenow>* > *--* > > 201

Writing your first Django app, part 5 Testing

2015-02-21 Thread Gavin Patrick McCoy
Hi, I'm on part 5 of the polls tutorial (https://docs.djangoproject.com/en/1.7/intro/tutorial05/) and I am running Django 1.7 and Python 3.4 on Windows 8. Just want to make sure I'm on the right track. For the following part of tutorial: >>> # get a response from '/'>>> response =

Re: Writing your first Django app, part 1 - Django 1.7 - # Make sure our __str__() addition worked.

2015-02-04 Thread Gavin Patrick McCoy
Sorry about that. Thanks a million for your reply. On Wednesday, 4 February 2015 17:38:16 UTC, Vijay Khemlani wrote: > > The method is called "__str__" (note the double underscore at both ends) > > On Wed, Feb 4, 2015 at 2:29 PM, Gavin Patrick McCoy <gavin@mail.d

Writing your first Django app, part 1 - Django 1.7 - # Make sure our __str__() addition worked.

2015-02-04 Thread Gavin Patrick McCoy
Hi, Just started learning Django today. I got down to the last grey box of code on https://docs.djangoproject.com/en/1.7/intro/tutorial01/#writing-your-first-django-app-part-1 and when I checked to see of the __str__() addition to models.py worked, it didn't. I didn't get [], I got []. I

Initial stages of django

2015-02-01 Thread patrick
The Django tutorial is definitely worth going through but there are other great resources: Buddy Lindsey at GoDjango.com has free (and more advanced paid) video tutorials that are short but highly informative. Tobias Abdon's ultimatedjango.com is a step-by-step tutorial for building a CRM

Re: Advice needed: Adaptive/Responsive Images in Django?

2014-11-20 Thread Patrick Beeson
AListApart recently published a great article on responsive images: http://alistapart.com/article/responsive-images-in-practice On Thursday, November 20, 2014 1:05:45 AM UTC-5, ThomasTheDjangoFan wrote: > > Hi guys, > > do you have a tip for implementing adaptive (responsive) images in django? >

Re: Making a field Read-Only in Django

2014-11-17 Thread Patrick Beeson
I believe you can set this via a built-in widget's attrs: somefield = forms.CharField( widget=forms.TextInput(attrs={'readonly':'readonly'})) On Monday, November 17, 2014 1:48:44 AM UTC-5, Frankline wrote: > > Hi all, > > I'm running Django 1.7 and Python 3.4. I'm trying to make the

Django Code: Add context to trans blocks

2014-08-29 Thread Patrick Robertson
Hi all, Do you have any 'best practices' for translating Django? It's just come to my attention that in a couple of places, it would be good to add some context to certain translations. I just thought I'd ask to see if you've discussed it before A good example is the word 'Save' used in the

Re: NameError at /admin/ name 'HoleImage' is not defined

2014-06-11 Thread Patrick C
-Original Message- > >From: django...@googlegroups.com > >[mailto:django...@googlegroups.com ] On Behalf Of Patrick C > >Sent: Thursday, June 12, 2014 12:52 AM > >To: django...@googlegroups.com > >Subject: Re: NameError at /admin/ name 'HoleImage' is not defined

Re: NameError at /admin/ name 'HoleImage' is not defined

2014-06-11 Thread Patrick C
re!" > > > >-Original Message- > >From: django...@googlegroups.com > >[mailto:django...@googlegroups.com ] On Behalf Of Patrick C > >Sent: Thursday, June 12, 2014 12:32 AM > >To: django...@googlegroups.com > >Cc: ilya.ka...@jetbrains.com

Re: NameError at /admin/ name 'HoleImage' is not defined

2014-06-11 Thread Patrick C
9:45:10 PM UTC+1, Jorge Andrés Vergara Ebratt wrote: > > When you import HoleImage don't remove Hole :) > On Jun 11, 2014 3:41 PM, "Patrick C" <patrick@gmail.com > > wrote: > >> Hi Jorge, >> >> Thanks for helping out - I understand that a

Re: NameError at /admin/ name 'HoleImage' is not defined

2014-06-11 Thread Patrick C
py you have > > from hotels.models import Hole > > Add HoleImage to that import > On Jun 11, 2014 3:19 PM, "Patrick C" <patrick@gmail.com > > wrote: > >> Hi All, >> >> New to Django / Python (coming from PHP). >> >> Trying to ma

Re: NameError at /admin/ name 'HoleImage' is not defined

2014-06-11 Thread Patrick C
ango IDE) > http://www.jetbrains.com/pycharm/ > "Develop with pleasure!" > > > >-Original Message- > >From: django...@googlegroups.com > >[mailto:django...@googlegroups.com ] On Behalf Of Patrick C > >Sent: Thursday, June 12, 2014 12:19 AM

NameError at /admin/ name 'HoleImage' is not defined

2014-06-11 Thread Patrick C
Hi All, New to Django / Python (coming from PHP). Trying to make a site for a golf course where there is a hole by hole guide, each hole has a number, name, description then multiple images for the gallery. I've spend the last few hours googling how I'm going wrong here because I get the

Can't figure out how to attach file to email using EmailMessage

2014-02-21 Thread Patrick Beeson
Good morning y'all! I'm having a heck of a time figuring out what I'm doing wrong in attaching a file uploaded via a ModelForm to an email that's sent if the form is valid. Here's a link to my code on Stackoverflow:

Re: Implementation of a Search Engine. How??

2013-10-09 Thread Patrick Müssig
Hi, maybe is http://yacy.net/ what are you looking for. You can use Yacy as Searchengine and fetch over the yacy API the data. Yacy has also a good crawler to crawling webpages and indexing this pages. greetz Patrick Müssig 2013/10/9 Mithil Bhoras <mithilbhora...@gmail.com> > He

Re: pycharm constant error

2013-08-25 Thread Patrick Larmann
Hello, Thx Mike for the advice. Will do! On Sunday, August 25, 2013 12:09:13 AM UTC-4, Mike Dewhirst wrote: > > On 25/08/2013 1:21pm, Patrick Larmann wrote: > > Hello, > > Thanks for your response. I reinstalled it but am still getting the > > error. How would I do a

Re: pycharm constant error

2013-08-24 Thread Patrick Larmann
Hello, Thanks for your response. I reinstalled it but am still getting the error. How would I do a full revert? Thx! On Saturday, August 24, 2013 11:02:38 PM UTC-4, Mike Dewhirst wrote: > > On 25/08/2013 11:56am, Patrick Larmann wrote: > > Hello guys, > > I really appreciat

Re: Import Error: cannot import name timezone

2013-08-24 Thread Patrick Larmann
Thanks fixed it? On Saturday, August 24, 2013 5:45:47 PM UTC-4, Robin Lery wrote: > > It should be > 'from django.utils import timezone' > and not > 'from django.db.utils import timezone' > > > On Sun, Aug 25, 2013 at 2:58 AM, Patrick Larmann > <rails4pr...@gma

Help required using pre_fetched data in aggregate()

2013-08-24 Thread Patrick Joy
Hi all, Would appreciate some help on how to optimise the following piece of code. I have two models, "invoice" and "invoice item". The invoice total is calculated in invoice_total() by aggregation the sub_total and tax_total from all invoice_items (see code below). The problem I have is that

Overriding queryset for inline admin

2013-04-12 Thread Patrick Craston
instance (not the model!), as I need to filter my queryset based on that. Is it possible to get something like self.instance or obj (like in get_readonly_fields())? Hope this makes sense. Any help is much appreciated. Patrick -- You received this message because you are subscribed to the Google

RE: PostgresSQL or MySql with django?

2013-03-21 Thread Patrick Craston
I googled for an easy solution, but could not find anything except dbconvert for 100.00 On Wednesday, March 20, 2013 10:20:19 AM UTC-4, Patrick Craston wrote: Alternatively, I've found this tool works very well: https://pypi.python.org/pypi/py-mysql2pgsql (only thing to look out for

RE: PostgresSQL or MySql with django?

2013-03-20 Thread Patrick Craston
Alternatively, I've found this tool works very well: https://pypi.python.org/pypi/py-mysql2pgsql (only thing to look out for are Django IPAddressFields as they are char(15) fields in MySQL and inet fields in Postgres - py-mysql2pgsql is obviously not aware of this) HTH Patrick -Original

Request for comments on a new Open Source Paas platform for Django

2013-03-01 Thread Patrick
of the site and reload the application on every deployed Django machines. The bottom line here is that it's not simple to find out what a standard Django deployment (and is maintenance) looks like. That being said, I'm really looking forwards for you comments and suggestions. Patrick -- You

MySQL, manage.py and nvarchar

2013-02-01 Thread Patrick Loney
Hello, I'm just starting with Django and am trying to create a db table with nvarchar fields as opposed to varchar. I'm using MySQL and creating objects of type models.CharField() within my classes. Any ideas? Cheers, Patrick -- You received this message because you are subscribed

  1   2   3   4   5   6   >