Re: Cpanel Upload

2024-10-25 Thread Aatish G Nair
ython app it automatically generate a passenger_wsgi in > the project folder. I tried following various tutorials online but they are > limited and none of them worked for me. > > On Fri, 25 Oct 2024 at 19:17, Aatish G Nair wrote: > >> Yes, I’ve used cPanel deployments. A 500

Re: Cpanel Upload

2024-10-25 Thread Aatish G Nair
Yes, I’ve used cPanel deployments. A 500 error usually happens because of: Please check allowed host , collect static WSGI Path kindly Ensure the WSGI file has the correct Django project path. Let me know if any of these solve it! If not please check with debug= true. Possible some error in th

Accessing Data Linked in One-To-One to Current User from a Table

2023-01-05 Thread G Daniel
Hello All! I need your help. I have a table, PersonWife, that's linked in a one-to-one fashion with the users (using Django's user authentication system). See attached models and admin control panel screenshots. I can get the username of the currently logged in user ( attached screenshots). W

enumerate login in django

2022-08-31 Thread Dilja E G
how to create a function to login with user nam e. if user name and password is already exist, but want to login with user for super user. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails

auto complete djangofilter

2022-02-09 Thread Dilja E G
class PlayerFilter(django_filters.FilterSet): name = django_filters.ModelChoiceFilter(label='Name' ,queryset=Player.objects.all()) team__name = django_filters.ModelChoiceFilter(label='Team',queryset=Team.objects.all() ) team__game__name = django_filters.ModelChoiceFilter(label='Game',queryset=Ga

django-admin-autocomplete-filter

2022-02-09 Thread Dilja E G
How to add django-admin-autocomplete-filter ? in my django filtter? -- 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

How to add new data column using python script

2021-08-07 Thread Harsha Priya G
Hi Devs, How to add an additional new column named lat and long and put its data to it using python tool and clean up the data as the data are overflowing to next row for particular sno. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubsc

IRC Archive

2021-06-01 Thread Douglas G
Hey, with the change from Freenode to Libera I was wondering if anyone had preserved Freenode IRC logs and made those available somewhere. Thanks, Douglas -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop

django app with okta authentication --

2021-06-01 Thread SNJY G
Team, I am running an application on django2.2 which needs to be integrated with okta for user authentication. Okta team has provided a Metadata URL which contains Okta URL, Okta Entity ID and Okta certificate but I am not sure where I need to configure it in django. Could someone please share step

Re: Assistance for deploying django app to heroku

2021-04-23 Thread Sujayeendra G
foreign key constraint > "books_book_user_id_4b809191_fk_auth_user_id" > DETAIL: Key (user_id)=(1) is not present in table "auth_user". > > I have done the following: rm -f db.sqlite3 > run python manage.py makemigrations > run python manage.py migrate > I had

Re: Assistance for deploying django app to heroku

2021-04-23 Thread Sujayeendra G
Hi, You can see IntegrityError: fixtures you are updating trying to find user with user_id=1 which are not available in your db. Try to create one user and migrate again. Or if the App is still in the development stage. Delete DB and migrate again. It may work. Thank you Regards Sujay On Fri,

Re: Required Django & React Full Stack Developer.

2021-03-14 Thread Sujayeendra G
😉👍 Sent from Sujay’s iPhone > On 14-Mar-2021, at 3:22 PM, Kunal Solanke wrote: > >  > Did you forget to mention stipend or what 😂😂😂 !! > Work from home is a perk? > > ps:Not interested coz i don't match the criterion.😂😂. > >> On Sun, Mar 14, 2021,

Required Django & React Full Stack Developer.

2021-03-14 Thread Sujayeendra G
Dear Friends. I'm in the requirement of a full time developer for an ongoing E-commerce project. who is able to handle Django for backend and React Native for Mobile app. Kindly find the below Job description and interested people can ping me. Job description - Fluent in Python/Django. -

Please provide me tips or suggestion for below scenario:

2021-01-21 Thread Ravi G
Please provide me tips or suggestion for below scenario: In system 2 folders ( Visiting cards[ Images], Resumes [PDF, DOCX] ) Using Django, On the webpage, we have 2 buttons ( Visiting cards, Resumes). 1) Click on the Visiting cards button, show the table view or excel download. The view contain

