Re: E-comm live project

2024-03-18 Thread Brian Odhiambo
WhatsApp +254721897768 On Mon, Mar 18, 2024, 20:25 1001_prabhjot Singh wrote: > so i am working on a full stack e-comm website and this project is really > very big for me because it's a live project am using django for backend > interested one's can send there number for WhatsApp group > > --

Re: Looking for collaborators for an online marketplace project with Python, Django, React.js and Next.js

2024-02-11 Thread Brian Odhiambo
Hello, I'm interested On Mon, Feb 12, 2024 at 10:18 AM Amen Guda wrote: > Hey I’m interested add me thank you add me 0944365493 > > On Sun, Feb 11, 2024 at 11:38 PM Jorge Bueno > wrote: > >> Thank you for your interest in contributing! Yes, you can fork my >> repository and then make the

Re: Project together

2023-12-07 Thread Brian Gitau
Also add me +254715790096 On Thu, Dec 7, 2023 at 11:51 AM Abdulrahman Abbas wrote: > I'm interested add me up 09020387775 > > On Thu, Nov 23, 2023, 19:13 Youssef Bachraoui > wrote: > >> Hi developer i search to make a group on WhatsApp to begin a project >> together anyone interested about

Redundant execution of tasks with Celery.

2023-10-24 Thread Brian Odhiambo
Hello everyone. I have scheduled tasks that get executed with Celery. On development, the scheduled tasks are executed only once. But in production, they're executed redundantly. I have my django application deployed on a private server. I've tried to examine what could be the cause of this

Re: Python

2023-08-31 Thread Brian Carey
It would be good to have a goal. What do you want to do? Website? Applications? Data Science? Machine Learning? The answer really depends on your purpose. ⁣Get BlueMail for Android ​ On Aug 31, 2023, 21:34, at 21:34, KHUSH DESAI wrote: >hey guys , I am a new to doing all of this as i just

Re: any any help me to solve below error in my django project

2023-08-07 Thread Brian Gitau
change the naming of the urls like for the login from "login" to something like "login_page" because you are causing a clash in the views.py code since you are importing login and your url name is the same rename the logout too hope that helps On Mon, Aug 7, 2023 at 2:40 PM AKHIL KORE

Setting Celery Config on Server

2023-08-05 Thread Brian Odhiambo
Hello, I'm using celery to automate some tasks in my django application. Following some tutorial online, I've done a .config setup for both celery worker and celery beat in this directory on my server: /etc/supervisor/conf.d/. However, when I reload the supervisor service, I get 502 Bad Gateway

Re: final project in django - help

2023-07-16 Thread Brian Carey
A little more information please. What can't you do and what errors do you get? ⁣Get BlueMail for Android ​ On Jul 16, 2023, 03:47, at 03:47, Alexandru - Gabriel Ionicescu wrote: >Hello, > >who can help me with the final project in django? in a week I have to >hand >it over and I got into

Re: Looking for a Learning Buddy

2023-06-16 Thread Brian Carey
Hi John. For ML and python you'd probably get more responses from the Pytorch community. https://discuss.pytorch.org/ Good luck. ⁣Get BlueMail for Android ​ On Jun 16, 2023, 16:00, at 16:00, John Ayodele wrote: >Hi! It's John. > >I am currently looking for a learning buddy, for Machine

Re: dynamic django tables

2023-05-21 Thread Brian Gitau
dynamic_model = type(table_name, (models.Model,), >> dynamic_model_attrs) >> >> # Create the database table for the dynamic model >> with connection.schema_editor() as schema_editor: >> schema_editor.create_model(dynamic_model) >> >> # Regi

Re: dynamic django tables

2023-05-19 Thread Brian Gitau
which code do you have or you want the code example explaining everything? On Fri, May 19, 2023 at 3:59 PM Helly Modi wrote: > How to create dynamic models in django rest framework? > > Is there any chance to create dynamic models with APIs > > > > Any examples please send me thanks in

Re: django windows authentication

2023-05-19 Thread Brian Gitau
Hello! Windows authentication is a method of authenticating users based on their Windows credentials. It allows users to log in to a system using their Windows username and password, eliminating the need for separate authentication mechanisms. In Django, you can integrate Windows authentication

