Re: Django Courier Management System Project

2018-11-12 Thread ramakurthy swamy
bro i also be a part of your project On Tue, Nov 13, 2018 at 1:09 AM sakkhar saha wrote: > Dear All, > I am Sakkhar form Bangladesh. Now I have a project idea. And i am a single > man. My Project is Courier Management in Djnago. Please help for the idea. > How i start my project. And How i

Re: How do I store details securely with django?

2018-11-12 Thread Mike Dewhirst
Another thought Django admin has a built-in mechanism for password management. It includes forms with password widgets.Perhaps you could hack your own encryption of the cloud credentials based on the Django approach to passwords. It is possible to add forms to the Admin and include your own

Re: PDF extarcting

2018-11-12 Thread Manjunath
I think regular expression would be a better option for your requirements. If you provide some sample resume docs, we can help better. On Tuesday, November 13, 2018 at 7:04:06 AM UTC+5:30, swathi2801 Yadhav wrote: > > Hi everyone, there is a project given to us to develop an application > I

Re: Django Admin Redesign

2018-11-12 Thread Phako Perez
If I remember correctly you can define your own templates under the template directory Regards Sent from my iPhone > On Nov 12, 2018, at 4:49 PM, Zakriya Bilal wrote: > > I am starting a project in which one of the requirements is to have a custom > designed Admin panel. > > So my

Re: How do I store details securely with django?

2018-11-12 Thread Devender Kumar
Hi Study about LDAP protocol Regards Dev On Tue 13 Nov, 2018, 4:06 AM PASCUAL Eric Hi Lance, > > > Well, I was off topic. Sorry for this :/ I understand your need better > now. > > > There are chances you've already thought to this option, but what about > storing the sensitive data encrypted

Re: TypeError at /users/login/ login() got an unexpected keyword argument 'template_name'

2018-11-12 Thread Jason
path('login/', auth_views.LoginView, {'template_name':'accounts/login.html'} name='login'), There's no comma to separate the kwarg dict from the `name` positional argument. As you can see in the docs https://docs.djangoproject.com/en/2.1/ref/urls/#path, the path function takes four params:

Re: Why does my Django project open the same home page irrespective or which url I type?

2018-11-12 Thread Jason
you have an ending slash on your login urls, and no ending slash in your links defined. try adding a trailing slash -- 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

Using Django middleware with web and mobile app

2018-11-12 Thread lakshitha kumara
Hello Guys, I'm developing a mobile app and website with one Django backend. all web browser(mobile browser included) using session auth and mobile app using Rest API with OAuth 2 authentications. I would like to know the best way to handle Django middleware with web and mobile app. For

Why does my Django project open the same home page irrespective or which url I type?