Re: Ongoing project

2020-12-18 Thread Sujayeendra G
Hello Peter, I’m interested to join team. Sent from Sujay’s iPhone > On 18-Dec-2020, at 7:56 PM, sakshi jain wrote: > >  > plz make what's up grp > >> On Fri, Dec 18, 2020, 03:50 Onlyo wrote: >> still a bit of a junior, but I'm also interested >> >>> On Thu, Dec 17, 2020 at 11:05 PM Hesha

Re: Django/python free Training

2020-12-18 Thread Sujayeendra G
Hi Manucho, I’m interested to subscribe for your channel. I have a concept of building Lead Management in Python/Django. If you can able to teach CRM related course. It will be really useful for many of us. Thank you Regards Sujay Sent from Sujay’s iPhone > On 18-Dec-2020, at 8:48 PM, yashw

Re: How to connect django and React js but getting Error

2020-11-02 Thread Ravi G
Hi, How to move source code to production if code consists of images If anyone has any document related to production . please share me On Tue, Oct 27, 2020 at 6:57 PM Алмаз Есеньязов wrote: > You need to write > BASE_DIR / 'build' > not > '/build/' > > пн, 26 окт. 2020 г., 15:55 Vineeth : > >

Re: def__str__(self) not working properly

2020-08-25 Thread Aginjith G J
0 Do this. def __repr__ (self): return self.title restart the shell/session. then check. i had this issue. only after restarting the section it worked On Sunday, 16 September 2018 at 17:14:18 UTC+5:30 Daniel Herrera wrote: > I was having th

Re: Digest for django-users@googlegroups.com - 16 updates in 8 topics

2020-08-22 Thread 'Narendra G O 19BCE1082' via Django users
Hey, My number is mentioned below. Please give me your number I’ll add you in our slack/ Zoho workspace . G O Narendra 19BCE1082 B.Tech CSE VIT University, Chennai +91 80720 14549 > On 22-Aug-2020, at 6:32 PM, django-users@googlegroups.com wrote: > >  > django-users@goog

how source code is deployed inproduction

2020-07-29 Thread Ravi G
anyone can explain me how to code is deployed in production and which server they used -- 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...@

Re: Django Whats app group

2020-07-27 Thread Ravi G
hi group, please add my number 9963200010 in the group On Mon, Jul 27, 2020 at 2:46 AM Vishnu Bhandari wrote: > Hi Folks, > Decided to make a whats app group of all django users (aspiring and > expert) for sharing problem and asnwers. > Request you all, please ping me om +919561879917... > Or u

Re: Why is "Hello World!" alternating with Django welcome page after following tutorial?

2020-05-30 Thread Thomas G. McNeill
Well, never mind. I changed some stuff, and then I changed it all back, as far as I know. But now it is working correctly. I have no idea what I changed. On Saturday, May 30, 2020 at 5:41:52 PM UTC-6, Thomas G. McNeill wrote: > > I just followed this tutorial to create the simplest po

Why is "Hello World!" alternating with Django welcome page after following tutorial?

2020-05-30 Thread Thomas G. McNeill
I just followed this tutorial to create the simplest possible Django application: https://aws.amazon.com/getting-started/hands-on/deploy-python-application/ I used *campaign* instead of *tutorial* and *app* instead of *hello_world* because I intend to transform the tutorial into a simple produ

Error with filter queryset