Re: i am getting this error when i try to search in admin panel

2023-05-18 Thread Brian Gitau
The issue lies in specifying ForeignKey fields (state, district, and taluka) within the search_fields. ForeignKey fields cannot be searched using 'icontains' because it requires a direct string comparison. Instead, you can search based on the related field's attributes. To resolve the error, you

Re: Difficulty Rendering a Form

2023-05-18 Thread Brian Gitau
create a forms.py file add into the file import from django.forms import ModelForm from .models import * #the asterisk means you are importing everything from the models class name_of_form(models.ModelForm): class Meta: model = your_model fields='__all__'

Re: Navbar

2023-05-18 Thread Brian Gitau
atleast give us your code sample On Thu, May 18, 2023 at 9:13 AM Michael Edet wrote: > Please help > > On Sun, 14 May 2023, 18:17 Michael Edet, wrote: > >> I have been having issues with my navbar and I'm using bootstrap >> >> The first one is what I want >> The second one is my outcome >>

Re: i need to learn more on django

2023-05-11 Thread Brian Gitau
also youtube will go a long way if you can't understand the documentation that well i suggest you watch and code along with dennis ivy https://www.youtube.com/@DennisIvy On Fri, May 5, 2023 at 7:48 PM Naomi Gentle-idyee wrote: > i just got started on django and though it looks complicated, i

Re: Serving static files in production

2023-04-26 Thread Brian Odhiambo
t; that further. >> >> Regards, >> David >> >> On Thu, Apr 27, 2023 at 1:01 AM Brian Odhiambo < >> brianodhiambo...@gmail.com> wrote: >> >>> Hello everyone, >>> I am deploying a django project to a dedicated server. >>>

Re: Serving static files in production

2023-04-26 Thread Brian Odhiambo
flexible >> besides. I would solve the above - which should work - before investigating >> that further. >> >> Regards, >> David >> >> On Thu, Apr 27, 2023 at 1:01 AM Brian Odhiambo < >> brianodhiambo...@gmail.com> wrote: >> >>>

Re: Is programming in Django intellectually satisfactory

2023-04-26 Thread Brian Carey
If you want intellectual stimulation start with vanilla python or js. If you want to learn a framework. This is purely subjective. Either way I don't know how you'd do it without reading or a full-time tutor. If you find it too tiresome then maybe a little introspection is in order. ⁣Get

Serving static files in production

2023-04-26 Thread Brian Odhiambo
Hello everyone, I am deploying a django project to a dedicated server. I have set nginx to find static files in this file "staticfiles". This is the setting in settings.py file: STATIC_ROOT = BASE_DIR / 'staticfiles' STATIC_URL = 'static/' After running collectstatic command, my project can't

Re: Spies in California and America

2023-03-28 Thread Brian Carey
What the hell!? Don't spam the Django channel with your propaganda. ⁣Get BlueMail for Android ​ On Mar 28, 2023, 5:14 PM, at 5:14 PM, Michael Starr wrote: >So does anyone have an update on the police state and spying of >Democrat >Ukrainians in America yet? > >Michael > >-- >You received

Re: Migration of tables from external database to new database

2023-03-21 Thread Brian Carey
mysqldump can be used to extract the table(s) from the old database. This creates a file with the SQL statements to recreate the table which can be read into into the new database with mysql command. As long as you are going from a MySQL DB to another this will work fine. If you are moving from

Re: sub-list not showing

2023-03-16 Thread Brian Carey
A quick glance: In your temple for loop you have 'student_set' in the conditional and  'students_set' in the loop. That doesn't seem right. ⁣Get BlueMail for Android ​ On Mar 16, 2023, 9:01 PM, at 9:01 PM, nef wrote: >Hi Daniel, >Thanks for your feedback. >Please, is there anyone who can

Re: Stuck with Django Tutorial Part 4

2023-03-14 Thread Brian Carey
I think you need to check your urls.py. ⁣Get BlueMail for Android ​ On Mar 14, 2023, 1:33 PM, at 1:33 PM, Nithin Kumar wrote: >question.id or question_id both gave the same result. >These are the views. > >from django.shortcuts import get_object_or_404, render >from django.http import