2018-11-12 Thread Alex Callaway
In my urlpatterns in the url.py file of my app, I have two pages: from django.urls import path, re_path from django.conf.urls import url from . import views from django.contrib.auth.views import LoginView urlpatterns=[ re_path(r'^$',views.home, name='home'), path('login/',

PDF extarcting

2018-11-12 Thread swathi2801 Yadhav
Hi everyone, there is a project given to us to develop an application I need to extract data from resume only specific fields like name, mail, dob, phone number by importing a package pyPdf2 I can only extract a data to text the whole part but there is no need of whole data only specific data

Re: TypeError at /users/login/ login() got an unexpected keyword argument 'template_name'

2018-11-12 Thread Alex Callaway
> > path('login/', auth_views.LoginView.as_view(), name='login'), How does it re-direct to which page to open in above method? How does it open the template the user wanted here? He is trying to open the page 'users/login.html' when users type: http://127.0.0.1/login/ on the browser. I have

Django Admin Redesign

2018-11-12 Thread Zakriya Bilal
I am starting a project in which one of the requirements is to have a custom designed Admin panel. So my question is: Is it possible to redesign the Django Admin panel? Majority of the requirements are related to Front-end design? Is it a good idea to redesign the front-end or just create a

Channels: Test case fails on async.sleep(X>0)

2018-11-12 Thread Zhiyu (Drew) Li
Hi there, I was trying to write a test for a consumer. It is just a very simply AsyncHttpConsumer subclass that awaits on asyncio.sleep(3) and returns a "OK" in plain text. The test case is: @pytest.mark.asyncio async def test_my_consumer(): communicator = HttpCommunicator(BasicHttpConsumer,

Re: Toby McGuire

2018-11-12 Thread PASCUAL Eric
370 assembler So I'm not the last dinosaur still alive and having written 370 ASM stuff in his former life  Sure Django and Python are a big step from there, and welcome aboard ;) Which kind of project do you plan to work on, and what are your questions ? Eric

Re: How do I store details securely with django?

2018-11-12 Thread PASCUAL Eric
Hi Lance, Well, I was off topic. Sorry for this :/ I understand your need better now. There are chances you've already thought to this option, but what about storing the sensitive data encrypted with a key based on a passphrase the user must provide when logging, in addition to the usual

Re: Toby McGuire

2018-11-12 Thread Bob Gailer
On Nov 12, 2018 12:05 PM, "toby mac" wrote: > > Im a newbie to this. Used to program on COBOl, Fortran and 370 assembler, plus many others Welcome to A Whole New World. How can we help you? Bob Gailer -- You received this message because you are subscribed to the Google Groups "Django users"

Re: Migration Issue in Django 1.9

2018-11-12 Thread china
Hi Andreas, I have fixed the issue. Here is how i achieved 1. I removed the field reports_to and added a field report_new(with foreign key) - reports_to = models.CharField(max_length=128, blank=True, null= True)---(Removed this line) + report_new =

Re: Django Courier Management System Project

2018-11-12 Thread Christopher Medlin
https://www.djangoproject.com/start/ On Mon, Nov 12, 2018 at 11:38 AM sakkhar saha wrote: > Dear All, > I am Sakkhar form Bangladesh. Now I have a project idea. And i am a single > man. My Project is Courier Management in Djnago. Please help for the idea. > How i start my project. And How i

Django Courier Management System Project

2018-11-12 Thread sakkhar saha
Dear All, I am Sakkhar form Bangladesh. Now I have a project idea. And i am a single man. My Project is Courier Management in Djnago. Please help for the idea. How i start my project. And How i Design my database table. My Project Feature. 1. User Can Add Your Order and Track his order. 2.

Re: Migration Issue in Django 1.9

2018-11-12 Thread Andréas Kühne
Hi, Yes you can roll back your migrations (I think) But you weren't able to get by that migration and it's only that migration that you need to handle. The other migrations haven't yet been migrated and you can just delete them from your disk in that case? Regards, Andréas Den mån 12 nov.

Re: Migration Issue in Django 1.9

2018-11-12 Thread china
Hi Andreas, Thank you for you quick response Is it possible if remove my migration files and rollback my migration to three migrations back..? Thanks, Karthik On Monday, November 12, 2018 at 12:26:23 PM UTC-5, Andréas Kühne wrote: > > Hi, > > You are changing a CharField into a ForeignKey

Re: Deploy django project using gunicorn

2018-11-12 Thread Yohandy Chiaawanda
I delete the models.py file since I am splitting all the models into separated files based on their name and import them in the __init__.py as the 2nd image i post before.. Should I keep the models.py file ? If yes, where should I keep them ? And what the content it should be ? Below I attach

Re: Migration Issue in Django 1.9

2018-11-12 Thread Andréas Kühne
Hi, You are changing a CharField into a ForeignKey field with data present. So when the migration tries to run, the reports_to field contains information with a string in it - the database server then tries to set it to a ForeignKey field, which is an integer field per default. This data

Toby McGuire

2018-11-12 Thread toby mac
Im a newbie to this. Used to program on COBOl, Fortran and 370 assembler, plus many others -- 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: Setting up admin in visual studio

2018-11-12 Thread Ansh Srivastava
Good to go with brackets for django projects ! On Mon, Nov 12, 2018 at 9:59 PM swathi2801 Yadhav < swathi2801yad...@gmail.com> wrote: > > -- Forwarded message - > From: swathi2801 Yadhav > Date: Mon, 12 Nov 2018, 9:26 p.m. > Subject: Re: Setting up admin in visual studio > To:

Migration Issue in Django 1.9

2018-11-12 Thread china
Hi Experts, I am trying to change the charfield to ForeignKey and I am running my code I am getting the following error if do python manage.py migrate django.db.utils.DataError: invalid input syntax for integer: "Jeff" Here is my code BEFORE -- reports_to =

Fwd: Setting up admin in visual studio

2018-11-12 Thread swathi2801 Yadhav
-- Forwarded message - From: swathi2801 Yadhav Date: Mon, 12 Nov 2018, 9:26 p.m. Subject: Re: Setting up admin in visual studio To: Hi Everyone by using module pyPdf2 I need to extract only certain data only by using python example : resume.pdf should be extracted to text

Re: Setting up admin in visual studio

2018-11-12 Thread swathi2801 Yadhav
Hi Everyone by using module pyPdf2 I need to extract only certain data only by using python example : resume.pdf should be extracted to text only certain fields like name, phone number, email id, skills, qualifications On Sun, Nov 11, 2018 at 8:07 PM Aditya Bohra wrote: > In urls.py from

Re: How do I store details securely with django?

2018-11-12 Thread Lance Haig
Hi Mike, Thank you for taking the time to read this. I have highlighted these sentences in your response *The bottom line question: What is lost if temporary creds are compromised?* The credentials have high level access to the backed system think e.g  kubernetes admin so compromise would

Re: How do I store details securely with django?

2018-11-12 Thread Lance Haig
Hi Eric, I am sure I have not explained myself properly. The app does the following. It presents a user the ability to sign up to a cloud platform for a sandbox / playground account. The number of cloud services that are available will change over time. Each cloud platform has a set of

Re: Why I can't pass anything to my html? Django 2.1

2018-11-12 Thread amit pant
you need to make dictionary for display variables using html On Mon, Nov 12, 2018 at 6:57 PM Cuneyt Mertayak wrote: > vvv Typo: read "context" instead of "content" vvv > > On Monday, November 12, 2018 at 5:26:48 AM UTC-8, Cuneyt Mertayak wrote: >> >> The content for the `render` method is

Re: Deploy django project using gunicorn

2018-11-12 Thread amit pant
check your models, might be there is some spelling error. if you share your models.py file then we could do more help. On Mon, Nov 12, 2018 at 8:28 PM Yohandy Chiaawanda wrote: > Hello > > I am currently following this guide >

Re: can't save data to the database

2018-11-12 Thread Andréas Kühne
No, I meant like this: def Contact(request): if request.method == 'POST': form = ContactUsForm(request.POST) if form.is_valid(): form.save() context = {'form': form} return redirect('contactus.html') else: form = ContactUsForm()

Deploy django project using gunicorn

2018-11-12 Thread Yohandy Chiaawanda
Hello I am currently following this guide https://www.digitalocean.com/community/tutorials/how-to-set-up-django-with-postgres-nginx-and-gunicorn-on-ubuntu-16-04 to set up django into digitalocean, and I kinda stuck at one point when I want to use gunicorn Whenever i type 'gunicorn --bind

Re: can't save data to the database

2018-11-12 Thread Andréas Kühne
Just move the return render part from the get request path to always return. That way you will get the form with the correct information when the form isn't valid. Regards, Andréas Den mån 12 nov. 2018 kl 15:20 skrev Tosin Ayoola : > yes the form is valid and the issue is the form doesn't

Re: can't save data to the database

2018-11-12 Thread Andréas Kühne
Hi, First of all - are you sure that the form is valid? You don't show the ContactUs model, but I'm guessing that all fields are required? Are they all filled in? Second - in the contact method you first check if it is a POST and then populate with: form = ContactUsForm(request.POST or None). The

dfsga

2018-11-12 Thread siyabulela batyi
Enter code here... siyabulelabatyi@gmail. Attach a filecom -- 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

can't save data to the database

2018-11-12 Thread Tosin Ayoola
halo, working on a contact us form to receive information from the user but my issue is the data doesn't get save to the database and i'm not getting any error message can anyone help out below is my view an forms.py -- You received this message because you are subscribed to the Google Groups

Re: Why I can't pass anything to my html? Django 2.1

2018-11-12 Thread Cuneyt Mertayak
vvv Typo: read "context" instead of "content" vvv On Monday, November 12, 2018 at 5:26:48 AM UTC-8, Cuneyt Mertayak wrote: > > The content for the `render` method is supposed to be a dictionary: > https://docs.djangoproject.com/en/2.1/topics/http/shortcuts/#optional-arguments > > So change it to

Re: Why I can't pass anything to my html? Django 2.1

2018-11-12 Thread Cuneyt Mertayak
The content for the `render` method is supposed to be a dictionary: https://docs.djangoproject.com/en/2.1/topics/http/shortcuts/#optional-arguments So change it to this render(requset, "FrounterWeb/body.html",{'tank': tank}) Also in the template file you want to display the properties of the

Re: Is Django REST framework a part of Django?

2018-11-12 Thread Jason
DRF is separate from django, despite the name. From what I understand, the author and maintainers have decided to keep it from being bound to the django release cycle and allow their own schedule of updates and releases. FWIW, DRF is great, I work with it daily on services that average a

Re: Why I can't pass anything to my html? Django 2.1

2018-11-12 Thread Tosin Ayoola
halo, working on a contact us form to receive information from the user but my issue is the data doesn't get save to the database and i'm not getting any error message can anyone help out below is my view an forms.py On Mon, Nov 12, 2018 at 1:12 PM Rookies DJ wrote: > I been trying 2 weeks on

Re: Update profile on login

2018-11-12 Thread Michal Petrucha
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 On Fri, Nov 09, 2018 at 08:32:28AM -0800, pastrufazio wrote: > Il giorno venerdì 9 novembre 2018 11:37:23 UTC+1, Michal Petrucha ha > scritto: > > Found it. :) The error lies in the filter() call: > > > > Thank you very much. I fixed it using >

Is Django REST framework a part of Django?

2018-11-12 Thread Bill Watkins
Good day, I've read an article about Django REST framework, and have a question: is this framework a part of Django? I'm actually going to use it only for REST, cause we are using microservices architecture, and UI container is a separate part. Is it good idea? What do you think? Thanks! --

Re: hi everyone

2018-11-12 Thread Balaji Sijapati
Hi Ramakurthy, you can get a sample django-Rest webservice project from internet and customize it little bit [U can include same requirement you might have done in Java or any other previous project] and put it in your Resume. I hope this helps. Thanks & Regards Balaji On Sun, Nov 11, 2018 at

Why I can't pass anything to my html? Django 2.1

2018-11-12 Thread Rookies DJ
I been trying 2 weeks on trying to pass variables form Django views into html, but every time I run my code, it works but it doesn't display the variable I see from django.shortcuts import render from zigview.models import tank_system def index(request): return

Re: How do I store details securely with django?

2018-11-12 Thread Pradeep Singh
can i develop real estate web application using python+ django On Mon, 12 Nov 2018 at 14:35, PASCUAL Eric wrote: > Hi Lance, > > > but I need for people who are admins for a particular cloud to add their > cloud details to the app and then store their credentials securely. > > > I'm not sure

Re: How do I store details securely with django?

2018-11-12 Thread PASCUAL Eric
Hi Lance, but I need for people who are admins for a particular cloud to add their cloud details to the app and then store their credentials securely. I'm not sure to understand the need for adding cloud details to the app for the admins. The suggestion I made assumed that sensitive

Re: hi everyone

2018-11-12 Thread PASCUAL Eric
Hi, I didn't understand the explanation you gave about the reference to "real time" in the context of your project. Please, have a look at this page for instance (https://en.wikipedia.org/wiki/Real-time_computing) to understand what "real time" means in computing. With respect to having a

Re: solve problem to load template

2018-11-12 Thread PASCUAL Eric
Hi, Is the directory where your template file resides included in the list of paths configured in the settings of your application ? Regards Eric From: django-users@googlegroups.com on behalf of Mohammad Shareef M Sent: Monday, November 12, 2018 6:48:14

Re: How do I store details securely with django?

2018-11-12 Thread Mike Dewhirst
On 12/11/2018 7:02 PM, Lance Haig wrote: Hi, Thanks for responding. My answers inline On 11/11/18 11:07 PM, Mike Dewhirst wrote: On 12/11/2018 12:47 AM, Lance Haig wrote: Hi, I have a project I am working on https://github.com/lhaig/usery/ and part of the roadmap of the project is to add

Re: How do I store details securely with django?

2018-11-12 Thread Lance Haig
Hi Eric, Thanks for the response. This idea has an end goal of being deployed in a resilient way so most probably docker with some form of orchestration, Docker swarm or Kubernetes. The credentials are mainly stored in a .env file at the moment and could be added to the secrets but I

Re: How do I store details securely with django?

2018-11-12 Thread Lance Haig
Hi, Thanks for responding. My answers inline On 11/11/18 11:07 PM, Mike Dewhirst wrote: On 12/11/2018 12:47 AM, Lance Haig wrote: Hi, I have a project I am working on https://github.com/lhaig/usery/ and part of the roadmap of the project is to add more cloud types to the list. I wanted