2020-02-09 Thread Chuck G. Madamombe
Hello, I want to filter data in the database to retrieve only those tasks with status='In progress'. I have used the filter queryset, but am getting an error. Please help. *Here is my view (Filter tasks by their status):* def tasks_in_progress(request): tasks = Task.objects.filter(Status='

Re: Python Django Training

2020-02-06 Thread Raj G. A
Hi I am interested to attend the python and Django online training. Please add me as well for the training classes. Thanks in advance. On Saturday, 1 February 2020 19:12:52 UTC+5:30, Srikanth K wrote: > > Hi, > > I am from Hyderabad. I am Python Developer by Profession. I am eager take > up an

Re: Django Application logging --

2019-07-23 Thread SNJY G
; You can enhance the log message to your needs. > > Cheers > > Am 22.07.19 um 19:27 schrieb SNJY G: > > Hello Django Experts, > > There is Django application which uses LDAP in middleware for user > > authentication. > > I need to record user login and logout time. For t

Django Application logging --

2019-07-22 Thread SNJY G
Hello Django Experts, There is Django application which uses LDAP in middleware for user authentication. I need to record user login and logout time. For that purpose, I think of a basic flow as per following details - Create new model for logging Make a function in views.py which will add the logi

Django FormView, Return without redirecting

2019-05-27 Thread Sujayeendra G
Hi, Can anyone kindly let me know, how to return page without redirecting. I mean, I have created one product list_page and corresponding detail_page. In product detail_page. need to fill form to send brochure to their E-mail. After filling form can we return to same section without reloading who

Django FormView, Return without redirecting

2019-05-27 Thread Sujayeendra G
Hi, Can anyone kindly let me know, how to return page without redirecting. I mean, I have created one product list_page and corresponding detail_page. In product detail_page. need to fill form to send brochure to their E-mail. After filling form can we return to same section without reloading

Re: Database setup

2019-05-10 Thread Lucas G. Navarro
Hi Soumen, i think that what you need is this [1] Regards! El vie., 10 may. 2019 a las 11:59, Soumen Khatua () escribió: > Hi Folks, > > I have one existing table in my database then how I can use the same table > in my models.

Re: Which Cloud Service Provider should be chosen to host Django Application

2019-05-02 Thread Lucas G. Navarro
webfaction is good too! Regards! El jue., 2 may. 2019 a las 12:40, escribió: > This seems related to my question on how to do Blue/Green deployments. > If you want to build a real CI/CD stack for it and you want the previous > version to be safe and the cut-over t

Re: Looking for a Django Co-Founder.

2019-02-01 Thread Lucas G. Navarro
Thanks for the spam ;) El vie., 1 feb. 2019 6:48 PM, Frank john thompson escribió: > Hello Zack > > Am interested please give me the details let's get started here is my > whatsapp number (+2348123120639) thanks > > Frank. > > On Fri, Feb 1, 2019, 8:31 PM Alison Mukoma >> Hello Zack, >> Perhaps

Re: Projects for Beginners

2019-01-31 Thread SNJY G
https://tutorial.djangogirls.org/en/ On Fri, Feb 1, 2019, 5:48 AM RETAIL CYBER Have tried the polls app or blog app? > > On Thu, Jan 31, 2019, 2:56 PM Vikram Jadhav > wrote: > >> Hey there!! >> Hope you are doing well in Django. >> >> I am a beginner in Django and completed couples of a tutorial

How to configure cookie in django1.8

2018-12-16 Thread SNJY G
Hi, In my setup, website authentication is handled by middleware ldap module. Could someone please guide how cookie can be configured on django session id. Thanks, Sanjay -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this g

Re: Looking for a Django Co-Founder.

2018-11-17 Thread Lucas G. Navarro
Hi! How are you? Can you tell us more about this? Regards! El sáb., 17 nov. 2018 7:29 PM, Zack Amaral escribió: > Hi, > > I have an idea for a next generation PaaS. I was wondering if there are > any Django developers that would be interested in being a co-founder with > my company. I'm an AWS

Re: Weighing Scale & TCP IP connectivity

2018-07-12 Thread Thomas G Lockhart
You can use Django REST framework to get data into Django and a separate Python (or other) program to feed it in. Have the Python program connect to the scale and use whatever mechanisms are required there to get your data. If the scale has a browser interface, then use urllib to read a page and

Re: Django 2.0 and AsgiRequest Error

2018-03-21 Thread G Broten
All: Yes, this is was identical to GitHub: https://github.com/django/channels/issues/981. Upgrading to MIDDLEWARE from MIDDLEWARE_CLASSES solved the problem. G Broten On Wednesday, March 21, 2018 at 8:54:47 AM UTC-6, G Broten wrote: > > Andrew: > No, issue 981 wasn't posted by

Re: Django 2.0 and AsgiRequest Error

2018-03-21 Thread G Broten
Andrew: No, issue 981 wasn't posted by me, but I too am using MIDDLEWARE_CLASSES so this is most likely the same issue. I'm looking into it. Thanks, G Broten On Tuesday, March 20, 2018 at 4:05:07 PM UTC-6, Andrew Godwin wrote: > > Hi - did you also open this issue on