Re: Server error no httpresponse implementing htmx active search

2022-12-09 Thread Brian
ent %} ``` On Friday, December 9, 2022 at 4:15:46 PM UTC-7 Ryan Nowakowski wrote: > > > On December 9, 2022 12:10:23 PM CST, Brian wrote: > >``` > >ValueError: The view Striker.views.search_player didn't return an > >HttpResponse object. It returned None instead.

Server error no httpresponse implementing htmx active search

2022-12-09 Thread Brian
I'm trying to implement the active search functionality with htmx but am getting a server error. I'd really appreciate any help on this. Googling the problem resulted in people either not using return before render or an indentation problem. I've checked these. Thanks in advance, Brian

psycopg 3 - getting attributeError

2022-11-04 Thread Brian Nabusiu
[image: attribute_error.png]Hello, I wanted to migrate my app to using psycopg 3. However, I got an error that insists using psycopg2, even when it was not installed in venv. So I decided to ammend some django code as illustrated by the inventor of psycopg3. However, 1. django complained

Re: Mpesa integration.

2022-09-06 Thread Brian Odhiambo
Hello, @onjombafel...@gmail.com, seems the repo you share isn't public. Can you please make it, or add me to it if you don't mind. Thank you. On Tue, Sep 6, 2022 at 4:16 PM Onjomba Felix wrote: > Yeah > > On Tue, 6 Sept 2022 at 13:15, Lutalo Bbosa joseph > wrote: > >> Flutterwave gives

Re: Job -Fullstack python expert ( Django framework)

2022-08-19 Thread Brian Odhiambo
I'm interested. On Thu, Aug 18, 2022, 22:03 Each1Teach1 wrote: > This project is very straight to the point. We are building a micro > service on top of Django framework. We currently have a virtual private > cloud on DO and will like to migrate to AWS in the nearest future. This > hosts our

Re: multiplate table inheritance subclass with extra OneToOneField relationship to parent class

2020-07-20 Thread Brian Maissy
I'm still using the workaround I mentioned above -- 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 this

Power BI integration with django

2019-11-27 Thread Brian
Does anyone know how to integrate a Power BI dashboard with a web page, without the user having to log in to the power BI account -- 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,

Re: Username as email

2019-11-23 Thread 'Maher, Brian' via Django users
I maintain one project which does this with a save hook on the User model, setting the username to the email address field (with uniqueness tests, of course). It’s crude, but seems to work well and hasn’t given any problems. — Best Regards, Brian Maher Senior Research Software Engineer

Re: Expire Password Reset Link

2019-10-23 Thread 'Maher, Brian' via Django users
— Best Regards, Brian Maher Senior Research Software Engineer & Systems Administrator King’s Digital Lab VWB, 2nd Floor, Room 2.50, Strand Campus Work: 0207 848 0511 Mobile: 07714 285086 Voip: ‭01702 667471‬ On 23 Oct 2019, at 15:10, Nelson Varela mailto:nelson.c.var...@gmail.com>> wrote:

multiplate table inheritance subclass with extra OneToOneField relationship to parent class

2019-10-17 Thread Brian Maissy
I have a model which essentially boils down to this: class Person(models.Model): name = models.TextField() class MarriedMan(Person): wife = models.OneToOneField(Person, on_delete=models.CASCADE, related_name='husband') But when I try to make the

Multiple table inheritance subclass with an additional OneToOneField relationship to the parent class

2019-10-17 Thread Brian Maissy
I have a model which in essence boils down to this: class Person(models.Model): name = models.TextField() class MarriedMan(Person): wife = models.OneToOneField(Person, on_delete=models.CASCADE, related_name='husband') But when I try to generate the

Re: Django 3.0 alpha 1 released

2019-09-10 Thread Brian M
On Tue, Sep 10, 2019, 5:30 AM Carlton Gibson wrote: > We've made the first release on the way to Django's next major > release, Django 3.0! > > With about two and a half months until the > final release (scheduled for December 2nd), we'll need timely testing > from the community to ensure an

Re: nginx server to apache