Django 2.0 and AsgiRequest Error

2018-03-20 Thread G Broten
.0) redis (2.10.6) requests (2.11.1) setuptools (28.8.0) six (1.11.0) tornado (4.5.3) Twisted (17.9.0) txaio (2.9.0) vcrpy (1.11.1) vine (1.1.4) wrapt (1.10.11) yarl (1.1.1) zope.interface (4.4.3) Thanks in advance. G Broten -- You received this message because you are subscribed to the Googl

Re: Django 2.0.2, Channels 2.0.2 and Celery 4.1 Issue

2018-03-02 Thread G Broten
else using Channels 2.0 with Celery will find this thread of use. G Broten On Friday, March 2, 2018 at 12:57:01 PM UTC-6, Ken Whitesell wrote: > > Taking a stab at this - I believe the original problem may be here: > channel_layer.group_send( > settings.CHANNEL_GROUP,

Django 2.0.2, Channels 2.0.2 and Celery 4.1 Issue

2018-03-02 Thread G Broten
t;text": "Hello World"}, ) This results in the following runtime warning and the Celery task fails to run (the debug message is never printed) : [2018-03-02 09:45:19,804: WARNING/ForkPoolWorker-2] /home/broteng/.pyenv/versions/3.6.3/envs/djchannels2/lib/python3.6/site-packages/bil

Re: I plan to have lots of data tables with similar structure. How do you recommend I model them?

2018-01-11 Thread Thomas G Lockhart
You may want to have several tables linked by foreign keys. A Census Tract table, a County table, a State table, etc. That reduces the amount of duplicate data and the chances for inconsistent entries. The downside is a bit more work on the part of the computer to do lookups, but particularly i

Help with Aggregation / Annotation

2016-06-03 Thread Alex G
Hello all, I know this is probably a really simple question, but I've been trying to solve it for ages now and keep failing! I have two models: class Subject(models.Model): name = models.CharField(max_length=200) class Pupil(models.Model): first_name = models.CharField(max_length=200)

pgbouncer transaction mode safe with django orm?

2016-03-09 Thread g
Assuming one uses the ORM and avoids raw sql, is it safe to use PgBouncer in transaction mode? -- 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+unsu

Job opportunity for employment in Loganville Georgia

2015-12-29 Thread g
Hello, I have read the previous emails about job postings on this forum and wanted to post an opening here. If you are interested, please send your information to *j...@gandssecurityincorporated.com* *Job Description:* We are looking for someone who loves to code and enjoys problem solving i

Re: How to make https work fine under django server?

2015-09-04 Thread Thomas G Lockhart
On Sep 4, 2015, at 11:41 AM, vincent.j@gmail.com wrote: > Hi, everyone. I'm a new user of Django. > I have established an app and run a server on Django. > However, when I open a URL of my app(e.g. https://example.com/.../), it > always shows the following error on the command line. > > You

Re: middleware

2015-08-25 Thread Mayank G
Middleware allows you to process certain pre specified activities like, Logging, User Authentication, Tokenization and filtration of data. Route authentication, Access control list validations. It provides flexibility to invoke appropriate middleware on different routes. These act as glue to provid

Re: How to mock a model backend

2015-03-29 Thread Alejandro Varas G.
Hi Sven, You can mock the call to the external service like this. @mock.patch.object(MyModelBackend, 'authenticate') # First the class of your model backend. Then the method you want to mock. def test_something_that_uses_login(self, mock_authenticate): # The mock object is passed to your

CSRF token missing on file upload ajax request

2015-02-08 Thread G Z
hello, I have an ajax request that sends a file to django, it is saying that the csrf token is missing but i copied my other ajax request that are working. I'm sure it has something to do with trying to pass a file to upload. I get a 403 and csrf missing return. base.html

Best Practices Model Design

2015-01-30 Thread G Z
Hello, I'm in the design stages of a site that I'm building. It is going to be a basic social media site for a game I'm designing in unity. I'm not entirely sure how to do some of the things I want to in Django. Thus, my first question is generally best practices question as well as a how do

Re: Best Practices Django Questions

2015-01-30 Thread G Z
class User(models.Model): id = models.AutoField(primary_key=True) username = models.CharField(max_length=4000) password = models.CharField(max_length=4000) email = models.CharField(max_length=4000) phone = models.CharField(max_length=4000) profile_image = models.FileField()

Re: Best Practices Django Questions

2015-01-30 Thread G Z
class *User*(models.Model): id = models.*AutoField*(primary_key=True) username = models.CharField(max_length=4000) password = models.CharField(max_length=4000) email = models.CharField(max_length=4000) phone = models.CharField(max_length=4000) profile_image = models.FileField() about = mo

Best Practices Django Questions

2015-01-30 Thread G Z
Hello, I'm in the design stages of a site that I'm building. It is going to be a basic social media site for a game I'm designing in unity. I'm not entirely sure how to do some of the things I want to in Django. Thus, my first question is generally best practices question as well as a how do I

Re: Database "postgres" does not exist error when running test command

2014-11-15 Thread Thomas G Lockhart
On Nov 15, 2014, at 6:02 AM, Daniel Grace wrote: > On Saturday, 15 November 2014 00:58:32 UTC, Aliane Abdelouahab wrote: > how about this > http://stackoverflow.com/a/19426770/861487 > > > That link, what is that about? > > Anyway, I manually created a database called "postgres" and the error

Re: Django and Ajax, Django not returning posted data.

2014-11-05 Thread G Z
updated my ajax to the following but for somereason it just says something went wrong $(document).ready(function() { $('#get_info').submit(function() { $.ajax({ type: "POST", url: "/vmstatus/", dataType: "json", async:

Re: Django and Ajax, Django not returning posted data.

2014-11-05 Thread G Z
Another note is I try to return posted data and out put it to the html for testing and that doesn't get returned either. -- 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 e

Django and Ajax, Django not returning posted data.

2014-11-05 Thread G Z
So I'm trying to write an ajax script that post data to django without having to leave the page. Currently it is on submit however eventually im going to put it on a timer. Right now the function outputs to the console as a success but no data is returned from django. Here is my ajax $(docu

Re: Installing django on red hat linux box

2014-10-23 Thread Thomas G Lockhart
dency_links.txt > > reading manifest file 'pyodbc.egg-info/SOURCES.txt' > > reading manifest template 'MANIFEST.in' > > warning: no files found matching 'tests/*' > > writing manifest file 'pyodbc.egg-info/SOURCES.txt' > > installing

How do I use a django join to select customer_name for every id that is returned in a result from a summary table?

2014-10-20 Thread G Z
I've been looking into django joins, and I can see how I can select related fields with .select_related but I can't seem to get it to work how I want. I basically have summary tables that are linked to the customers table with customer_id FK's, I want to select the customer name from the custome

Re: Decrypting Encrypted Customer Data from Django Queries Not Working, But Working with Regular DB Queries

2014-10-08 Thread G Z
I'll post some more on this later, I'll post comments and be more descriptive. On Wednesday, October 8, 2014 4:56:27 PM UTC-6, G Z wrote: > > I know exactly what my code is doing, and it works in just python > something django is doing is screwing it up. > > On Wednes

Re: Decrypting Encrypted Customer Data from Django Queries Not Working, But Working with Regular DB Queries

2014-10-08 Thread G Z
rting again from > scratch, comment/document as you go along, and then compare each step with > your working Python code to see where it's breaking. > > Cal > > On Wed, Oct 8, 2014 at 11:29 PM, G Z > > wrote: > >> How is encrypting at the application level wrong?

Re: Decrypting Encrypted Customer Data from Django Queries Not Working, But Working with Regular DB Queries

2014-10-08 Thread G Z
> Cal > > On Wed, Oct 8, 2014 at 11:11 PM, G Z > > wrote: > >> so I have a database of information with encrypted customer names. When I >> use a plain python script to decrypt the names it works correctly and >> decrypts all of the customer names. >> >

Decrypting Encrypted Customer Data from Django Queries Not Working, But Working with Regular DB Queries

2014-10-08 Thread G Z
'user.is_superuser':user.is_superuser, 'current_month':current_month, }) return render(request, 'portal.html', context) Here is the output: as you see below ('TESTCUSTOMER', 81) is decrypted in re

Re: Config: DB or git?

2014-09-29 Thread Alejandro Varas G.
Hi Thomas, El 29/09/2014 10:05, "Thomas Güttler" escribió: > > Hi, > > of course we separate data from code: > > - code belongs into version control (git) > - data belongs into a database (postgres) > > But where does configuration belong? "To the environment" A good practice is to place conf

Re: at django login my request.POST.get data are all empty, I struggle with what I missed there

2014-09-26 Thread Alejandro Varas G.
ssage because you are subscribed to the Google Groups > "Django users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to django-users+unsubscr...@googlegroups.com. > To post to this group, send email to django-users@googlegroups.com. > Visit

Re: Best way to use a 'all' QuerySet as a dict with id first

2014-09-26 Thread Alejandro Varas G.
Hi, You should use User.objects.get(id=X) Best El 26/09/2014 15:28, "aRkadeFR" escribió: > > Hey! > > I'm having a hard time trying to reduce the number of SQL queries on a view. > > Basically, I'm fetching all my User, with User.objects.all(), and save this > queryset as AllUser. > > Then every

Re: New user - struggling with database design

2014-08-28 Thread Jason G
Ok - here is where I am stuck now. Any thoughts? If I try to render {{ vessel.CurrentBrew }} in a view, I get something like this: and this errors out: {% for Brew in vessel.CurrentBrew.all %}X{{ Brew.ActualName }}{% endfor %} (1146, "Table 'dbLunawireBrewing.brewlog_vessel_CurrentBrew' does

Re: New user - struggling with database design

2014-08-28 Thread Jason G
Hi Gerald - thanks for the quick reply! Turns out it was just an issue with quotes...not sure I am doing it right just yet, but at least I've passed the error. > -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group

New user - struggling with database design

2014-08-28 Thread Jason G
Hi all, I am building an app to track my home brewing. I have two tables, one for vessels, and another for brews. I want the Brew table to have a pick-list, relation to Vessels so I can say what vessel the brew is in. I also want to render a table that shows all Vessels and what Brew is in ea

Re: Django POST Arrays

2014-08-11 Thread G Z
Thanks so much On Thursday, August 7, 2014 4:38:28 PM UTC-6, Tom Evans wrote: > > On Thu, Aug 7, 2014 at 10:27 PM, G Z > > wrote: > > I'm doing some query and database stuff outside of what django is > capable of > > and I need some help with how I get all the

Django POST Arrays

2014-08-07 Thread G Z
I'm doing some query and database stuff outside of what django is capable of and I need some help with how I get all the values of a POSTED Dictionary list. here is the POST values because im using a multiple select box that are send to django u'licenses': [u'26.0', u'16.0', u'13.0', u'166.0']

Re: admin site not available after modifying base_site.html

2014-08-06 Thread Eric G
Yeah, I tried running the runserver.py script from the django-trunk file, and the error message was: ImportError: Could not import settings 'myproject.settings.admin' (Is it on sys.path? Is there an import error in the settings file?): No module named myproject.settings.admin On Wednesday, Aug

Re: admin site not available after modifying base_site.html

2014-08-06 Thread Eric G
On Wednesday, August 6, 2014 6:26:50 AM UTC-7, juantonio v wrote: > > No estás haciendo la referencia al archivo por el nombre. Renombrado tu > archivo HTML a base.html So I'm supposed to modify the base.html file instead of the base-site.html file? > On Wednesday, August 6, 2014 11:34:07 A

Re: admin site not available after modifying base_site.html

2014-08-06 Thread Eric G
I'm on Google Chrome, so it reads, "This webpage is not available." On Wednesday, August 6, 2014 5:27:12 AM UTC-7, Collin Anderson wrote: > > Now the 127.0.0.1:8000/admin/ site isn't available. > > > What happens when you try? > -- You received this message because you are subscribed to the Goo

admin site not available after modifying base_site.html

2014-08-06 Thread Eric G
Hey everyone, I was doing the "Writing your first Django App, part 2" tutorial when I got to the portion where I customize the project's template. I must have screwed up by overriding the base_site.html code in the source file with the default file. Now the 127.0.0.1:8000/admin/ site isn't avai

Javascript loading while executing backend python query.

2014-08-04 Thread G Z
Hi I'm trying to write a loading script that displays a loading image while the django backend queries i have written are exectuting. This is to say i have some very complicated sql queries i call mannually with python by watching for specific post from the webpage to execute different queries.

Re: How do I get Django to ignore javascript code because its throwing an exception

2014-07-31 Thread G Z
sday, July 30, 2014 6:59:05 PM UTC-4:30, G Z wrote: >> >> so im using the following java script >> >> var cpuChart = document.getElementById('cpu').getContext('2d'); >> new Chart(cpuChart).Line(cpuData,{ >> bezierCurve: false,

How do I get Django to ignore javascript code because its throwing an exception

2014-07-30 Thread G Z
so im using the following java script var cpuChart = document.getElementById('cpu').getContext('2d'); new Chart(cpuChart).Line(cpuData,{ bezierCurve: false, datasetFill : false, legendTemplate : "-legend\"><% for (var i=0; i\"><%if(datasets[i].label){%><%=datasets[

Re: I don't understand whats wrong with the way im passing django list to json

2014-07-29 Thread G Z
etContext("2d"); window.myLine = new Chart(ctx).Line(lineChartData, { responsive: true }); } On Tuesday, July 29, 2014 9:47:40 AM UTC-6, G Z wrote: > > the values will show how, but i ran into another problem while trying to > input the labels, labels need to be strings so

Re: I don't understand whats wrong with the way im passing django list to json

2014-07-29 Thread G Z
the values will show how, but i ran into another problem while trying to input the labels, labels need to be strings so I input them as an array such as the following: ["2014-07-28 14:24:11", "2014-07-28 14:24:11"] I saved it as a simple json in django and pass it to the webbrowser and then con

Re: I don't understand whats wrong with the way im passing django list to json

2014-07-29 Thread G Z
["2014-07-28 14:24:11", "2014-07-28 14:24:11"] On Monday, July 28, 2014 5:10:50 PM UTC-6, G Z wrote: > > so I'm trying to display some vm performance data on javascript charts. It > needs the information as a list, I have tried passing a json list from > d

Re: I don't understand whats wrong with the way im passing django list to json

2014-07-29 Thread G Z
fixed it i was passing strings and not integers var randomScalingFactor = function(){ return Math.round(Math.random()*100)}; var lineChartData = { labels : ["1000","2000","3000","4000","5000","6000","7000", "8000", "9000", "1", "11000", "12000", "13000", "14000", "15000",], datasets : [ { l

Re: I don't understand whats wrong with the way im passing django list to json

2014-07-29 Thread G Z
> > Tom, I have done alot actually, I have put the data into a json array, a list, a tupple, a dictionary. I have tried the following: my data has been passed in every possible way I can think of. What I need to know how to do is convert a python list I pass with django to a javascript list b

I don't understand whats wrong with the way im passing django list to json

2014-07-28 Thread G Z
so I'm trying to display some vm performance data on javascript charts. It needs the information as a list, I have tried passing a json list from django and a django list like below in the javascript i ahve the one they tell me to use and the one im trying the one they tell me to use works obvi

Django/Python-ldap Ldap Question Adding Entries

2014-07-23 Thread G Z
I'm trying to add entries via a form post in django, I have the following code and its really not django specific but it is python-ldap specific. I'm trying to add entries with python ldap. I'm getting a naming convention error. My code is import ldap import ldap.modlist as modlist

Django and Python-Ldap with Active Directory Question

2014-07-17 Thread G Z
I'm using pure python-ldap to authenticate because django-auth-ldap doesn't work for some reason no matter how i tried it. settings.py AUTHENTICATION_BACKENDS = ( 'django.contrib.auth.backends.ModelBackend', 'holon.backend.ActiveDirectoryBackend', ) backend.py import ldap from portal.

Re: Django Admin DB Error only when trying to delete an inserted record delete.

2014-07-17 Thread G Z
Thanks, I am unable to solve this issue but im running it down. On Thursday, July 17, 2014 10:46:08 AM UTC-6, Michiel Overtoom wrote: > > > On Jul 16, 2014, at 23:14, G Z wrote: > > > So I'm still running in to issues using a prexisting database, ive > worked ou

Re: Django Admin DB Error only when trying to delete an inserted record delete.

2014-07-16 Thread G Z
> > upon further investigation I found that inspectdb on the production > database only will output a models.py for the django tables, I need it to > output it for the entire schema like it did on the development database, > to prevent unessecary changes the premissions of the django user are r

Django Template Dir Question

2014-07-16 Thread G Z
My project structure goes *holon* * -holon* -settings.py -etc * -portal** -App name* * -static* css / images *-templates* -main site template files views.py urls.py etc * -templates* base.html

Re: Django Models PrimaryKey not incrimenting I dont understand this framework and the documentation is poorly written.

2014-07-16 Thread G Z
Percival/dp/1449364829/ > > Hope this helps > Frank > > > > Am 16.07.14 19:08, schrieb G Z: > > so I added a db trigger in oracle and it still said the same thing when > ever I tried to save the new addition. Also whenever I try to go to an > existing vm the manytomany f

Re: Django Models PrimaryKey not incrimenting I dont understand this framework and the documentation is poorly written.

2014-07-16 Thread G Z
so I added a db trigger in oracle and it still said the same thing when ever I tried to save the new addition. Also whenever I try to go to an existing vm the manytomany field throws an exception that table or view doesn't exist but when I goto add new it doesnt and the correct field is display

Re: Django Models PrimaryKey not incrimenting I dont understand this framework and the documentation is poorly written.

2014-07-15 Thread G Z
http://www.oracle.com/technetwork/articles/dsl/vasiliev-django-100257.html the guide I followed from oracle. On Tuesday, July 15, 2014 4:16:54 PM UTC-6, G Z wrote: > > Tom, > > It fails with both autofield and bigintergerfield > > class License(models.Model): >license_

Re: Django Models PrimaryKey not incrimenting I dont understand this framework and the documentation is poorly written.

2014-07-15 Thread G Z
insert NULL into ("DEV"."VM_LICENSES"."VM_LICENSE_ID") On Tuesday, July 15, 2014 4:09:29 PM UTC-6, Tom Evans wrote: > > On Tue, Jul 15, 2014 at 10:23 PM, G Z > > wrote: > > So I have a database that we are using to collect vm statistics. It

Re: Django Models PrimaryKey not incrimenting I dont understand this framework and the documentation is poorly written.

2014-07-15 Thread G Z
I can update items just not add them always the same error cannot insert null for the primary key -- 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-use

Django Models PrimaryKey not incrimenting I dont understand this framework and the documentation is poorly written.

2014-07-15 Thread G Z
So I have a database that we are using to collect vm statistics. It is always running and writing to a django database. I built my models file to resemble the db. However I have run into quite a few issues. I was wondering if anyone else has run into these issues and found out how to solve them.

Re: Django ManytoMany Relationships

2014-07-15 Thread G Z
Admin.py class vm_license_admin(admin.ModelAdmin): list_display = ('vm',) search_fields = ('vm__vm_name',) ordering = ('vm',) filter_horizontal = ('license',) admin.site.register(Vm_license, vm_license_admin) class License(models.Model): license_id = models.BigIntegerFie

Re: Django ManytoMany Relationships

2014-07-15 Thread G Z
y join table in the > database. If you are using an unmanaged database then you will need to > create the intermediary table yourself. See the ManyToMany field reference > <https://docs.djangoproject.com/en/dev/ref/models/fields/#manytomanyfield> > > On Tuesday, July 15, 2014

Django ManytoMany Relationships

2014-07-15 Thread G Z
I will start by saying I have an existing database, for the purpose of my question it has three tables: Vm Vm_licenses Licenses This database is per-existing before we decided to make a django web-portal. Basically licenses is a da

Re: Admin Page Customization Questions

2014-07-15 Thread G Z
Ive also tried class License(models.Model): license_id = models.BigIntegerField(primary_key = True, editable = False, db_column = 'license_id') license_authority = models.ForeignKey(License_authoritie, on_delete = models.PROTECT) product = models.CharField(max_length = 20) class

Admin Page Customization Questions

2014-07-15 Thread G Z
I have a few questions, is it possible to template the admin page? second I'm trying to customize some of the individuals pages for my particular issue I have a table named vm_licenses and a licenses table, I have my models set up l

  1   2   3   >