2019-08-15 Thread 'Maher, Brian' via Django users
Yes, certainly! You can run Django apps under apache using mod_wsgi. There’s an example configuration here: https://docs.djangoproject.com/en/2.2/howto/deployment/wsgi/modwsgi/ Best Brian — Best Regards, Brian Maher On 15 Aug 2019, at 09:17, gopi p mailto:gopi.s...@gmail.com>> wrot

Django Model form not saving items to database

2019-07-01 Thread brian
Model class Products(models.Model): UNIT = ( ('whole', 'whole unit'), ('item', 'per single item'), ) # category = models.ForeignKey(Category, related_name='products', on_delete=models.CASCADE) ProductName = models.CharField(max_length=255) user =

django form not saving items to database

2019-07-01 Thread brian
model class Products(models.Model): UNIT = ( ('whole', 'whole unit'), ('item', 'per single item'), ) # category = models.ForeignKey(Category, related_name='products', on_delete=models.CASCADE) ProductName = models.CharField(max_length=255) user =

Re: Accessing data from a 30 GB file in json format

2019-07-01 Thread Brian Mcnabola
https://stackoverflow.com/questions/2396238/memory-error-due-to-the-huge-input-file-size Just iterate the file do whatever operations you want on the file. https://towardsdatascience.com/python-basics-iteration-and-looping-6ca63b30835c On Monday, July 1, 2019 at 11:07:39 AM UTC+1, Nibil Ashraf

Unauthenticated onetime url to edit a form.

2019-07-01 Thread Brian Mcnabola
*Context: * I have a booking app that is managed over the phone by an admin. the callers/client's details are stored in a Client model and then related to a Booking model when a booking is made. *Problem*: I want the client to have access to edit their booking without having to be a user in

Unauthenticated one time edit form/url

2019-07-01 Thread Brian Mcnabola
Context: I have a booking system which is in a call centre. Clients call in and give their details (name address phone email) these details are stored in a Client Model When they make a booking over the phone it is associated to the entry in the Booking Model. Problem: I'd like to add a form

Feature Request: set default model primary key to UUID or something else for entire project

2019-06-28 Thread Brian Carter
I am aware that I can specify any model's primary key by adding that kwarg to a field within the model. I currently do this with most my models, using UUIDField as the primary key: class MyModel(models.Model): id = models.UUIDField(primary_key=True, default=uuid.uuid4, editable=False)

Re: Storing HTML in DB using DJANGO

2019-04-21 Thread Brian M
What if you convert the html to an array of bytes before storing? Then you’d convert from bytes array back to string when you retrieve. This way you’d store raw data. > On Apr 21, 2019, at 8:41 AM, Jani Tiainen wrote: > > Well after all, HTML is just plain text... Though you probably want

Django reporting Library recommendations

2019-04-16 Thread Brian Mcnabola
Im looking for a Django reporting library something similar to Django report builder ? -- 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 Admin Redesign

2018-11-13 Thread brian hopkins
You can override them check out this page in the docs https://docs.djangoproject.com/en/2.1/ref/contrib/admin/ Sent from my iPhone > On Nov 12, 2018, at 9:14 PM, Phako Perez <13.phak...@gmail.com> wrote: > > If I remember correctly you can define your own templates under the template >

add users to google group django

2017-06-30 Thread Brian Lee
I have a quick question about handling email updates using Django. My organization uses a Google Group to send mass emails to those added to the email list, and I was looking to add a 'sign up' widget to the footer of the website (It's a non-buisness Google Group). Is it possible to utilize

Re: F() expression in the math.atan function. "a float is required"

2017-06-17 Thread Brian Risselada
Nevermind, I figured it out. Instead of math.arctan, I used Func() with function='ATAN'. -- 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: F() expression in the math.atan function. "a float is required"

2017-06-17 Thread Brian Risselada
On further investigation and thoughts, I think I may need to replace math.atan with some kind of django query expression function that will allow the arc-tangent to be calculated within a query expression. Does one already exist? -- You received this message because you are subscribed to the

F() expression in the math.atan function. "a float is required"

2017-06-17 Thread Brian Risselada
I am trying to run a query that uses an expression wrapper. Within this wrapper I'm calling the math.atan function, and within that function I'm calling an F() expression. The F() expression is getting data with a DecimalField datatype. I'm getting an error stating that "a float is required".

Can the Django PostgreSQL module support Chinese search?

2017-06-07 Thread brian
I am the most I use a misago forum, set Chinese language, use the search function, did not return any data, the data is actually, I asked my Misago team, said they are using Django full text retrieval module, let me ask Django team, so that someone can help me? -- You received this message

can django support chinese search?

2017-06-04 Thread brian
today i use a forum as Misago,and i set language use chinese,but when i search chinese chart, Misago can't response anything ,so,i emailed to Misago manager team,and them asked me,text search use django search module,so, i think may i can get help at here -- You received this message because

Re: django channels group subscriptions

2017-06-01 Thread Brian May
On Friday, 2 June 2017 14:08:40 UTC+10, Andrew Godwin wrote: > > I don't have any direct examples to hand - and this sort of thing does > come all the time, but much like Django is not in the business of including > a full CMS, Channels can't add lots of high-level features without really >

Re: django channels group subscriptions

2017-06-01 Thread Brian May
On Friday, 2 June 2017 13:04:48 UTC+10, Andrew Godwin wrote: > > You can't do what you ask with the current Groups system - it is > deliberately very simple as anything more complex involves picking scaling > tradeoffs that are particular to the thing it's powering. You'll have to > layer some

django channels group subscriptions

2017-06-01 Thread Brian May
Hello, I would like to be able to create a Django Channels group such that: 1. Websockets can can subscribe and unsubscribe (or disappear) to group that the client specifies. 2. When the first client subscribes to a group, it starts some process (e.g. via celery task) that feeds

Re: Issues saving hex format data to binaryfield

2017-02-22 Thread Brian O'Connell
The database is pre-existing and I'm creating a Django web interface for it. This object holds the 8-digit hex output of the unique mfr identifier of the MiFare rfids. There are remote terminals that interact with database through psycopg2 and have no issue with that field. I could change the

Re: Issues saving hex format data to binaryfield

2017-02-22 Thread Brian O'Connell
(Standard PostgreSQL escape format): E\xa343c5ea E\x52577ade Any help would be appreciated. Thanks, Brian On Wednesday, February 22, 2017 at 2:19:14 PM UTC-5, ludovic coues wrote: > > Can't you use django's BinaryField ? > > 2017-02-22 20:09 GMT+01:00 Shawn Milochik <shawn...

Issues saving hex format data to binaryfield

2017-02-22 Thread Brian O'Connell
in a PostgreSQL database? Thanks, Brian -- 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,

Re: Advise for first project in Django

2017-01-02 Thread Brian Witte
Welcome to Django! Getting a web site to work can be very hard. Even if you know django, there are many other services you need, too: a database, testing, a webserver, etc. This tutorial is one of the best I have seen: http://www.marinamele.com/taskbuster-django-tutorial On Friday, December

Re: Serving external files with Django

2017-01-02 Thread Brian Witte
Hi Priyesh, Do you know what volume of files you expect to serve? The answer to this question will be different depending on where the files are hosted. If you expect a low volume of downloads, it might be easiest to just host the files on dropbox or even served from your own db. If you

Re: LoginRequiredMixin ignored

2016-06-15 Thread Brian Schott
Try swapping class order. Sent from my iPhone > On Jun 15, 2016, at 6:55 PM, Lee Hinde wrote: > > Using Django 1.9.7. > I have the following class: > class AddView(LoginRequiredMixin, CreateView): > template_name = "entry.html" > model = Property > form_class =

Re: Python on the web

2016-03-07 Thread Brian Schott
Dude. Try django gigs.com or freelance.com Sent from my iPhone > On Mar 7, 2016, at 11:11 AM, Bob Gailer wrote: > > > On Mar 7, 2016 10:51 AM, "Gregg Turner" wrote: > > > > Hey, > > > > Need a simple python script put into a website. It uses the

Re: staticfiles ManifestStaticFilesStorage and Form Media

2015-12-07 Thread Brian Neal
Thank you Denis. I will keep my eye on this ticket: https://code.djangoproject.com/ticket/21221 Best, BN On Monday, December 7, 2015 at 12:42:23 AM UTC-6, Denis Cornehl wrote: > > Hi Brian, > > a sidenote, this will be fixed: > https://github.com/django/django/pull/5571

staticfiles ManifestStaticFilesStorage and Form Media

2015-12-06 Thread Brian Neal
I'm investigating using staticfiles ManifestStaticFilesStorage. Unless I'm missing something, there seems to be a hole with Django forms Media class. If you use an inner Media class you do not get the hashed versions of the assets filenames. This leads me to believe you can't use the Forms

Re: How to share apps between projects?

2015-03-21 Thread Brian Schott
You can add an ssh git path http://stackoverflow.com/questions/4830856/is-it-possible-to-use-pip-to-install-a-package-from-a-private-github-repository Sent from my iPhone > On Mar 21, 2015, at 8:50 AM, ThomasTheDjangoFan > wrote: > > Hi guys, > > I

Any Django developers in Chicago?

2015-02-11 Thread Brian Ray
Hey all, We are having a Django focused meetup with ChiPy (Chicago Python User Group) tomorrow night: RSVP http://chipy.org and/or http://www.meetup.com/_ChiPy_/events/220117890/ Talks will be recorded. Also looking for more talks. Hope to see some of you there. Warm Regards, Brian Ray

Re: Django and SSL

2014-12-10 Thread Brian Schott
orn-docs.readthedocs.org/en/latest/settings.html#ssl> Brian Schott bfsch...@gmail.com > On Dec 10, 2014, at 11:55 AM, pythonista <software.by.pyt...@gmail.com> wrote: > > I am getting a request from the security infrastructure and I could use some > advice/recommendatio

Re: Alternative to fabric

2014-11-17 Thread Brian Schott
Ansible is a good choice. Sent from my iPhone > On Nov 17, 2014, at 11:07 AM, Cal Leeming [iops.io] wrote: > > There isn't really such a thing as a "deployment plugin", there are many > aspects to deployment workflow that should be considered. > > It really depends on how you

Re: Django authentication by email

2014-05-15 Thread Brian Schott
Django-allauthhttps://github.com/pennersr/django-allauth — Sent from Mailbox On Thu, May 15, 2014 at 7:58 AM, Frankline wrote: > Hi all, > I am thinking of developing a web application where users will have to > login by their email address instead of using their usernames.

Re: Polymorphic Inheritance

2014-05-13 Thread Brian Schott
. There is a good book called "Two Scoops of Django", which recommends avoiding premature database optimization. Unless you've identified this is the long pole in your tent, you are probably better off focusing on other optimizations such as installing memcached. Brian Schott bfsch...

Re: User Profiles "user.get_profile()" returns 'matching query does not exist.'

2014-03-28 Thread Brian Sanchez
try: except: it worked thank you!! On Saturday, September 20, 2008 9:14:42 PM UTC-4, Paddy Joy wrote: > > The error message is telling you that the user has no profile > (Specifically there is no record in the table schedule.profile related > to the user). > > Your app needs to take care of

Customize Admin Advice

2014-02-02 Thread brian
thought about is storing the filter parameters in the url and the current model number. Another thing I thought about is storing the results in database and recalling it. Brian -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubs

Re: django collectstatic

2013-12-12 Thread Brian Schott
The best way to get help is to paste the errors into a gist (https://gist.github.com) or similar service and post the link. Redact anything that looks like a key or password :-). Brian Schott bfsch...@gmail.com On Dec 12, 2013, at 6:24 AM, kodali srinath chowdary <ksrinathcho

Re: Streaming images with HttpResponse?

2013-11-18 Thread Brian Schott
What are you trying to do?  Typical approach would be to use Javascript to pull the images.  Take a look at dajaxice.   — Sent from Mailbox for iPhone On Mon, Nov 18, 2013 at 1:57 PM, Alex Karargyris wrote: > So thanks to Simon I was able to make this work. Here is the

ImproperlyConfigured DJANGO_SETTINGS_MODULE error when migrating from 1.5.1 to 1.6

2013-11-08 Thread Brian DeWeese
the wsgi. But with 1.6 it does get referenced and therefore raises an ImproperlyConfigured error. Does anyone have any suggestions to help fix this issue? Is there anyway I can get the settings module to load before the wsgi module? Brian DeWeese -- apache.conf -- WSGIScriptAlias / /opt/ecn

slice QuerySet and keep as QuerySet

2013-10-31 Thread brian
*How do I slice a QuerySet and keep it as a QuerySet* *If I do* * a = qs[:3]* *then I get a list back. I want a QuerySet. * *I'm wanting to get the first x items in the query set and the last x items in the query set.* -- You received this message because you are subscribed to the

Re: Django 1.5 tutorial, part 1

2013-10-12 Thread Brian Schott
Polls not pools? — Sent from Mailbox for iPhone On Sat, Oct 12, 2013 at 12:58 PM, Enrico Battiston wrote: > Hi, i'm a first time user and i'm experiencing an error in the first part > of the django 1.5 tutorial. > At the "Activating models" paragraph when i execute

integrity error with transaction middleware, django 1.3

2013-09-10 Thread Brian Craft
I'm getting duplicate entry integrity errors when saving an object, with transaction middleware enabled in django 1.3. I thought the point of the middleware was to rollback transaction errors and retry the view. Why would I be getting this error? The db is mysql. The save code looks like this:

Meta class ordering by related field in ManyToMany model?

2013-09-09 Thread Brian
I'm setting up a database for data related to sporting event stats. My database has a Game model, which is linked to a TeamGame model (stats related specifically to each team that played in that game). These two models are linked as ManyToMany, as we're going to have multiple games and each

Connection Reset by Peer (104) on POST submission

2013-09-04 Thread Brian Henning
I am trying to deploy my Django site. On my development environment using runserver, everything works perfectly. After deploying to production with Apache and Passenger WSGI on a shared hosting environment, the majority of the site works correctly. However, I am having one issue that I am

Single form displayed multiple times on one page with different values.

2013-08-25 Thread Brian Millham
is clicked. (they are hidden until the link is clicked) And I'm avoiding the use of the javascript virus :-D Thanks for any pointers! Brian -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop

Re: MySQL manage.py dbshell throwing error unknown variable 'character-set-server=utf8'

2013-08-24 Thread Brian Lee
[mysqld_safe]; syslog On Saturday, August 24, 2013 7:06:28 PM UTC-4, tom wrote: > > On Saturday, 24 August 2013, Brian Lee wrote: > >> So, my website, involving lots of database calls, works perfectly fine, >> even after a reboot. >> >> However, attempting to con

MySQL manage.py dbshell throwing error unknown variable 'character-set-server=utf8'

2013-08-24 Thread Brian Lee
So, my website, involving lots of database calls, works perfectly fine, even after a reboot. However, attempting to connect directly via dbshell results in this error: $ ./manage.py dbshell mysql: unknown variable 'character-set-server=utf8' Attempting to figure out my version of mysql also

Re: Django Periodic tasks

2013-08-16 Thread Brian Schott
Also, load the page with a busy animated gif and use something like dajaxice to fetch and replace the computed value.  Several examples and libraries out ther. — Sent from Mailbox for iPad On Fri, Aug 16, 2013 at 11:22 PM, Some Developer wrote: > On 17/08/13

Re: django-popup-forms

2013-08-15 Thread Brian Millham
5, 2013 at 2:41 AM, Brian Millham <bmil...@gmail.com > > wrote: > >> I've been trying to use django-popup-forms, but with no success. Has >> anyone used this? >> >> I suspect that I didn't install it correctly. I just ran sudo python >> setup.py install, but

Re: is it possible to use REST API with HTML within Django?

2013-08-15 Thread Brian Schott
calling AJAX from inside the browser, I recommend you check out: http://www.dajaxproject.com There are other tools, but it makes life easier. Brian Schott bfsch...@gmail.com On Aug 15, 2013, at 12:27 PM, evh <naw...@nc.rr.com> wrote: > Hi, > > I am having trouble getting REST

django-popup-forms

2013-08-14 Thread Brian Millham
for. It's a shame that the documentation with it doesn't show how to properly install it, and has no working examples with it. Brian -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails fro

Re: installing RemoteUserMiddleware causes errors

2013-07-29 Thread Brian Tingle
code.djangoproject.com is back up now; seems like I bumping up against this three year old bug that has not been updated in 19 months: https://code.djangoproject.com/ticket/13394 Any advice on how to handle this? Do I need to re-write all the tests? Does this mean RemoteUserMiddleware is not

installing RemoteUserMiddleware causes errors

2013-07-29 Thread Brian Tingle
I keep getting 504 gateway timeout errors on http://code.djangoproject.com/ so I can't look through the tickets for this. There are some threads on this list that seem like they might be related; but I can't tell because they link to code.djangoproject.com which I can't get to. I tried to

Re: How to force modelForm.is_valid() to use a specific database?

2013-07-23 Thread Brian Millham
I've done that with this code: if form.is_valid(): > f = form.save(commit = False) > f.save(using='yourdatabase') Works fine for me. On Tuesday, July 23, 2013 1:21:29 PM UTC-4, Fellipe Henrique wrote: > > I have many database setted in my setting.py in my formModel, when I try > to

Foreign Key problems with legacy database

2013-07-22 Thread Brian Millham
I have the following models: class Requestlist(models.Model): >id = models.IntegerField(primary_key=True) >songid = models.Integerfield() >song = ForeignKey('Song', db_column='songid') > class Song(models.Model): > id = models.IntegerField(primary_key=True) > title =

Foreign key problems with legacy database

2013-07-22 Thread Brian Millham
I have these 2 models: class Requestlist(model.Model): -- 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

Re: dear someone,

2013-07-22 Thread Brian Schott
NAME (path to a database file) should include the filename, not just a directory. Try './mysite/mysite.db' for NAME. Brian On Jul 22, 2013, at 1:44 PM, Stian Sjøli <stianhot...@gmail.com> wrote: > I am trying to start up with django using the tutorial on the website. I get > t

Re: a bit confused about projects/apps

2013-07-17 Thread Brian Schott
rebranded copies, so we have multiple project directories in our code tree, but each server is just one project. Don't forget, there are global things like user authentication you don't want to have a user have to login separately to go to blog.example.com from www.example.com. Brian On Jul

Re: On live site, DatabaseError tables not found; dbshell shows tables but apache can't find the database?

2013-06-08 Thread Brian Lee
Seems like it was a path issue. I put in the full path to the sqlite3 database file in my database settings, and it works now. For future reference - how is ./manage.py's path set up, and how apache's wsgi path is set up? Thanks, Brian On Saturday, June 8, 2013 3:10:26 PM UTC-4, Jason Arnst

How to Keep Foreign Keys from updating

2013-06-08 Thread Brian Williams
know of a good way to do it? Thanks Brian -- 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 g

Keep Foreign Keys From Changing After Being Set

2013-06-08 Thread Brian Williams
So I have a model that looks somewhat like this: class ProductInfo(models.Model): manufacturer = models.ForeignKey product_type = models.ForeignKey product_name = models.ForeignKey sku = models.CharField(() -- You received this message because you are subscribed to the

Re: On live site, DatabaseError tables not found; dbshell shows tables but apache can't find the database?

2013-06-08 Thread Brian Lee
cloned the database file along with the rest of the project from github at the start. (this process has worked for me before on other machines.) Thanks, Brian On Saturday, June 8, 2013 11:12:21 AM UTC-4, Sergiy Khohlov wrote: > > looks like you are using other settings.py for .wsgi

On live site, DatabaseError tables not found; dbshell shows tables but apache can't find the database?

2013-06-08 Thread Brian Lee
the page needed. However, when I do ./manage.py dbshell, all of my tables are there! Does anybody know why this sort of error might be happening? Thanks, Brian -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from

Scripts to update Django tables

2013-05-29 Thread Brian
I'm new to Django (and frameworks in general) and having an issue with a project I'm working on. Basically, I want to scrape data from a sports league website on a regular schedule and add updated stats into my database. All of the Django tutorials for models I've looked at seem to give me

  1   2   3   4   5   6   7   8   9   10   >