Re: Finding a job

2024-04-05 Thread Pearson Tech
I'm sorry to inform you but I'm not recruiting, I don't have open projects
and I'm not looking for developers, even so I appreciate it.

On Wed, Apr 3, 2024 at 12:38 PM Ganilson Garcia 
wrote:

> Dear recruiters!
>
> I hope this message finds you well. I am reaching out to express my
> interest in job opportunities in the Fullstack development field,
> particularly those that may align with my experience in Python, ExpressJs,
> and Django Rest Framework.
>
> With over 20 years of age and extensive experience in web development, I
> have acquired solid skills in both back-end and front-end development. My
> experience includes building scalable and high-quality web applications
> using modern technologies and best software engineering practices.
>
> My experience with Django Rest Framework has provided me with a deep
> understanding of RESTful API development, while my experience with
> ExpressJs complements this skill within the JavaScript ecosystem. I am
> confident in my ability to significantly contribute to challenging
> projects, delivering robust and efficient solutions.
>
> In addition to my technical skills, I am known for my friendliness and
> ability to work well in teams. My effective communication and willingness
> to collaborate have made me a valuable member of previous development teams.
>
> While my English is intermediate, I am committed to improving it and am
> willing to dedicate myself to courses and training to enhance my language
> skills.
>
> I am looking forward to discussing any potential opportunities you may
> have available and would greatly appreciate the opportunity to demonstrate
> how my skills and experience can benefit your clients or your company. I am
> available for interviews at any time convenient for you.
>
> Thank you in advance for your consideration. Please feel free to contact
> me via email or phone to discuss any potential opportunities.
>
> Sincerely, Ganilson Garcia. Tel: +244 946808054
>
> --
> 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 discussion on the web visit
> https://groups.google.com/d/msgid/django-users/a64a05b9-78c4-4acb-9063-eb37411c9c64n%40googlegroups.com
> 
> .
>

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CA%2Bpcz3XEi8ANS3Y01Wet61Bq%2Bj_h-5GfY1GELGg7c_F%2BM332XA%40mail.gmail.com.


Re: E-comm live project

2024-03-18 Thread Pearson Tech
Whatsapp +55 79 0-0020
Please add me

Em seg., 18 de mar. de 2024 às 10:26, 1001_prabhjot Singh <
prabhjotbal...@gmail.com> escreveu:

> 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
>
> --
> 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 discussion on the web visit
> https://groups.google.com/d/msgid/django-users/1101d563-726a-458e-ad9f-4b91bebf3132n%40googlegroups.com
> 
> .
>

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CA%2Bpcz3XU30vRC_nzsgWk7s1E_qua19hBgyK0s0R8Ff3AyaUpvg%40mail.gmail.com.


Re: Student Club Management Web App: Seeking Collaboration and Advice from Experts

2024-03-07 Thread THE tech
I will be happy to join you my friend +2347068821240

On Wed, Mar 6, 2024, 10:54 PM Ogunkoya Mayowa 
wrote:

> Add me +2349066713865
> I also want to learn and contribute to the project.
>
> On Wed, Mar 6, 2024, 3:29 PM Ambaig Baig  wrote:
>
>> I would like to join u into your project as I  am myself new in the world
>> of Django I believe we both can progress largely if we Collab as I have
>> made few projects in Django before
>> Phone number: 03302424221
>>
>>
>> On Sat, Mar 2, 2024, 8:58 PM SOLTAN NOURELDIEN 
>> wrote:
>>
>>>
>>> Hello, I am currently working on my Django Project for a specific course
>>> at my university. I have already finished reading "Django for Beginners" by
>>> William S. Vincent. Now, I am eager to start this project, but I am still
>>> in the learning and research phase. Therefore, I will provide the
>>> requirements for the project and would appreciate feedback or any tips from
>>> anyone with experience in such projects.
>>>
>>> For example, this will be my first time implementing a multi-user
>>> system. After doing extensive research, I learned about Django's model
>>> group concept managing this approach. Additionally, I discovered Django
>>> Channels and signals, which I have never heard of before. I would
>>> appreciate any advice or guidance on how to approach such a project.
>>>
>>> Furthermore, if anyone is interested in joining me on this journey, it
>>> would be wonderful. We can learn a lot from this project together. The
>>> deadline is less than two months, so please provide your Discord or
>>> WhatsApp number, and we can create a group to collaborate on this project.
>>>
>>> *The requirements for the project are as follows:*
>>>
>>> An app for student clubs:
>>> *SKS Admin:*
>>>
>>>-
>>>   - Create Club Page
>>>   - Delete Club Page
>>>   - Assign Club Manager
>>>   - Activity Form (Approve, Reject)
>>>   - Receive notifications (Whenever a change occurs in the club
>>>   page) (Approve Change, Reject Change)
>>>   - Request for Publishing Activity Post (Approve, Reject)
>>>   - Search Club Page
>>>   - Announce All Activities (Will be displayed on the main page)
>>>
>>> *Club Manager:*
>>>
>>>-
>>>   - Fill out the activity form
>>>   - Request for publishing Activity Post (Sending it to admin, and
>>>   after approval, the activity will appear on the club main page)
>>>   - Receive Notification (The response to the Activity Form &
>>>   Activity Post publishing request)
>>>   - Edit Activity Post (Admin manager will receive a notification)
>>>
>>> *Student:*
>>>
>>>-
>>>   - Display weekly Activity Table
>>>   - Display Clubs Main Page
>>>   - Search (by category, by date)
>>>
>>> I will only focus on the backend development and integrate it into the
>>> template. I have other team members who will provide the Static HTML, CSS &
>>> JS files. I will incorporate them into the Django templates and work on
>>> making them interactive.
>>>
>>> Additionally, if time allows, I can implement additional features such
>>> as:
>>>
>>>- Manager:
>>>   - Submit an application to SKS to assign a club
>>>   - Initiate a chat conversation between the manager and the SKS
>>>- Student:
>>>   - Become a member of a club
>>>   - Follow Clubs
>>>   - Follow the club pages
>>>   - Like and comment on a post
>>>
>>> If you have any ideas or know of existing projects that could serve as
>>> inspiration, please feel free to comment. I would greatly appreciate it.
>>>
>>> Also, if you would like to collaborate with me for learning purposes and
>>> to work as a team, please don't hesitate to provide your contact
>>> information, and I will reach out to you. Thank you very much.
>>>
>>> --
>>> 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 discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/19da6a17-4c28-41d5-acb1-171fb052c9a1n%40googlegroups.com
>>> 
>>> .
>>>
>> --
>> 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 discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CAEkU0UNXxfuSUcdHDsZZZGTnRGdhr00dgHhDcZmjQ1vE7xOB7Q%40mail.gmail.com
>> 
>> .
>>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" 

Re: Exciting Opportunity: Join Our Django WhatsApp Bulk Messaging Project!

2024-02-22 Thread THE tech
Yes am interested 爐

On Sun, Feb 18, 2024, 9:39 PM patel dhruvish 
wrote:

> I am interested in this project.
>
> On Mon, Feb 19, 2024, 12:59 AM fextha satria 
> wrote:
>
>> I'm interesting in this project. Please allow me to join.
>>
>> Satria fextha
>>
>> Outlook for iOS  を入手
>> --
>> *差出人:* django-users@googlegroups.com  が
>> SURAJ TIWARI  の代理で送信
>> *送信日時:* Sunday, February 18, 2024 9:04:08 PM
>> *宛先:* Django users 
>> *件名:* Exciting Opportunity: Join Our Django WhatsApp Bulk Messaging
>> Project!
>>
>>
>>  Join Our Django WhatsApp Bulk Messaging Project!
>>
>>  Hello everyone,
>>
>> Are you looking for an exciting opportunity to gain hands-on experience
>> in Django development? Do you want to work on a meaningful project that
>> leverages WhatsApp for bulk messaging? We're thrilled to invite you to join
>> our dynamic team!
>>
>>  Benefits:
>>
>>- Get hands-on experience working on a real-world Django project.
>>- Learn how to leverage WhatsApp for bulk messaging, a valuable skill
>>in today's digital landscape.
>>- Opportunities for hybrid work, allowing flexibility in your
>>schedule.
>>- Collaborate with experienced developers and gain valuable
>>mentorship.
>>- Access to cutting-edge tools and technologies.
>>
>>  Opportunities Available:
>>
>>- Django developers
>>- Frontend developers
>>- UI/UX designers
>>- Quality assurance testers
>>
>> 欄 How to Join: Simply reply to this message expressing your interest,
>> and we'll provide you with all the necessary details to get started on our
>> project.
>>
>> Let's work together to create something amazing and gain valuable
>> experience along the way! ✨
>>
>> Best regards,
>>
>> Suraj Tiwari
>>
>>
>> --
>> 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 discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/e8a705fd-10d9-4c1a-b4ba-0a7b896dbfean%40googlegroups.com
>> 
>> .
>>
>> --
>> 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 discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/SEYPR01MB5419A1A2B1AAFDE1E19D4BF4F4522%40SEYPR01MB5419.apcprd01.prod.exchangelabs.com
>> 
>> .
>>
> --
> 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 discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CANMvxF09eT%3DHSnW0LBDASZ-7TM7W3p94B4%2BgLMHpFkDjDFiUdQ%40mail.gmail.com
> 
> .
>

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CACdmmGoDy75ersJaxuZFRU-gbRrOHqfmzhbjusPh6doH9gnX%3DQ%40mail.gmail.com.


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

2024-02-13 Thread Ada Tech
I'm interested

On Sat, Feb 10, 2024, 5:55 PM Jorge Bueno 
wrote:

> The project:
>
> I am working on an exciting project that I think you might be interested
> in. It's about an online marketplace similar to the US farmers and
> livestock markets, but with an online focus. The project is already half
> done, with a well-defined requirements list and backlog that will allow you
> to learn a lot while contributing to a real project.
>
> Technologies:
>
> We are using Python and Django for the backend, Next.js and React for the
> frontend.
>
> What we are looking for:
>
> We need help to get django working making python manage.py runserver and
> also all the procedures to check it works well as unit tests right now we
> have the following functionalities programmed the MVP:
> 1.User Registration
> User Profiles
> Product Listing
> 4.Search and Filters
>  5.Shopping Cart
>  6.Payment System
> 7.Ratings and Reviews
> 8.Messaging
>  Notification system
> 10.User management
> Why collaborate:
>
> You will learn a lot: The project is well organized and will allow you to
> work with modern and relevant technologies.
> You will contribute to a real project: Your work will have a direct impact
> on the success of the project.
> You will be part of a community: We are a passionate team committed to the
> success of the project.
> How can you participate?
>  You can access my public GitHub repository here:
> https://github.com/Programacionpuntera/Marketplace-Supremo
>
> --
> 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 discussion on the web visit
> https://groups.google.com/d/msgid/django-users/153e4e9d-4453-4280-8b06-27c8cbd1f72fn%40googlegroups.com
> 
> .
>

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAODE1n%2BZ4c%2BvRDOaaQJsyq%2B5171e25ZYyxiMmkEBTOcq9MB4Bg%40mail.gmail.com.


Re: Unpaid Internship

2023-04-30 Thread Each1Teach1 Tech Inc
let's talk


On Monday, April 24, 2023, John Diginee  wrote:

> Dear Sir/Ma'am,
>
> I hope this message finds you well. I am a full-stack software engineering
> student at Holberton School, a Silicon Valley-based software engineering
> institution. I am reaching out to express my interest in an unpaid backend
> intern or junior role at your esteemed company.
>
> My primary goal is to learn from your inspiring and experienced developers
> and gain practical, real-world experience. I am not particularly concerned
> about financial compensation at this time.
>
> I understand that my request may seem unconventional, but I would be
> grateful for any opportunity to work with your company. I am a hardworking,
> persistent, determined, resilient, and fast-learning individual, and I am
> confident that I can contribute positively to your team.
>
> Here's my LinkedIn and GitHub profile for your review:
> https://www.linkedin.com/in/johndiginee/
> https://github.com/johndiginee
>
>  Thank you for your precious time and consideration. I look forward to
> hearing from you.
>
> --
> 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 discussion on the web visit https://groups.google.com/d/
> msgid/django-users/d0247416-15e7-42c2-bf56-54ef95bb6733n%
> 40googlegroups.com
> 
> .
>

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CA%2BGDpiT2_qJGwRG658L6XxjWSP-xChCgO2nMgGVuTf9oXLbhPg%40mail.gmail.com.


Export filtered data

2023-01-19 Thread tech george
Hello,

I have been trying to export filtered table data to excel but was unlucky.

I can filter the table by date range successfully but can export the
filtered data.

Below is my view.py. Please help

def export_sickoff_export(request):
if request.method=="POST":
start_date = request.POST.get('start_date')
end_date = request.POST.get('end_date')
search_results =
Prescription.objects.filter(date_precribed__range=[start_date,end_date])

return render(request,
'pharmacist_templates/reports/referrals_report.html', {"data":
search_results})

response = HttpResponse(content_type='application/ms-excel')
response['Content-Disposition'] = 'attachment;
filename=Referrals & Sick-offs' + \
str(datetime.datetime.now())+'.csv'

wb = xlwt.Workbook(encoding='utf-8')
ws = wb.add_sheet('Prescription,Patients')

#Sheet header, first row
row_num = 0

font_style = xlwt.XFStyle()
font_style.font.bold = True

columns = ['Payroll No', 'First Name', 'Last Name', 'Non Work
Related SickOff', 'Work Related SickOff', 'Referral', 'Remarks',
'Date']

for col_num in range(len(columns)):
ws.write(row_num, col_num, columns[col_num], font_style)

# Sheet body, remaining rows
font_style = xlwt.XFStyle()

rows = 
Prescription.objects.filter(nurse=request.user.pharmacist).values_list('patient_id__reg_no',
'patient_id__first_name', 'patient_id__last_name',
'non_work_related_sickOff', 'work_related_sickOff', 'referral',
'remarks', 'date_precribed')

for row in rows:
row_num += 1
for col_num in range(len(row)):
ws.write(row_num, col_num, str(row[col_num]), font_style)
# for patient in patients:
# writer.writerow(patient)

wb.save(response)
return response

else:
 displaydata =
Prescription.objects.filter(nurse=request.user.pharmacist).order_by('-id')
 return render(request,
'pharmacist_templates/reports/referrals_report.html',
{"data":displaydata})

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CADYG20H0kkewMMV4s_Uxbm%2BwS1HYQGtpfRDfWM%3DUMXj%3DeQiKyw%40mail.gmail.com.


Re: group

2022-09-28 Thread tech george
Please add me:

+254724164862

On Wed, Sep 28, 2022 at 7:13 PM Prince Adedotun 
wrote:

> Add me also...
>
> 08167422287
>
> On Mon, 26 Sept 2022, 18:49 yassin kamanyile, 
> wrote:
>
>> Add me +255763023477
>>
>> On Mon, 26 Sept 2022, 15:53 Abdulfarid Olakunle, 
>> wrote:
>>
>>> Hello fellow developers, I will be creating a WhatsApp group chat later
>>> in the day, So I will like my fellow Python Django Developers to join the
>>> group. It will be much easier to discuss there and I will sacrifice myself
>>> out for anyone who need my service.
>>>
>>> God bless you all
>>> Enjoy your day
>>> Biliaminu
>>>
>>> --
>>> 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 discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/CA%2BccuR0goa8Mu9MqNLyZtCAJedHKpVZ6pFfrpXKFJdjaRrgttQ%40mail.gmail.com
>>> 
>>> .
>>>
>> --
>> 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 discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CAOyeOe9tKFCogEZv1NfTVVRMpFcXxayH9vp0JU3XYiFO4fYU%2Bw%40mail.gmail.com
>> 
>> .
>>
> --
> 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 discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CACwPRUzeQqxnS_T0kOaepVZiyfp%3DbXA-cWHy2kRpapruxOsmWA%40mail.gmail.com
> 
> .
>

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CADYG20FwOJWisNa%2BS90rbAncG%3DYTx58vU0WcbaiJBdwTvDNf0g%40mail.gmail.com.


Re: Filter by date range

2022-09-12 Thread tech george
I managed to solve the issue.

I was using the wrong keyword to fetch the dates.

Thanks for the support.


On Mon, Sep 12, 2022 at 9:03 AM tech george  wrote:

> Hello,
>
> I have tried debugging as below and it returned data;
>
> search_results =
> Prescription.objects.filter(date_prescribed__range=["2022-07-01",2022-07-30"])
>
> Is there another way i can filter the dates?
>
>
> On Sun, Sep 11, 2022 at 9:47 AM Muhammad Juwaini Abdul Rahman <
> juwa...@gmail.com> wrote:
>
>> Either there's no data for that month or your query is wrongly formatted.
>> Probably you can try your query in the shell first.
>>
>> On Sun, 11 Sept 2022 at 02:12, tech george  wrote:
>>
>>> Hello Muhammad,
>>>
>>> I'm choosing dates between 2022-07-01 and 2022-07-30 which have records
>>> in the db.
>>>
>>> I hope i have answered you right.
>>>
>>>
>>> On Sat, Sep 10, 2022 at 8:41 AM Muhammad Juwaini Abdul Rahman <
>>> juwa...@gmail.com> wrote:
>>>
>>>> What's your value of 'fromdate' and 'todate'?
>>>>
>>>> On Sat, 10 Sept 2022 at 13:27, tech george 
>>>> wrote:
>>>>
>>>>> Hello Carlos,
>>>>>
>>>>> I have used the code below as you advised by when I filter the table
>>>>> comes blank:
>>>>>
>>>>> query_results = Prescription.objects.filter(date__rang
>>>>> e=[fromdate,todate])
>>>>>
>>>>> Regards,
>>>>>
>>>>>
>>>>> On Fri, Sep 9, 2022 at 6:11 PM carlos  wrote:
>>>>>
>>>>>> Hello why use raw?
>>>>>> query_results = Prescription.objects.filter(date__rang
>>>>>> e=[fromdate,todate])
>>>>>> if you have any problem with performance hit database use
>>>>>> select_related or used m2m field use prefect_related
>>>>>> https://docs.djangoproject.com/en/4.1/ref/models/querysets/
>>>>>>
>>>>>> best!
>>>>>>
>>>>>> On Fri, Sep 9, 2022 at 7:48 AM tech george 
>>>>>> wrote:
>>>>>>
>>>>>>> Hello friends!
>>>>>>>
>>>>>>> I am trying to give users an easier way to filter data by date range.
>>>>>>>
>>>>>>> My views.py code is as below, but unfortunately, it is hiding data
>>>>>>> without applying the filter whenever I try to use if, else statements.
>>>>>>>
>>>>>>> Please advise what I might be doing wrong.
>>>>>>>
>>>>>>> views.py
>>>>>>>
>>>>>>> ef referralsReports(request):
>>>>>>> if request.method=="POST":
>>>>>>> fromdate = request.POST.get('fromdate')
>>>>>>> todate = request.POST.get('todate')
>>>>>>> searchresults = Prescription.objects.raw('select 
>>>>>>> id,description,prescribe,ailment,ailment_2,ailment_3,'
>>>>>>>  
>>>>>>> 'sickOff,referral,date_precribed,nurse_id,patient_id_id,'
>>>>>>>  
>>>>>>> 'non_work_related_sickOff from pharmacy_prescription where 
>>>>>>> date_precribed '
>>>>>>>  'between 
>>>>>>> "'+str(fromdate)+'" and "'+str(todate)+'"')
>>>>>>> return render(request, 
>>>>>>> 'pharmacist_templates/reports/referrals_report.html', {"data": 
>>>>>>> searchresults})
>>>>>>>
>>>>>>> else:
>>>>>>> displaydata = 
>>>>>>> Prescription.objects.filter(nurse=request.user.pharmacist).order_by('-id')
>>>>>>> return render(request, 
>>>>>>> 'pharmacist_templates/reports/referrals_report.html', 
>>>>>>> {"data":displaydata})
>>>>>>>
>>>>>>>
>>>>>>> template
>>>>>>>
>>>>>>> [image: image.png]
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> You received this messa

Re: Filter by date range

2022-09-12 Thread tech george
Hello,

I have tried debugging as below and it returned data;

search_results =
Prescription.objects.filter(date_prescribed__range=["2022-07-01",2022-07-30"])

Is there another way i can filter the dates?


On Sun, Sep 11, 2022 at 9:47 AM Muhammad Juwaini Abdul Rahman <
juwa...@gmail.com> wrote:

> Either there's no data for that month or your query is wrongly formatted.
> Probably you can try your query in the shell first.
>
> On Sun, 11 Sept 2022 at 02:12, tech george  wrote:
>
>> Hello Muhammad,
>>
>> I'm choosing dates between 2022-07-01 and 2022-07-30 which have records
>> in the db.
>>
>> I hope i have answered you right.
>>
>>
>> On Sat, Sep 10, 2022 at 8:41 AM Muhammad Juwaini Abdul Rahman <
>> juwa...@gmail.com> wrote:
>>
>>> What's your value of 'fromdate' and 'todate'?
>>>
>>> On Sat, 10 Sept 2022 at 13:27, tech george 
>>> wrote:
>>>
>>>> Hello Carlos,
>>>>
>>>> I have used the code below as you advised by when I filter the table
>>>> comes blank:
>>>>
>>>> query_results = Prescription.objects.filter(date__rang
>>>> e=[fromdate,todate])
>>>>
>>>> Regards,
>>>>
>>>>
>>>> On Fri, Sep 9, 2022 at 6:11 PM carlos  wrote:
>>>>
>>>>> Hello why use raw?
>>>>> query_results = Prescription.objects.filter(date__rang
>>>>> e=[fromdate,todate])
>>>>> if you have any problem with performance hit database use
>>>>> select_related or used m2m field use prefect_related
>>>>> https://docs.djangoproject.com/en/4.1/ref/models/querysets/
>>>>>
>>>>> best!
>>>>>
>>>>> On Fri, Sep 9, 2022 at 7:48 AM tech george 
>>>>> wrote:
>>>>>
>>>>>> Hello friends!
>>>>>>
>>>>>> I am trying to give users an easier way to filter data by date range.
>>>>>>
>>>>>> My views.py code is as below, but unfortunately, it is hiding data
>>>>>> without applying the filter whenever I try to use if, else statements.
>>>>>>
>>>>>> Please advise what I might be doing wrong.
>>>>>>
>>>>>> views.py
>>>>>>
>>>>>> ef referralsReports(request):
>>>>>> if request.method=="POST":
>>>>>> fromdate = request.POST.get('fromdate')
>>>>>> todate = request.POST.get('todate')
>>>>>> searchresults = Prescription.objects.raw('select 
>>>>>> id,description,prescribe,ailment,ailment_2,ailment_3,'
>>>>>>  
>>>>>> 'sickOff,referral,date_precribed,nurse_id,patient_id_id,'
>>>>>>  
>>>>>> 'non_work_related_sickOff from pharmacy_prescription where 
>>>>>> date_precribed '
>>>>>>  'between 
>>>>>> "'+str(fromdate)+'" and "'+str(todate)+'"')
>>>>>> return render(request, 
>>>>>> 'pharmacist_templates/reports/referrals_report.html', {"data": 
>>>>>> searchresults})
>>>>>>
>>>>>> else:
>>>>>> displaydata = 
>>>>>> Prescription.objects.filter(nurse=request.user.pharmacist).order_by('-id')
>>>>>> return render(request, 
>>>>>> 'pharmacist_templates/reports/referrals_report.html', 
>>>>>> {"data":displaydata})
>>>>>>
>>>>>>
>>>>>> template
>>>>>>
>>>>>> [image: image.png]
>>>>>>
>>>>>>
>>>>>> --
>>>>>> 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 discussion on the web visit
>>>>>> https://groups.google.com/d/msgid/django-users/CADYG20Go5PXJRP-MGJ07M36ftSaQ6WJVjYg_p4UYB9UUWge-LA%40mail.gmail.com
>>>>>> <https://groups.google.com/d/msgid/django-users/CAD

Re: Filter by date range

2022-09-10 Thread tech george
Hello Muhammad,

I'm choosing dates between 2022-07-01 and 2022-07-30 which have records in
the db.

I hope i have answered you right.


On Sat, Sep 10, 2022 at 8:41 AM Muhammad Juwaini Abdul Rahman <
juwa...@gmail.com> wrote:

> What's your value of 'fromdate' and 'todate'?
>
> On Sat, 10 Sept 2022 at 13:27, tech george  wrote:
>
>> Hello Carlos,
>>
>> I have used the code below as you advised by when I filter the table
>> comes blank:
>>
>> query_results = Prescription.objects.filter(date__rang
>> e=[fromdate,todate])
>>
>> Regards,
>>
>>
>> On Fri, Sep 9, 2022 at 6:11 PM carlos  wrote:
>>
>>> Hello why use raw?
>>> query_results = Prescription.objects.filter(date__rang
>>> e=[fromdate,todate])
>>> if you have any problem with performance hit database use select_related
>>> or used m2m field use prefect_related
>>> https://docs.djangoproject.com/en/4.1/ref/models/querysets/
>>>
>>> best!
>>>
>>> On Fri, Sep 9, 2022 at 7:48 AM tech george 
>>> wrote:
>>>
>>>> Hello friends!
>>>>
>>>> I am trying to give users an easier way to filter data by date range.
>>>>
>>>> My views.py code is as below, but unfortunately, it is hiding data
>>>> without applying the filter whenever I try to use if, else statements.
>>>>
>>>> Please advise what I might be doing wrong.
>>>>
>>>> views.py
>>>>
>>>> ef referralsReports(request):
>>>> if request.method=="POST":
>>>> fromdate = request.POST.get('fromdate')
>>>> todate = request.POST.get('todate')
>>>> searchresults = Prescription.objects.raw('select 
>>>> id,description,prescribe,ailment,ailment_2,ailment_3,'
>>>>  
>>>> 'sickOff,referral,date_precribed,nurse_id,patient_id_id,'
>>>>  'non_work_related_sickOff 
>>>> from pharmacy_prescription where date_precribed '
>>>>  'between 
>>>> "'+str(fromdate)+'" and "'+str(todate)+'"')
>>>> return render(request, 
>>>> 'pharmacist_templates/reports/referrals_report.html', {"data": 
>>>> searchresults})
>>>>
>>>> else:
>>>> displaydata = 
>>>> Prescription.objects.filter(nurse=request.user.pharmacist).order_by('-id')
>>>> return render(request, 
>>>> 'pharmacist_templates/reports/referrals_report.html', {"data":displaydata})
>>>>
>>>>
>>>> template
>>>>
>>>> [image: image.png]
>>>>
>>>>
>>>> --
>>>> 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 discussion on the web visit
>>>> https://groups.google.com/d/msgid/django-users/CADYG20Go5PXJRP-MGJ07M36ftSaQ6WJVjYg_p4UYB9UUWge-LA%40mail.gmail.com
>>>> <https://groups.google.com/d/msgid/django-users/CADYG20Go5PXJRP-MGJ07M36ftSaQ6WJVjYg_p4UYB9UUWge-LA%40mail.gmail.com?utm_medium=email_source=footer>
>>>> .
>>>>
>>>
>>>
>>> --
>>> att.
>>> Carlos Rocha
>>>
>>> --
>>> 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 discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/CAM-7rO3UTB%2Bm7gYzfQ_RB%2BDnDWetnO3E18knFuLPJAU%2BBQrbLw%40mail.gmail.com
>>> <https://groups.google.com/d/msgid/django-users/CAM-7rO3UTB%2Bm7gYzfQ_RB%2BDnDWetnO3E18knFuLPJAU%2BBQrbLw%40mail.gmail.com?utm_medium=email_source=footer>
>>> .
>>>
>> --
>> 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 discussion on the web visit
>> https://groups.

Re: Filter by date range

2022-09-09 Thread tech george
Hello Carlos,

I have used the code below as you advised by when I filter the table comes
blank:

query_results = Prescription.objects.filter(date__range=[fromdate,todate])

Regards,


On Fri, Sep 9, 2022 at 6:11 PM carlos  wrote:

> Hello why use raw?
> query_results = Prescription.objects.filter(date__range=[fromdate,todate])
> if you have any problem with performance hit database use select_related
> or used m2m field use prefect_related
> https://docs.djangoproject.com/en/4.1/ref/models/querysets/
>
> best!
>
> On Fri, Sep 9, 2022 at 7:48 AM tech george  wrote:
>
>> Hello friends!
>>
>> I am trying to give users an easier way to filter data by date range.
>>
>> My views.py code is as below, but unfortunately, it is hiding data
>> without applying the filter whenever I try to use if, else statements.
>>
>> Please advise what I might be doing wrong.
>>
>> views.py
>>
>> ef referralsReports(request):
>> if request.method=="POST":
>> fromdate = request.POST.get('fromdate')
>> todate = request.POST.get('todate')
>> searchresults = Prescription.objects.raw('select 
>> id,description,prescribe,ailment,ailment_2,ailment_3,'
>>  
>> 'sickOff,referral,date_precribed,nurse_id,patient_id_id,'
>>  'non_work_related_sickOff 
>> from pharmacy_prescription where date_precribed '
>>  'between 
>> "'+str(fromdate)+'" and "'+str(todate)+'"')
>> return render(request, 
>> 'pharmacist_templates/reports/referrals_report.html', {"data": 
>> searchresults})
>>
>> else:
>> displaydata = 
>> Prescription.objects.filter(nurse=request.user.pharmacist).order_by('-id')
>> return render(request, 
>> 'pharmacist_templates/reports/referrals_report.html', {"data":displaydata})
>>
>>
>> template
>>
>> [image: image.png]
>>
>>
>> --
>> 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 discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CADYG20Go5PXJRP-MGJ07M36ftSaQ6WJVjYg_p4UYB9UUWge-LA%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CADYG20Go5PXJRP-MGJ07M36ftSaQ6WJVjYg_p4UYB9UUWge-LA%40mail.gmail.com?utm_medium=email_source=footer>
>> .
>>
>
>
> --
> att.
> Carlos Rocha
>
> --
> 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 discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAM-7rO3UTB%2Bm7gYzfQ_RB%2BDnDWetnO3E18knFuLPJAU%2BBQrbLw%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAM-7rO3UTB%2Bm7gYzfQ_RB%2BDnDWetnO3E18knFuLPJAU%2BBQrbLw%40mail.gmail.com?utm_medium=email_source=footer>
> .
>

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CADYG20F%3D3470-FCgJZ0amOHUDV%3DXvHQ6ZWKak2VjcB%2BjD26Qkg%40mail.gmail.com.


Filter by date range

2022-09-09 Thread tech george
Hello friends!

I am trying to give users an easier way to filter data by date range.

My views.py code is as below, but unfortunately, it is hiding data without
applying the filter whenever I try to use if, else statements.

Please advise what I might be doing wrong.

views.py

ef referralsReports(request):
if request.method=="POST":
fromdate = request.POST.get('fromdate')
todate = request.POST.get('todate')
searchresults = Prescription.objects.raw('select
id,description,prescribe,ailment,ailment_2,ailment_3,'

'sickOff,referral,date_precribed,nurse_id,patient_id_id,'

'non_work_related_sickOff from pharmacy_prescription where
date_precribed '
 'between
"'+str(fromdate)+'" and "'+str(todate)+'"')
return render(request,
'pharmacist_templates/reports/referrals_report.html', {"data":
searchresults})

else:
displaydata =
Prescription.objects.filter(nurse=request.user.pharmacist).order_by('-id')
return render(request,
'pharmacist_templates/reports/referrals_report.html',
{"data":displaydata})


template

[image: image.png]

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CADYG20Go5PXJRP-MGJ07M36ftSaQ6WJVjYg_p4UYB9UUWge-LA%40mail.gmail.com.


Re: Negative Stock Prevention

2022-09-01 Thread tech george
I managed to remove the error,

I had a negative stock in my DB.

Thanks a lot for the help.

On that note, I was also trying to get the dispensed from stock

I was trying to do this but I don't think it can work since there is
already a foreign key at Dispense model fetching drug_id from stock.

What's the best way out?

@property
def dispensed(self):
return (self.quantity - self.dispense.quantity)




On Thu, Sep 1, 2022 at 6:09 AM Ammar Mohammed  wrote:

> I don't think you need that constraint after using the
> PositiveIntegerField .
>
>
> On Thu, 1 Sep 2022, 02:45 Ryan Nowakowski,  wrote:
>
>> I don't see any error. Did you forget to post it?
>>
>> On August 31, 2022 5:57:32 AM CDT, tech george 
>> wrote:
>>>
>>> Hello,
>>>
>>> Sorry for the late reply.
>>>
>>> I changed the models as below and added checkConstraint , But when I
>>> migrate I get the below error.
>>>
>>> What am I still doing wrong?
>>>
>>> class Stock(models.Model):
>>> quantity = models.PositiveIntegerField(default='0', blank=True,
>>> null=True)
>>> reorder_level = models.PositiveIntegerField(default='0', blank=True,
>>> null=True)
>>>
>>> class Meta:
>>> CheckConstraint(check=Q(quantity__gt=0), name='quantity')
>>>
>>>
>>>
>>> On Tue, Aug 30, 2022 at 6:09 PM Thomas Couch  wrote:
>>>
>>>> I don't see where you define the quantity variable, should that be
>>>> instance.quantity? Also, presumably you want to check if quantity is
>>>> greater than or equal to qu rather than 0.
>>>> Try changing `if quantity > 0` to `if instance.quantity >= qu`
>>>>
>>>>
>>>> On Tuesday, August 30, 2022 at 3:44:51 PM UTC+1 Ryan Nowakowski wrote:
>>>>
>>>>> On Mon, Aug 29, 2022 at 05:18:39PM +0300, tech george wrote:
>>>>> > Please help crack the below code, I want to prevent negative stock,
>>>>> and if
>>>>> > the stock is == 0, deduct it from reorder_level instead.
>>>>> > Currently, the stock goes negative.
>>>>> >
>>>>> > models.py
>>>>> >
>>>>> > class Stock(models.Model):
>>>>> > quantity = models.IntegerField(default='0', blank=True, null=True)
>>>>> > reorder_level = models.IntegerField(default='0', blank=True,
>>>>> null=True)
>>>>> >
>>>>> > class Dispense(models.Model):
>>>>> > drug_id = models.ForeignKey(Stock,
>>>>> > on_delete=models.SET_NULL,null=True,blank=False)
>>>>> > dispense_quantity = models.PositiveIntegerField(default='1',
>>>>> > blank=False, null=True)
>>>>> > taken=models.CharField(max_length=300,null=True, blank=True)
>>>>>
>>>>> Maybe change quantity and reorder_level to PositiveIntegerField?
>>>>>
>>>> --
>>>> 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 discussion on the web visit
>>>> https://groups.google.com/d/msgid/django-users/9ef2d260-7c1a-4ff1-95ca-c13ded5f9f7bn%40googlegroups.com
>>>> <https://groups.google.com/d/msgid/django-users/9ef2d260-7c1a-4ff1-95ca-c13ded5f9f7bn%40googlegroups.com?utm_medium=email_source=footer>
>>>> .
>>>>
>>> --
>> 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 discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/DDF83E16-47C4-4E38-90DE-6CDAE28268DB%40fattuba.com
>> <https://groups.google.com/d/msgid/django-users/DDF83E16-47C4-4E38-90DE-6CDAE28268DB%40fattuba.com?utm_medium=email_source=footer>
>> .
>>
> --
> 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 discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAHs1H7uN4xCF%2B7AKqxSufatWiUN_n9cw4uBALo-ENFOfirp_hg%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAHs1H7uN4xCF%2B7AKqxSufatWiUN_n9cw4uBALo-ENFOfirp_hg%40mail.gmail.com?utm_medium=email_source=footer>
> .
>

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CADYG20EXeqBXyAQsG0zpk6HXxcKixhjvy_R9z1QiY6%3Da5cAvFg%40mail.gmail.com.


Re: Negative Stock Prevention

2022-08-31 Thread tech george
Hello,

Sorry the error is:

django.db.utils.IntegrityError: CHECK constraint failed: quantity



On Thu, Sep 1, 2022 at 3:45 AM Ryan Nowakowski  wrote:

> I don't see any error. Did you forget to post it?
>
> On August 31, 2022 5:57:32 AM CDT, tech george 
> wrote:
>>
>> Hello,
>>
>> Sorry for the late reply.
>>
>> I changed the models as below and added checkConstraint , But when I
>> migrate I get the below error.
>>
>> What am I still doing wrong?
>>
>> class Stock(models.Model):
>> quantity = models.PositiveIntegerField(default='0', blank=True,
>> null=True)
>> reorder_level = models.PositiveIntegerField(default='0', blank=True,
>> null=True)
>>
>> class Meta:
>> CheckConstraint(check=Q(quantity__gt=0), name='quantity')
>>
>>
>>
>> On Tue, Aug 30, 2022 at 6:09 PM Thomas Couch  wrote:
>>
>>> I don't see where you define the quantity variable, should that be
>>> instance.quantity? Also, presumably you want to check if quantity is
>>> greater than or equal to qu rather than 0.
>>> Try changing `if quantity > 0` to `if instance.quantity >= qu`
>>>
>>>
>>> On Tuesday, August 30, 2022 at 3:44:51 PM UTC+1 Ryan Nowakowski wrote:
>>>
>>>> On Mon, Aug 29, 2022 at 05:18:39PM +0300, tech george wrote:
>>>> > Please help crack the below code, I want to prevent negative stock,
>>>> and if
>>>> > the stock is == 0, deduct it from reorder_level instead.
>>>> > Currently, the stock goes negative.
>>>> >
>>>> > models.py
>>>> >
>>>> > class Stock(models.Model):
>>>> > quantity = models.IntegerField(default='0', blank=True, null=True)
>>>> > reorder_level = models.IntegerField(default='0', blank=True,
>>>> null=True)
>>>> >
>>>> > class Dispense(models.Model):
>>>> > drug_id = models.ForeignKey(Stock,
>>>> > on_delete=models.SET_NULL,null=True,blank=False)
>>>> > dispense_quantity = models.PositiveIntegerField(default='1',
>>>> > blank=False, null=True)
>>>> > taken=models.CharField(max_length=300,null=True, blank=True)
>>>>
>>>> Maybe change quantity and reorder_level to PositiveIntegerField?
>>>>
>>> --
>>> 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 discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/9ef2d260-7c1a-4ff1-95ca-c13ded5f9f7bn%40googlegroups.com
>>> <https://groups.google.com/d/msgid/django-users/9ef2d260-7c1a-4ff1-95ca-c13ded5f9f7bn%40googlegroups.com?utm_medium=email_source=footer>
>>> .
>>>
>> --
> 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 discussion on the web visit
> https://groups.google.com/d/msgid/django-users/DDF83E16-47C4-4E38-90DE-6CDAE28268DB%40fattuba.com
> <https://groups.google.com/d/msgid/django-users/DDF83E16-47C4-4E38-90DE-6CDAE28268DB%40fattuba.com?utm_medium=email_source=footer>
> .
>

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CADYG20H6Yv_Y0vkgqVzOU90emRP%3DnvUw7vRrM--HGNbb0zZCAA%40mail.gmail.com.


Re: Negative Stock Prevention

2022-08-31 Thread tech george
Hello,

Sorry for the late reply.

I changed the models as below and added checkConstraint , But when I
migrate I get the below error.

What am I still doing wrong?

class Stock(models.Model):
quantity = models.PositiveIntegerField(default='0', blank=True,
null=True)
reorder_level = models.PositiveIntegerField(default='0', blank=True,
null=True)

class Meta:
CheckConstraint(check=Q(quantity__gt=0), name='quantity')



On Tue, Aug 30, 2022 at 6:09 PM Thomas Couch  wrote:

> I don't see where you define the quantity variable, should that be
> instance.quantity? Also, presumably you want to check if quantity is
> greater than or equal to qu rather than 0.
> Try changing `if quantity > 0` to `if instance.quantity >= qu`
>
>
> On Tuesday, August 30, 2022 at 3:44:51 PM UTC+1 Ryan Nowakowski wrote:
>
>> On Mon, Aug 29, 2022 at 05:18:39PM +0300, tech george wrote:
>> > Please help crack the below code, I want to prevent negative stock, and
>> if
>> > the stock is == 0, deduct it from reorder_level instead.
>> > Currently, the stock goes negative.
>> >
>> > models.py
>> >
>> > class Stock(models.Model):
>> > quantity = models.IntegerField(default='0', blank=True, null=True)
>> > reorder_level = models.IntegerField(default='0', blank=True, null=True)
>> >
>> > class Dispense(models.Model):
>> > drug_id = models.ForeignKey(Stock,
>> > on_delete=models.SET_NULL,null=True,blank=False)
>> > dispense_quantity = models.PositiveIntegerField(default='1',
>> > blank=False, null=True)
>> > taken=models.CharField(max_length=300,null=True, blank=True)
>>
>> Maybe change quantity and reorder_level to PositiveIntegerField?
>>
> --
> 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 discussion on the web visit
> https://groups.google.com/d/msgid/django-users/9ef2d260-7c1a-4ff1-95ca-c13ded5f9f7bn%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/9ef2d260-7c1a-4ff1-95ca-c13ded5f9f7bn%40googlegroups.com?utm_medium=email_source=footer>
> .
>

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CADYG20F0occUAajR%3DSseRtiW%2Bzjh4THmgN6FEFbFsGcpsmMLZg%40mail.gmail.com.


Negative Stock Prevention

2022-08-29 Thread tech george
Hello,

Please help crack the below code, I want to prevent negative stock, and if
the stock is == 0, deduct it from reorder_level instead.
Currently, the stock goes negative.

models.py

class Stock(models.Model):
quantity = models.IntegerField(default='0', blank=True, null=True)
reorder_level = models.IntegerField(default='0', blank=True, null=True)

class Dispense(models.Model):
drug_id = models.ForeignKey(Stock,
on_delete=models.SET_NULL,null=True,blank=False)
dispense_quantity = models.PositiveIntegerField(default='1',
blank=False, null=True)
taken=models.CharField(max_length=300,null=True, blank=True)

views.py

try:

if request.method == 'POST':
if form.is_valid():
username = form.cleaned_data['taken']
qu=form.cleaned_data['dispense_quantity']
ka=form.cleaned_data['drug_id']
# print(username)



stock= eo=Stock.objects.annotate(
expired=ExpressionWrapper(Q(valid_to__lt=Now()),
output_field=BooleanField())
).filter(expired=False).get(id=username)
form=DispenseForm(request.POST or None, instance=stock)
instance=form.save()
# print(instance)
if quantity > 0
instance.quantity-=qu
instance.save()
else:
instance.reorder_level-=qu
instanc.save()

form=DispenseForm(request.POST or None
,initial={'patient_id':queryset})
form.save()

messages.success(request, "Drug Has been Successfully Dispensed")

return redirect('manage_patient_pharmacist')
else:
messages.error(request, "Validity Error")

return redirect('manage_patient_pharmacist')

context={
"patients":queryset,
"form":form,
# "stocks":stock,
"drugs":drugs,
"prescrips":prescrips,
"expired":ex,
"expa":eo,

}
if request.method == 'POST':

print(drugs)
context={
"drugs":drugs,
form:form,
"prescrips":prescrips,
"patients":queryset,
"expired":ex,
"expa":eo,

}
except:
messages.error(request, "Dispensing Not Allowed! The Drug is
Expired ,please do a re-stock ")
return redirect('manage_patient_pharmacist')
context={
"patients":queryset,
"form":form,
# "stocks":stock,
"drugs":drugs,
"prescrips":prescrips,
"expired":ex,
"expa":eo,

}

return render(request,'templates/discharge.html',context)

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CADYG20GtQH-g%2Br2-T7VaD3xna-jtydr%3DsH6RSQnBJfBza39caw%40mail.gmail.com.


Models Culculations

2022-08-03 Thread tech george
Hello,

Please help with the below, I am trying to get dispense_quantity from
Dispense Model and subtract it from the quantity on Stock Model.

Then after that get something like this;

@property
def closing_stock(self):
  return (self.quantity - self. quantity_issued  )

class Stock(models.Model):
unit_price = models.DecimalField(max_digits=10, decimal_places=2,
default='0', blank=True, null=True)
quantity = models.IntegerField(default='0', blank=True, null=True)
total_price = models.DecimalField(max_digits=10, decimal_places=2,
default=1)
total_stock = models.IntegerField(default='0', blank=True, null=True)
receive_quantity = models.IntegerField(default='0', blank=True, null=True)
reorder_level = models.IntegerField(default='0', blank=True, null=True)
reorder_price = models.DecimalField(max_digits=10,
decimal_places=2, default='0', blank=True, null=True)

def __str__(self):
return str(self.drug_name)

@property
def total_price(self):
return (self.quantity + self.reorder_level) * self.unit_price

@property
def total_stock(self):
return (self.quantity + self.reorder_level)

@property
def reorder_stock(self):
return (self.reorder_level * self.reorder_price)

class Dispense(models.Model):
nurse = models.ForeignKey(Pharmacist, on_delete=models.CASCADE, null=True)
patient_id = models.ForeignKey(Patients,
on_delete=models.DO_NOTHING, null=True)
drug_id = models.ForeignKey(Stock, on_delete=models.SET_NULL,
null=True, blank=False)
dispense_quantity = models.PositiveIntegerField(default='1',
blank=False, null=True)
taken = models.CharField(max_length=300, null=True, blank=True)

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CADYG20E1AotncUkEVrooR4RqHr24gPK_oCd8S4iqre2HOfdABg%40mail.gmail.com.


Fetching Data Between Models

2022-04-20 Thread tech george
I have a model Staff and LeaveReportStaff, I wanted to get leave_balance
between Total_Leave_Days and leave_days. I already used Foreignkey for
staff but I'm not sure if it is right to use Foreignkey again.

Please advise the best way forward.

class Staff(models.Model):
Total_Leave_Days = models.PositiveIntegerField(default=0)
course = models.ForeignKey(Course, on_delete=models.DO_NOTHING,
null=True, blank=False)
admin = models.OneToOneField(CustomUser, on_delete=models.CASCADE)


class LeaveReportStaff(models.Model):
staff = models.ForeignKey(Staff, on_delete=models.CASCADE)
start_date = models.DateField()
end_date = models.DateField()
leave_type = models.CharField(choices=LEAVE_TYPE, max_length=25,
null=True, blank=False)

@property
def leave_days(self):
return (self.end_date - self.start_date).days

@property
def leave_balance(self):
return (self.Total_Leave_Days - self.leave_days)

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CADYG20F2ySFndjkc6o3oPH%3DxjPc450hXuGRM5c7_cnBMOy9ZiQ%40mail.gmail.com.


Calculations Between Models

2022-04-19 Thread tech george
Hello,

I have a model Staff and LeaveReportStaff, I wanted to get leave_balance
between Total_Leave_Days and leave_days.

Please advise the best way forward.

class Staff(models.Model):
Total_Leave_Days = models.PositiveIntegerField(default=0)
course = models.ForeignKey(Course, on_delete=models.DO_NOTHING,
null=True, blank=False)
admin = models.OneToOneField(CustomUser, on_delete=models.CASCADE)

class LeaveReportStaff(models.Model):
staff = models.ForeignKey(Staff, on_delete=models.CASCADE)
start_date = models.DateField()
end_date = models.DateField()
leave_type = models.CharField(choices=LEAVE_TYPE, max_length=25,
null=True, blank=False)

@property
def leave_days(self):
return (self.end_date - self.start_date).days

@property
def leave_balance(self):
return (self.Total_Leave_Days - self.leave_days)

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CADYG20F5wx1P7uWzswKue0vojoVMLZewVdEbcFKFO0Chn2%3Dubg%40mail.gmail.com.


Re: Calculated Fields

2022-04-11 Thread tech george
Hello Antonis,

Thanks for the advice and the solution,

That solved my issue.

Thanks again.

On Mon, Apr 11, 2022 at 9:04 AM Antonis Christofides <
anto...@antonischristofides.com> wrote:

> As was found out with the conversation with Mike Dewhirst, the error
> appears to be because of wrong understanding of operator precedence
> <https://docs.python.org/3/reference/expressions.html#operator-precedence>.
> That's easy to correct with parentheses.
>
> Except for that, I wouldn't do it that way; I wouldn't store the total
> price in the database, because it's likely to create problems. Models that
> have not (yet) been saved to the database will not have a total price.
> Models that have been loaded from the database, modified, but not (yet)
> updated in the database will have a wrong total price. Saving to the
> database with bulk operations or with plain SQL may result in no total
> price. These are all symptoms of storing redundant information in the
> database, which is something that should be avoided.
>
> Instead, I would do this:
> class Stock(models.Model):
> unit_price = models.DecimalField(max_digits=10, decimal_places=2,
> default='0', blank=True, null=True)
> quantity = models.IntegerField(default='0', blank=True, null=True)
> reorder_level = models.IntegerField(default='0', blank=True, null=True)
>
> @property
> def total_price(self):
> return (self.quantity + self.reorder_level) * self.unit_price
>
>
>
> On 10/04/2022 20.49, tech george wrote:
>
> Hello,
>
> I am trying to calculate fields directly from a model but no luck. I want
> to get total_price from quantity, reoder_level and unit price. My code is
> abelow, Please advise.
>
> class Stock(models.Model):
> unit_price = models.DecimalField(max_digits=10, decimal_places=2,
> default='0', blank=True, null=True)
> quantity = models.IntegerField(default='0', blank=True, null=True)
> total_price = models.DecimalField(max_digits=10,
> decimal_places=2,default=1)
> reorder_level = models.IntegerField(default='0', blank=True, null=True)
>
>
> def save(self, *args, **kwargs):
> self.total_price = self.quantity + self.reorder_level *
> self.unit_price
> super(Stock, self).save(*args, **kwargs)
>
>
> What am i my doing wrong
>
> Regards,
>
> --
> 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 discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CADYG20HBcMMGq6QodO0v%2BeZVmfS%2Bmr4aCSro5FZeeRLFdQztnQ%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CADYG20HBcMMGq6QodO0v%2BeZVmfS%2Bmr4aCSro5FZeeRLFdQztnQ%40mail.gmail.com?utm_medium=email_source=footer>
> .
>
> --
> 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 discussion on the web visit
> https://groups.google.com/d/msgid/django-users/8efea23c-52d8-6ac1-b94e-3cb9ad46d086%40antonischristofides.com
> <https://groups.google.com/d/msgid/django-users/8efea23c-52d8-6ac1-b94e-3cb9ad46d086%40antonischristofides.com?utm_medium=email_source=footer>
> .
>

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CADYG20FeUPLkT6wYn6%3DHvMDa8u9d62i4HEo6Zy410Xjyz%2B9%2Bdw%40mail.gmail.com.


Re: Calculated Fields

2022-04-10 Thread tech george
Hello Mike,

Unfortunately it's not calculating the fields as I wanted, instead it's
calculating as below;

reorder_level * unit_price + quantity

Which is wrong because I'm getting less amount.

Regards

On Mon, 11 Apr 2022, 01:56 Mike Dewhirst,  wrote:

>
>
>
>
> --
> (Unsigned mail from my phone)
>
>
>
>  Original message 
> From: tech george 
> Date: 11/4/22 03:50 (GMT+10:00)
> To: django-users@googlegroups.com
> Subject: Calculated Fields
>
> Hello,
>
> I am trying to calculate fields directly from a model but no luck. I want
> to get total_price from quantity, reoder_level and unit price. My code is
> abelow, Please advise.
>
> class Stock(models.Model):
> unit_price = models.DecimalField(max_digits=10, decimal_places=2,
> default='0', blank=True, null=True)
> quantity = models.IntegerField(default='0', blank=True, null=True)
> total_price = models.DecimalField(max_digits=10,
> decimal_places=2,default=1)
> reorder_level = models.IntegerField(default='0', blank=True, null=True)
>
>
> def save(self, *args, **kwargs):
> self.total_price = self.quantity + self.reorder_level *
> self.unit_price
> super(Stock, self).save(*args, **kwargs)
>
>
> What am i my doing wrong
>
> If it was my code, I would extract the calculation into a model method and
> call it from the save method as you are doing.
>
> That would make it easier to unit-test and perhaps discover that there
> should be parens around the addition.
>
> You also need to call save on your model to execute the code.
>
> Apart from that, at first glance your code should work.
>
>
>
> Regards,
>
> --
> 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 discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CADYG20HBcMMGq6QodO0v%2BeZVmfS%2Bmr4aCSro5FZeeRLFdQztnQ%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CADYG20HBcMMGq6QodO0v%2BeZVmfS%2Bmr4aCSro5FZeeRLFdQztnQ%40mail.gmail.com?utm_medium=email_source=footer>
> .
>
> --
> 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 discussion on the web visit
> https://groups.google.com/d/msgid/django-users/6253606d.1c69fb81.ac7f2.09bcSMTPIN_ADDED_MISSING%40gmr-mx.google.com
> <https://groups.google.com/d/msgid/django-users/6253606d.1c69fb81.ac7f2.09bcSMTPIN_ADDED_MISSING%40gmr-mx.google.com?utm_medium=email_source=footer>
> .
>

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CADYG20Ec5fq2WJLsuTiaCLycc%2B%2B%3DM7iscYVf1PbvfyDEqhtPow%40mail.gmail.com.


Calculated Fields

2022-04-10 Thread tech george
Hello,

I am trying to calculate fields directly from a model but no luck. I want
to get total_price from quantity, reoder_level and unit price. My code is
abelow, Please advise.

class Stock(models.Model):
unit_price = models.DecimalField(max_digits=10, decimal_places=2,
default='0', blank=True, null=True)
quantity = models.IntegerField(default='0', blank=True, null=True)
total_price = models.DecimalField(max_digits=10,
decimal_places=2,default=1)
reorder_level = models.IntegerField(default='0', blank=True, null=True)


def save(self, *args, **kwargs):
self.total_price = self.quantity + self.reorder_level *
self.unit_price
super(Stock, self).save(*args, **kwargs)


What am i my doing wrong

Regards,

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CADYG20HBcMMGq6QodO0v%2BeZVmfS%2Bmr4aCSro5FZeeRLFdQztnQ%40mail.gmail.com.


Re: NameError:

2022-04-09 Thread tech george
Hello Antonis,

Thanks, it worked.

Much appreciated.

Regards,

On Fri, Apr 8, 2022 at 11:10 PM Antonis Christofides <
anto...@antonischristofides.com> wrote:

> Hi! In the line where the error occurs, Pharmacist has not been defined
> yet. Move your Pharmacist model before your Patients model.
>
> Regards,
>
> Antonis
>
> On 08/04/2022 20.49, tech george wrote:
>
> Hello,
>
> I've been struggling with the below error, what might be the problem?
>
> I have used the same ForeignKey in other models.. all works ok, except
> this.
>
> Please advise.
>
> *Models:*
>
> class CustomUser(AbstractUser):
> user_type_data = ((1, "AdminHOD"), (2, "Pharmacist"), (3, "Doctor"),
> (4, "PharmacyClerk"),(5, "Patients"))
> user_type = models.CharField(default=1, choices=user_type_data,
> max_length=10)
>
>
>
> class Patients(models.Model):
> gender_category=(
> ('Male','Male'),
> ('Female','Female'),
> )
>
> nurse = models.ForeignKey(Pharmacist, related_name='Pharmacist',
> on_delete=models.CASCADE, null=True)
> admin = models.OneToOneField(CustomUser,null=True, on_delete =
> models.CASCADE)
> reg_no=models.CharField(max_length=30,null=True,blank=True,unique=True)
>
> gender=models.CharField(max_length=7,null=True,blank=True,choices=gender_category)
> first_name=models.CharField(max_length=20,null=True,blank=True)
> last_name=models.CharField(max_length=20,null=True,blank=True)
> date_admitted=models.DateTimeField(auto_now_add=True, auto_now=False)
> last_updated = models.DateTimeField(auto_now_add=False, auto_now=True)
>
> def __str__(self):
> return str(self.admin)
>
>
> *Error:*
>
> nurse = models.ForeignKey(Pharmacist, related_name='Pharmacist',
> on_delete=models.CASCADE, null=True)
> NameError: name 'Pharmacist' is not defined
>
>
> Regards,
>
>
>
>
> --
> 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 discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CADYG20GbMnoGjkT7VtD1FFMw3Tr8Axaepnf27vDyvqYvMb%2BUiQ%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CADYG20GbMnoGjkT7VtD1FFMw3Tr8Axaepnf27vDyvqYvMb%2BUiQ%40mail.gmail.com?utm_medium=email_source=footer>
> .
>
> --
> 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 discussion on the web visit
> https://groups.google.com/d/msgid/django-users/6f64f27c-ec8c-da80-5878-5520c7017b35%40antonischristofides.com
> <https://groups.google.com/d/msgid/django-users/6f64f27c-ec8c-da80-5878-5520c7017b35%40antonischristofides.com?utm_medium=email_source=footer>
> .
>

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CADYG20HOOnQksvprL5VgiR1pxCaqaujdFmuHO4LK-nNQfGiprQ%40mail.gmail.com.


NameError:

2022-04-08 Thread tech george
Hello,

I've been struggling with the below error, what might be the problem?

I have used the same ForeignKey in other models.. all works ok, except this.

Please advise.

*Models:*

class CustomUser(AbstractUser):
user_type_data = ((1, "AdminHOD"), (2, "Pharmacist"), (3, "Doctor"),
(4, "PharmacyClerk"),(5, "Patients"))
user_type = models.CharField(default=1, choices=user_type_data,
max_length=10)



class Patients(models.Model):
gender_category=(
('Male','Male'),
('Female','Female'),
)

nurse = models.ForeignKey(Pharmacist, related_name='Pharmacist',
on_delete=models.CASCADE, null=True)
admin = models.OneToOneField(CustomUser,null=True, on_delete =
models.CASCADE)
reg_no=models.CharField(max_length=30,null=True,blank=True,unique=True)

gender=models.CharField(max_length=7,null=True,blank=True,choices=gender_category)
first_name=models.CharField(max_length=20,null=True,blank=True)
last_name=models.CharField(max_length=20,null=True,blank=True)
date_admitted=models.DateTimeField(auto_now_add=True, auto_now=False)
last_updated = models.DateTimeField(auto_now_add=False, auto_now=True)

def __str__(self):
return str(self.admin)


*Error:*

nurse = models.ForeignKey(Pharmacist, related_name='Pharmacist',
on_delete=models.CASCADE, null=True)
NameError: name 'Pharmacist' is not defined


Regards,

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CADYG20GbMnoGjkT7VtD1FFMw3Tr8Axaepnf27vDyvqYvMb%2BUiQ%40mail.gmail.com.


Re: tutorial 1 problems from djangoproject website - not working, do not exactly understand

2022-03-24 Thread Shah Tech
you must first your current directory to your project directory mysite:
in window type: cd mysite
and then try python manage.py runserver

On Thursday, March 24, 2022 at 6:51:53 PM UTC+5 Kasper Laudrup wrote:

> On 24/03/2022 08.05, harsh jain wrote:
> > Still facing issue ?
> > This course will help you - Advanced web development course online 
> > 
>
> Please fuck off with your spam.
>

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/django-users/fc0c4b04-c784-4993-96c9-8281fb0adc8en%40googlegroups.com.


Re: FileNotFoundError at /login/

2022-03-24 Thread Shah Tech
1. According to your model, you meant the models.py file and default.jpg 
are in same directory.
=> But according to the error it smells that they are not same directory, 
so try to point to the exact relative path of the image.

On Thursday, March 24, 2022 at 10:10:13 AM UTC+5 Delvin Alexander wrote:

> would anyone know why this is popping up for me and where can i go to 
> solve this issue?
>
> - [Errno 2] No such file or directory: 
> 'C:\\Users\\delvi\\django_project\\media\\default.jpg'
>
> *Here is my models.py:*
> from django.db import models
> from django.contrib.auth.models import User
> from PIL import Image
>
> class Profile(models.Model):
> user = models.OneToOneField(User, on_delete=models.CASCADE)
> image = models.ImageField(default='default.jpg', 
> upload_to='profile_pics')
> 
> def __str__(self):
> return f'{self.user.username} Profile'
>
> def save(self, *args, **kwargs):
> super(Profile, self).save(*args, **kwargs)
> 
> img = Image.open(self.image.path)
> 
> if img.height > 300 or img.width > 300:
> output_size = (300, 300)
> img.thumbnail(output_size)
> img.save(self.image.path)
>
>
> *And here is my signlas.py:*
> from django.db.models.signals import post_save
> from django.contrib.auth.models import User
> from django.dispatch import receiver
> from .models import Profile
>
>
> @receiver(post_save, sender=User)
> def create_profile(sender, instance, created, **kwargs):
> if created:
> Profile.objects.create(user=instance)
> 
> 
> @receiver(post_save, sender=User)
> def save_profile(sender, instance, **kwargs):
> instance.profile.save()
>

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/django-users/0bb7a587-ee52-43a7-97ae-9971b4856196n%40googlegroups.com.


Re: Django help| Urgent | how to find the frequency of a string for each word using django admin?

2021-07-09 Thread Tech Cue
 *class String(models.model):*

*string = models.textarea(null = True, blank = True)*
> *user = models.ForeignKey(user, on_delete=models.CASCADE)*
> *def __str__(self):*
> *return self.string*
>
*class Song_Words_Count(models.model):*
> *song = models.ForeignKey(user, on_delete=models.SET_NULL)*
>



> *def __str__(self):*
> *return self.song*
>


https://docs.djangoproject.com/en/3.2/topics/db/queries/

On Fri, Jul 9, 2021 at 4:31 PM 'Peter van der Does' via Django users <
django-users@googlegroups.com> wrote:

> Overwrite the save method on the String model and when you hit save you
> split and save the words in the S_W_C model. This does mean when you update
> the String record all the words are added to the S_W_C model as well, as
> there is no correlation between the two model you don't know if that String
> was already counted.
> On 7/8/21 10:26 PM, DJANGO DEVELOPER wrote:
>
> is there anyone who can help me here?
>
> On Fri, Jul 9, 2021 at 2:51 AM DJANGO DEVELOPER 
> wrote:
>
>> let suppose I have 2 models:
>> *class String(models.model):*
>> *string = models.textarea(null = True, blank = True)*
>> *user = models.ForeignKey(user, on_delete=models.CASCADE)*
>> *def __str__(self):*
>> *return self.string*
>>
>> and
>>
>>
>> *class Song_Words_Count(models.model):*
>> *song = models.ForeignKey(user, on_delete=models.SET_NULL)*
>> *def __str__(self):*
>> *return self.song*
>>
>> now what I want to do at django admin side that the string added in*
>> "String" *model should be saved in Song_Wors_count model and string
>> should be splitted in a single word and frequency should be counted this
>> way:
>>
>> word word_freq
>> word1 10
>> word2 15
>> word3 20
>>
>> I need Urgent help please.
>> --
>> 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 discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/f53fc668-ca86-4c51-8d4c-673dee3d180cn%40googlegroups.com
>> 
>> .
>>
> --
> 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 discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAKPY9pkPqSbN0OoxVyQ%2BYcfqq2fRX1NDWqpdyo-KmOG2X_vYeQ%40mail.gmail.com
> 
> .
>
> --
>
> *Peter van der Does o: **410-584-2500*
> * m: 732-425-3102 ONeil Interactive, Inc  oneilinteractive.com
>  *
>
> --
> 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 discussion on the web visit
> https://groups.google.com/d/msgid/django-users/3921f39e-60d9-0e67-87ff-c8684bafc8f4%40oneilinteractive.com
> 
> .
>

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CACQGpNnOUgSBL1%2BsK6w3cJuyWw8vgAWzJZq%3D6GPGDjSsOnOLdQ%40mail.gmail.com.


Re: looking for mobile developers

2021-07-05 Thread Kylex Isasi Tech
I'm interested

Le dim. 4 juil. 2021 à 9:38 PM, Theresa Taye  a
écrit :

> Hello guys,
>
> I need flutter users for a project urgently if you are interested, please
> contact me.
>
> Best regards
>
> --
> 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 discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAENBRfMdOTe4NTJNONwZaD-U78wsQ%2BG4wU9W_gKFwRab1PuPVw%40mail.gmail.com
> 
> .
>

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAM-He%3DEdFs75PgkCnW9vFnSbHhTfp8%3DfgWwR5r-XqCUmfy%2BSxw%40mail.gmail.com.


Re: Product Categories

2021-05-23 Thread tech george
Thanks Work,

Let me try that.

Regards.

On Sat, 22 May 2021, 21:48 N'BE SORO,  wrote:

> Ok use:
>
> # In Python
> # print(category.get_ancestors())
> # In Jinja category.get_ancestors
>
> Le sam. 22 mai 2021 à 18:14, Patrick Café  a
> écrit :
>
>> OK thank you
>>
>> tech george  schrieb am Sa., 22. Mai 2021, 19:11:
>>
>>> Hi Soro,
>>>
>>> Is there a way I can fetch the data without using MPTT?
>>>
>>>
>>> On Sat, May 22, 2021 at 6:31 PM N'BE SORO  wrote:
>>>
>>>> Hi,
>>>> if you use MPTT templates, in your template use {% load mptt_tags %}
>>>>
>>>> And you can proceed as follows for the display
>>>>
>>>> {% load mptt_tags %}
>>>> {% recursetree genres %}
>>>> 
>>>> {{ node.name }}
>>>> {% if not node.is_leaf_node %}
>>>> 
>>>> {{ children }}
>>>> 
>>>> {% endif %}
>>>> 
>>>> {% endrecursetree %}
>>>>
>>>> 
>>>>
>>>>
>>>> source: https://django-mptt.readthedocs.io/en/latest/tutorial.html
>>>>
>>>> Le ven. 21 mai 2021 à 18:30, tech george  a
>>>> écrit :
>>>>
>>>>> Hello,
>>>>>
>>>>> I need your help with rendering main category products only to the
>>>>> page, currently the code seems to be picking even sub category products.
>>>>>
>>>>> Please see below screenshots.
>>>>>
>>>>>
>>>>> [image: category model.png]
>>>>> [image: category model 2.png]
>>>>>
>>>>> [image: views.png]
>>>>> [image: category products.png]
>>>>>
>>>>> [image: category.html code.png]
>>>>>
>>>>> Please advise.
>>>>>
>>>>> --
>>>>> 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 discussion on the web visit
>>>>> https://groups.google.com/d/msgid/django-users/CADYG20H6qB4GTVq1J%3D6GcR%2BEu_r53pk-X%3DKvbosMrRrVz9jLYQ%40mail.gmail.com
>>>>> <https://groups.google.com/d/msgid/django-users/CADYG20H6qB4GTVq1J%3D6GcR%2BEu_r53pk-X%3DKvbosMrRrVz9jLYQ%40mail.gmail.com?utm_medium=email_source=footer>
>>>>> .
>>>>>
>>>> --
>>>> 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 discussion on the web visit
>>>> https://groups.google.com/d/msgid/django-users/CAOtSHp_ka4EERa%2B0hfJapGUNMRwziSe0S5xphDU92f9fzjjg3Q%40mail.gmail.com
>>>> <https://groups.google.com/d/msgid/django-users/CAOtSHp_ka4EERa%2B0hfJapGUNMRwziSe0S5xphDU92f9fzjjg3Q%40mail.gmail.com?utm_medium=email_source=footer>
>>>> .
>>>>
>>> --
>>> 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 discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/CADYG20EJE7hdVyFz%3D0-a-0QQyTfVR8OBPHDe24i3CFQFMA5cmw%40mail.gmail.com
>>> <https://groups.google.com/d/msgid/django-users/CADYG20EJE7hdVyFz%3D0-a-0QQyTfVR8OBPHDe24i3CFQFMA5cmw%40mail.gmail.com?utm_medium=email_source=footer>
>>> .
>>>
>> --
>> 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 discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CAA%2B%2BAZxavstcDeL-fMKgtU%2BjnQDznwmm6cfYXDkv-d46OvvRjg%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CAA%2B%2BAZxavstcDeL-fMKgtU%2BjnQDznwmm6cfYXDkv-d46OvvRjg%40mail.gmail.com?utm_medium=email_source=footer>
>> .
>>
> --
> 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 discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAOtSHp9wDcmdSg%3DM8JEzM%3DuuhMVFgers0uST5k-EqB37iZKvJg%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAOtSHp9wDcmdSg%3DM8JEzM%3DuuhMVFgers0uST5k-EqB37iZKvJg%40mail.gmail.com?utm_medium=email_source=footer>
> .
>

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CADYG20Gx0dPBjqG4RD0TtkZMDhmHY1Jpza74LDspE2N4fpwSqA%40mail.gmail.com.


Re: DoesNotExist at /

2020-12-28 Thread tech george
Hi,


Let me go through the dock and see if I'll get a breakthrough.

Thanks

On Mon, 28 Dec 2020, 18:41 Prashanjeet Halder, 
wrote:

> There's no built-in filter as currency in django template language you can
> custom create one.
>
> *As Demonstrated Here: LINK
> *
>
> On Monday, December 28, 2020 at 12:35:08 PM UTC+5:30 techg...@gmail.com
> wrote:
>
>> Hello,
>>
>> I am getting the error as shown below when uploading my django project to
>> share hosting. How can I resolve it?
>>
>> Please advise.
>>
>> DoesNotExist at /
>>
>> Currency matching query does not exist.
>>
>> Request Method: GET
>> Request URL: http://fullcart.co.ke/
>> Django Version: 3.0.7
>> Exception Type: DoesNotExist
>> Exception Value:
>>
>> Currency matching query does not exist.
>>
>> Exception Location: 
>> /home2/fullcart/virtualenv/fullcart/3.7/lib/python3.7/site-packages/django/db/models/query.py
>> in get, line 417
>> Python Executable: /home2/fullcart/virtualenv/fullcart/3.7/bin/python3.7
>> Python Version: 3.7.8
>> Python Path:
>>
>> ['',
>>  '/opt/alt/python37/bin',
>>  '/home2/fullcart/fullcart',
>>  '/home2/fullcart/virtualenv/fullcart/3.7/lib64/python37.zip',
>>  '/home2/fullcart/virtualenv/fullcart/3.7/lib64/python3.7',
>>  '/home2/fullcart/virtualenv/fullcart/3.7/lib64/python3.7/lib-dynload',
>>  '/opt/alt/python37/lib64/python3.7',
>>  '/opt/alt/python37/lib/python3.7',
>>  '/home2/fullcart/virtualenv/fullcart/3.7/lib/python3.7/site-packages']
>>
>> Server time: Mon, 28 Dec 2020 07:00:13 +
>> Error during template rendering
>>
>> In template /home2/fullcart/fullcart/home/templates/slider.html, error
>> at line *18*
>> Currency matching query does not exist.
>> 8 
>> 9 
>> 10 
>> 11
>> 12 {% for rs in products_slider %}
>> 13 
>> 14 
>> 15 
>> 16 
>> 17 {{ rs.title }} 
>> 18  {{
>> rs.price|currency:request.session.currency }} {{
>> request.session.currency }} 
>> 19 > class="primary-btn">Shop Now
>> 20
>> 21 
>> 22 
>> 23 
>> 24 {% endfor %}
>>
> --
> 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 discussion on the web visit
> https://groups.google.com/d/msgid/django-users/e17e0564-d639-47d9-b359-8e8f6fa695ccn%40googlegroups.com
> 
> .
>

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CADYG20HNJ5RmyR%2BaMpoAfkhoM68_02QM-rvOxB2_%2BvhbpKjVZQ%40mail.gmail.com.


Re: DoesNotExist at /

2020-12-28 Thread tech george
Hi,

Yes I does.

On Mon, 28 Dec 2020, 18:41 AMRIT SHAHI,  wrote:

> Is your hosting support python
>
> On Mon, Dec 28, 2020, 12:49 PM tech george  wrote:
>
>> Hello,
>>
>> I am getting the error as shown below when uploading my django project to
>> share hosting. How can I resolve it?
>>
>> Please advise.
>>
>> DoesNotExist at /
>>
>> Currency matching query does not exist.
>>
>> Request Method: GET
>> Request URL: http://fullcart.co.ke/
>> Django Version: 3.0.7
>> Exception Type: DoesNotExist
>> Exception Value:
>>
>> Currency matching query does not exist.
>>
>> Exception Location: 
>> /home2/fullcart/virtualenv/fullcart/3.7/lib/python3.7/site-packages/django/db/models/query.py
>> in get, line 417
>> Python Executable: /home2/fullcart/virtualenv/fullcart/3.7/bin/python3.7
>> Python Version: 3.7.8
>> Python Path:
>>
>> ['',
>>  '/opt/alt/python37/bin',
>>  '/home2/fullcart/fullcart',
>>  '/home2/fullcart/virtualenv/fullcart/3.7/lib64/python37.zip',
>>  '/home2/fullcart/virtualenv/fullcart/3.7/lib64/python3.7',
>>  '/home2/fullcart/virtualenv/fullcart/3.7/lib64/python3.7/lib-dynload',
>>  '/opt/alt/python37/lib64/python3.7',
>>  '/opt/alt/python37/lib/python3.7',
>>  '/home2/fullcart/virtualenv/fullcart/3.7/lib/python3.7/site-packages']
>>
>> Server time: Mon, 28 Dec 2020 07:00:13 +
>> Error during template rendering
>>
>> In template /home2/fullcart/fullcart/home/templates/slider.html, error
>> at line *18*
>> Currency matching query does not exist.
>> 8 
>> 9 
>> 10 
>> 11
>> 12 {% for rs in products_slider %}
>> 13 
>> 14 
>> 15 
>> 16 
>> 17 {{ rs.title }} 
>> 18  {{
>> rs.price|currency:request.session.currency }} {{
>> request.session.currency }} 
>> 19 > class="primary-btn">Shop Now
>> 20
>> 21 
>> 22 
>> 23 
>> 24 {% endfor %}
>>
>> --
>> 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 discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CADYG20Hfxc4xK0tDs-%2B326_dS%2BobsNAzaYKOBSYnpg9b8ykprg%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CADYG20Hfxc4xK0tDs-%2B326_dS%2BobsNAzaYKOBSYnpg9b8ykprg%40mail.gmail.com?utm_medium=email_source=footer>
>> .
>>
> --
> 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 discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CADydCv-oUMh-jkoSLMb_JhEG3sJdA13dvd%2Bo_rFraMaoELGV8g%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CADydCv-oUMh-jkoSLMb_JhEG3sJdA13dvd%2Bo_rFraMaoELGV8g%40mail.gmail.com?utm_medium=email_source=footer>
> .
>

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CADYG20FkcD51rBe9a4%3DUCC7g%2B_PuLtWDAJU3oRbSV5NSypwr_w%40mail.gmail.com.


DoesNotExist at /

2020-12-27 Thread tech george
Hello,

I am getting the error as shown below when uploading my django project to
share hosting. How can I resolve it?

Please advise.

DoesNotExist at /

Currency matching query does not exist.

Request Method: GET
Request URL: http://fullcart.co.ke/
Django Version: 3.0.7
Exception Type: DoesNotExist
Exception Value:

Currency matching query does not exist.

Exception Location:
/home2/fullcart/virtualenv/fullcart/3.7/lib/python3.7/site-packages/django/db/models/query.py
in get, line 417
Python Executable: /home2/fullcart/virtualenv/fullcart/3.7/bin/python3.7
Python Version: 3.7.8
Python Path:

['',
 '/opt/alt/python37/bin',
 '/home2/fullcart/fullcart',
 '/home2/fullcart/virtualenv/fullcart/3.7/lib64/python37.zip',
 '/home2/fullcart/virtualenv/fullcart/3.7/lib64/python3.7',
 '/home2/fullcart/virtualenv/fullcart/3.7/lib64/python3.7/lib-dynload',
 '/opt/alt/python37/lib64/python3.7',
 '/opt/alt/python37/lib/python3.7',
 '/home2/fullcart/virtualenv/fullcart/3.7/lib/python3.7/site-packages']

Server time: Mon, 28 Dec 2020 07:00:13 +
Error during template rendering

In template /home2/fullcart/fullcart/home/templates/slider.html, error at
line *18*
Currency matching query does not exist.
8 
9 
10 
11
12 {% for rs in products_slider %}
13 
14 
15 
16 
17 {{ rs.title }} 
18  {{
rs.price|currency:request.session.currency }} {{ request.session.currency
}} 
19 Shop Now
20
21 
22 
23 
24 {% endfor %}

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CADYG20Hfxc4xK0tDs-%2B326_dS%2BobsNAzaYKOBSYnpg9b8ykprg%40mail.gmail.com.


Re: Python Django Training

2020-12-07 Thread tech george
I want in too

On Mon, 7 Dec 2020, 16:43 Hector Berrones,  wrote:

> I am interested.
>
> On Mon, Dec 7, 2020, 2:09 AM narendra thapa 
> wrote:
>
>> hello please add me also in training group?
>>
>>
>> On Fri, Feb 21, 2020 at 7:27 PM Bharati Nilam 
>> wrote:
>>
>>> Hi,
>>> I also from Hyderabad and I'm also interested in the training. please
>>> tell me how to join?
>>>
>>> Regards,
>>> Bharati
>>>
>>> On Thu, 20 Feb, 2020, 6:19 PM Thiagu Palaniappan, <
>>> thiagarajan@gmail.com> wrote:
>>>
 I'm also interested. Please add me in the group.


 Thanks & Regards,
 Thiagu

 On Mon, Feb 17, 2020 at 12:41 AM Akshay Raul 
 wrote:

> I am interested also. Please let me know the details.
>
> On Sat 1 Feb, 2020, 2:42 PM Srikanth K,  wrote:
>
>> Hi,
>>
>> I am from Hyderabad. I am Python Developer by Profession. I am eager
>> take up any Python , Django Training (online Preferrable or Weekends).
>> Members who require can contact me or share me  there idea.
>>
>> Regards,
>> Srikanth.K
>>
>> --
>> 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 discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CACPyz-gXb7wo9E0Uhs_pnxF9X52uA10__Fq1xt4trjXUaN3ehQ%40mail.gmail.com
>> 
>> .
>>
> --
> 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 discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAEd%2Bv%3D0gE2dEMXKJ0Nm8FcH2ZxUPAdQspkQKB%2Bg5pZbSc_uZnQ%40mail.gmail.com
> 
> .
>


 --

 Thanks & Regards,

 *Thiagu Palaniappan*

 M +91 (0) 9994318799

 *DXC Technology*
 8th Floor, Tower 1 B DLF IT Park, 1/124 - Shivaji Garden, Nandambakkam
 post, Ramapuram, Chennai - 600 089.

 dxc.technology  / Twitter
  / Facebook
  / LinkedIn
 

 --
 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 discussion on the web visit
 https://groups.google.com/d/msgid/django-users/CAK%3DQXNMzH-iL6BQ3_vfrvTpeY%2BSe5%3DbZm9h5wPW_Dw%2BM2BsvQg%40mail.gmail.com
 
 .

>>> --
>>> 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 discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/CAPGVBeOgomb94NXAm347QqGcJ%3D3MzxULU7eQnY-M56EbC2D9vg%40mail.gmail.com
>>> 
>>> .
>>>
>> --
>> 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 discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CAEtntjXVaVAyDCJJzS748zfNVm242U%2B6vsFkynevf5ghnPgDhw%40mail.gmail.com
>> 
>> .
>>
> --
> 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 discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAFFaoULToa26WJCyDWYq9DtrS8WP_1Lz5nF5pGkpuGnnnsycHA%40mail.gmail.com
> 

RE: Page Resoltuon

2020-12-01 Thread tech george
Hello,

I am working on this webapp using a pre designed template.

But my project is too stretched out and can't seem to make it look like the
actual template.

Please advise.

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CADYG20F-PozrNr5E-BN1%2BwCP4T5buakXVywPJLTGUyziog49_A%40mail.gmail.com.


Re: Multiple Media_Root

2020-11-23 Thread tech george
Thanks for the guide,

Let me try this option then i'll let you know in case I get stuck.

On Mon, Nov 23, 2020 at 4:41 PM Mbah Victor 
wrote:

> Plz can u send me a review of what you what
>
> Victor
>
> On Sun, Nov 22, 2020, 8:05 PM tech george  wrote:
>
>> Hello,
>>
>> I am developing an E-Commerce website and I wanted to have a separate
>> upload folder for my slides and separate folders for other sections of my
>> site.
>>
>> Is there a way i can go about it other than using the ascending and
>> Descending order?
>>
>> Please advise.
>>
>> See section of my view.py page.
>>
>> [image: image.png]
>>
>> --
>> 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 discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CADYG20EjD6mRidk8LbyE8_8rAMT3z%3DPki0253eEtO4KtXttwPg%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CADYG20EjD6mRidk8LbyE8_8rAMT3z%3DPki0253eEtO4KtXttwPg%40mail.gmail.com?utm_medium=email_source=footer>
>> .
>>
> --
> 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 discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CANTsAyd6cerLF%3DmNEsUWO1xKgUm7meZRBNj0HNg6Zrh0TWFVjA%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CANTsAyd6cerLF%3DmNEsUWO1xKgUm7meZRBNj0HNg6Zrh0TWFVjA%40mail.gmail.com?utm_medium=email_source=footer>
> .
>

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CADYG20F376ZyLJO7V5xbQn6jffxSzsXDYwAwv-rTehGLzqC74w%40mail.gmail.com.


Multiple Media_Root

2020-11-22 Thread tech george
Hello,

I am developing an E-Commerce website and I wanted to have a separate
upload folder for my slides and separate folders for other sections of my
site.

Is there a way i can go about it other than using the ascending and
Descending order?

Please advise.

See section of my view.py page.

[image: image.png]

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CADYG20EjD6mRidk8LbyE8_8rAMT3z%3DPki0253eEtO4KtXttwPg%40mail.gmail.com.


downloading image files from django template

2020-07-25 Thread Teaching Tech
How can I download an image file that is shown to the template in Django? 
I'm new to Django. This might be a silly question. But I need to know for 
my existing project.

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/django-users/441320b3-f6cc-4390-b04e-0ef03abe10a5o%40googlegroups.com.


Confused about the Django admin panel!

2020-01-13 Thread Tech Inject
I am new at Django.

and I am creating one college project now I need to add some good 
functionality at the admin panel.

I want to add blog post type features with ajax to auto-save and all.
I want to create data visualization using charts, etc.

now the problem arises is I am confused about is this possible in the 
Django default admin panel?

if not available then it's good to create a custom admin panel?

need strong suggestions!

thank you.

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/django-users/27914002-4ced-4f5f-a1d6-e0b87c7837f5%40googlegroups.com.


pip install vs apps in folder

2019-02-11 Thread tech tech
Hi, all,

I am interested in this project:
https://github.com/mbraak/django-file-form

I run "pip install django-file-form" and everything works fine.
But, I want to change some behaviors of this upload package.
I feel this link
https://github.com/mbraak/django-file-form/tree/master/django_file_form
has all the source code and I can change some code in this link.
However, after I run "pip uninstall django-file-form" does not work.
So, my question is why it does not work after I uninstall it.
I downloaded the whole software. Why doesn't the project use the
source of django-file-form in the folder?

Thanks,

Tom

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAF35gg2CwfbM28_LA-gbeebwSfikh7hg_cknYv3zq9tefD%3DTYQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Creating superuser

2018-10-04 Thread MK tech
Please check this link about your issue 
https://stackoverflow.com/questions/37949198/wsgirequest-object-has-no-attribute-user-django-admin
 
(https://link.getmailspring.com/link/1538673870.local-79151df1-ea10-v1.4.2-f587b...@getmailspring.com/0?redirect=https%3A%2F%2Fstackoverflow.com%2Fquestions%2F37949198%2Fwsgirequest-object-has-no-attribute-user-django-admin=ZGphbmdvLXVzZXJzQGdvb2dsZWdyb3Vwcy5jb20%3D)

Sent from Mailspring 
(https://link.getmailspring.com/link/1538673870.local-79151df1-ea10-v1.4.2-f587b...@getmailspring.com/1?redirect=https%3A%2F%2Fgetmailspring.com%2F=ZGphbmdvLXVzZXJzQGdvb2dsZWdyb3Vwcy5jb20%3D),
 the best free email app for work
On Oct 4 2018, at 7:07 pm, VIPIN VIPIN  wrote:
>
>
> --
> 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 
> (https://link.getmailspring.com/link/1538673870.local-79151df1-ea10-v1.4.2-f587b...@getmailspring.com/2?redirect=mailto%3Adjango-users%2Bunsubscribe%40googlegroups.com=ZGphbmdvLXVzZXJzQGdvb2dsZWdyb3Vwcy5jb20%3D).
> To post to this group, send email to django-users@googlegroups.com 
> (https://link.getmailspring.com/link/1538673870.local-79151df1-ea10-v1.4.2-f587b...@getmailspring.com/3?redirect=mailto%3Adjango-users%40googlegroups.com=ZGphbmdvLXVzZXJzQGdvb2dsZWdyb3Vwcy5jb20%3D).
> Visit this group at https://groups.google.com/group/django-users 
> (https://link.getmailspring.com/link/1538673870.local-79151df1-ea10-v1.4.2-f587b...@getmailspring.com/4?redirect=https%3A%2F%2Fgroups.google.com%2Fgroup%2Fdjango-users=ZGphbmdvLXVzZXJzQGdvb2dsZWdyb3Vwcy5jb20%3D).
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/django-users/29d58131-a720-4ca4-9e1b-e09676324c25%40googlegroups.com
>  
> (https://link.getmailspring.com/link/1538673870.local-79151df1-ea10-v1.4.2-f587b...@getmailspring.com/5?redirect=https%3A%2F%2Fgroups.google.com%2Fd%2Fmsgid%2Fdjango-users%2F29d58131-a720-4ca4-9e1b-e09676324c25%2540googlegroups.com%3Futm_medium%3Demail%26utm_source%3Dfooter=ZGphbmdvLXVzZXJzQGdvb2dsZWdyb3Vwcy5jb20%3D).
> For more options, visit https://groups.google.com/d/optout 
> (https://link.getmailspring.com/link/1538673870.local-79151df1-ea10-v1.4.2-f587b...@getmailspring.com/6?redirect=https%3A%2F%2Fgroups.google.com%2Fd%2Foptout=ZGphbmdvLXVzZXJzQGdvb2dsZWdyb3Vwcy5jb20%3D).
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/1538673870.local-79151df1-ea10-v1.4.2-f587b7b7%40getmailspring.com.
For more options, visit https://groups.google.com/d/optout.


querying multiselectcheckbox

2018-01-31 Thread Tech Today


# this is my model


from django.db import models
from multiselectfield import MultiSelectField


TRACK_EVENTS_CHOICES = (
('100M', '100 Meter'),
('200M', '200 Meter'),
('400M', '400 Meter'),
('800M', '800 Meter'),
('1500M', '1500 Meter'),
('5000M', '5000 Meter'),

)

class Particiepents(models.Model):

roll_no = models.IntegerField()
Full_name = models.CharField(max_length=40)
father_name = models.CharField(max_length=40)
sex = models.CharField(max_length=10, choices=SEX_CHOICES)
branch = models.CharField(max_length=20, choices=BRANCH_CHOICES)
semester = models.CharField(max_length=10, choices=SEMESTER_CHOICES)
track_events = MultiSelectField(max_length=30, null=True, blank=True, 
choices=TRACK_EVENTS_CHOICES, default="track_events")
field_events = MultiSelectField(max_length=30, null=True, blank=True, 
choices=FIELD_EVENTS_CHOICES, default="track_events")


def __str__(self):
return self.Full_name


# I want to retrieve a individual lists of Full_name participating in different 
track_events(100m, 200m, 400m..)




-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/f499a882-77c2-4f53-81b9-5138c7302e1d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


django

2017-09-21 Thread TECH ROYAL
how to create a  social interactivity website  with using django??

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/3d8add5f-7185-4ae9-a957-b29020eab74e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


ABOUT DJANGO

2017-09-21 Thread TECH ROYAL
how to make website faster  in python

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/06ef2f60-e95d-4d5b-844b-52e485657071%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


HOMEPAGE

2017-09-21 Thread TECH ROYAL
which extension  may i use a creating homepage  im using django 

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/fe7154d1-fde4-466f-8894-853c71997bcc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: duplicate key value violates unique constraint "django_admin_log_pkey"

2017-06-01 Thread Tech-Harvester
Helped me too. Thanks.

On Thursday, October 14, 2010 at 8:54:30 PM UTC+5:30, 
glob...@iamsandiego.com wrote:
>
> Hi Folks, 
>
> After updating a postgres db for my django app Iam getting this error 
> when I try and save new data to the db: 
>
> Request Method:  POST 
> Request URL: http://10.50.253.200/admin/survey/gps/add/ 
> Django Version: 1.2 beta 1 
> Exception Type: IntegrityError 
> Exception Value: 
>
> duplicate key value violates unique constraint "django_admin_log_pkey" 
>
> Is there any way to correct this? 
>
> Thanks 
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/1245de5c-d8fb-4930-a6f2-a273b2d38739%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Is it possible to return an HttpResponse in django with text & a json object?

2012-01-29 Thread CareerDhaba tech
Hi all,

I am in a bit of a jiffy and need some guidance. Here is the issue:

I am creating a basic Q application, where a question pops up for the
user, along with a form to submit the answer. Depending on the type of
question, the input of  the form changes (ie if its a multiple choice, its
radio buttons, but if its a word problem, its a text area). I am doing this
by extending the ModelForm's __init__ method. So far, so good.

The problem occurs when an answer is submitted via jquery ajax. My view
function receives and processes the request correctly, but I am unable to
figure out how to send back *both *the question object (as json object) and
the form object (as html) via HTTPResponse. I would be processing the data
sent to the client via jquery.

I have posted this on SO, but the suggested answer doesn't make sense to
me. Here's the link: http://bit.ly/wGkZdA

A part of me feels that there is potentially another cleaner way to do what
I am trying to do, but I have yet to come up with a more elegant solution
(or any solution for that matter).

My views.py code is on the SO link, or you can also find it here:
http://dpaste.com/hold/694698/

Thanks in advance for all your help.

Best,
Harshil

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Need help in renaming template tags

2012-01-02 Thread CareerDhaba tech
Sent the previous email without reading the thread. I tried both {% import
%} and {% load %}, but it errors out when trying to access either of the
thumbnails in the app, spitting out an unpacking error. I have opened an
issue on the github page, but haven't heard from the original developer
yet.

- Harshil

On Mon, Jan 2, 2012 at 6:58 PM, Andre Terra <andrete...@gmail.com> wrote:

> I now realize the problem is much more complex than what I though
> originally.
>
> My suggestion to you is to use this nifty third-party tool called
> django-smart-load-tag[1].
>
> Once you get it up and running, try using {% import %} instead of {% load
> %}.
>
>
> Cheers,
> AT
>
> [1] https://github.com/codysoyland/django-smart-load-tag
>
>
> On Mon, Jan 2, 2012 at 10:57 AM, Andre Terra <andrete...@gmail.com> wrote:
>
>> Hello,
>>
>> I looked into your problem and realized the current implementation of {%
>> load %} doesn't allow for homonimous tags. I plan on working toward a patch
>> to fix this, but this can take a little while. Meanwhile, your best bet
>> would be to fork one of the two projects and change the tag's name, I
>> guess. Yes, it's very hacky, and no, don't do it in production.
>>
>> I'll try to keep you posted once I've got a ticket in TRAC.
>>
>>
>> Cheers,
>> AT
>>
>>
>>
>>
>> On Mon, Jan 2, 2012 at 4:38 AM, CareerDhaba tech <t...@careerdhaba.com>wrote:
>>
>>> Just bumping this up in case anyone can help.
>>>
>>> Thanks,
>>> Harshil
>>>
>>>
>>> On Mon, Dec 26, 2011 at 7:31 PM, CareerDhaba tech 
>>> <t...@careerdhaba.com>wrote:
>>>
>>>> Hey everyone,
>>>>
>>>> I am running into an issue where two third party apps easy_thumbnail
>>>> and sorl_thumbnail are using the custom template tag called thumbnail.
>>>> Hence, I am actually unable to use the tag at all. I would like to change
>>>> it so that the template tag from sorl_thumbnail is renamed as
>>>> sorl_thumbnail. A similar issue has cropped up before over on SO, but it
>>>> hasn't been resolved. See here: http://bit.ly/sE64Tb
>>>>
>>>> I have created a templatetags module within one of my apps, and have
>>>> tried a simple way to rename a registered tag as such:
>>>>
>>>> from django import template
>>>> from sorl.thumbnail.templatetags import thumbnail
>>>>
>>>> register = template.Library()
>>>>
>>>> def do_sorl_thumbnail(parser, token):
>>>> return thumbnail(parser, token)
>>>>  register.tag('sorl_thumbnail', do_sorl_thumbnail)
>>>>
>>>> Do I need to write a compile function and a render function for this?
>>>> Any help on this would be great.
>>>>
>>>> Thanks,
>>>> Harshil
>>>>
>>>>
>>>  --
>>> You received this message because you are subscribed to the Google
>>> Groups "Django users" group.
>>> To post to this group, send email to django-users@googlegroups.com.
>>> To unsubscribe from this group, send email to
>>> django-users+unsubscr...@googlegroups.com.
>>> For more options, visit this group at
>>> http://groups.google.com/group/django-users?hl=en.
>>>
>>
>>
>  --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Need help in renaming template tags

2012-01-02 Thread CareerDhaba tech
I am using two because django-userena uses easy_thumbnail, but I'd like to
use sorl-thumbnail for actual thumbnail use in my app.

- Harshil

On Mon, Jan 2, 2012 at 8:07 PM, francescortiz <francescor...@gmail.com>wrote:

> Why are you using two thumbnail providers?
>
> On Dec 26 2011, 3:01 pm, CareerDhaba tech <t...@careerdhaba.com>
> wrote:
> > Hey everyone,
> >
> > I am running into an issue where two third party apps easy_thumbnail and
> > sorl_thumbnail are using the custom template tag called thumbnail.
> Hence, I
> > am actually unable to use the tag at all. I would like to change it so
> that
> > the template tag from sorl_thumbnail is renamed as sorl_thumbnail. A
> > similar issue has cropped up before over on SO, but it hasn't been
> > resolved. See here:http://bit.ly/sE64Tb
> >
> > I have created a templatetags module within one of my apps, and have
> tried
> > a simple way to rename a registered tag as such:
> >
> > from django import template
> > from sorl.thumbnail.templatetags import thumbnail
> >
> > register = template.Library()
> >
> > def do_sorl_thumbnail(parser, token):
> > return thumbnail(parser, token)
> > register.tag('sorl_thumbnail', do_sorl_thumbnail)
> >
> > Do I need to write a compile function and a render function for this? Any
> > help on this would be great.
> >
> > Thanks,
> > Harshil
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Need help in renaming template tags

2012-01-02 Thread CareerDhaba tech
Hi Andre,

Thanks for looking into this. Have you come across this django app?
https://github.com/codysoyland/django-smart-load-tag

The app claims to have a fix for this problem, but I had trouble getting it
to work (unpacking issue). If you can keep me in the loop regarding the
ticket, that would be great.

Best,
Harshil

On Mon, Jan 2, 2012 at 6:27 PM, Andre Terra <andrete...@gmail.com> wrote:

> Hello,
>
> I looked into your problem and realized the current implementation of {%
> load %} doesn't allow for homonimous tags. I plan on working toward a patch
> to fix this, but this can take a little while. Meanwhile, your best bet
> would be to fork one of the two projects and change the tag's name, I
> guess. Yes, it's very hacky, and no, don't do it in production.
>
> I'll try to keep you posted once I've got a ticket in TRAC.
>
>
> Cheers,
> AT
>
>
>
> On Mon, Jan 2, 2012 at 4:38 AM, CareerDhaba tech <t...@careerdhaba.com>wrote:
>
>> Just bumping this up in case anyone can help.
>>
>> Thanks,
>> Harshil
>>
>>
>> On Mon, Dec 26, 2011 at 7:31 PM, CareerDhaba tech 
>> <t...@careerdhaba.com>wrote:
>>
>>> Hey everyone,
>>>
>>> I am running into an issue where two third party apps easy_thumbnail and
>>> sorl_thumbnail are using the custom template tag called thumbnail. Hence, I
>>> am actually unable to use the tag at all. I would like to change it so that
>>> the template tag from sorl_thumbnail is renamed as sorl_thumbnail. A
>>> similar issue has cropped up before over on SO, but it hasn't been
>>> resolved. See here: http://bit.ly/sE64Tb
>>>
>>> I have created a templatetags module within one of my apps, and have
>>> tried a simple way to rename a registered tag as such:
>>>
>>> from django import template
>>> from sorl.thumbnail.templatetags import thumbnail
>>>
>>> register = template.Library()
>>>
>>> def do_sorl_thumbnail(parser, token):
>>> return thumbnail(parser, token)
>>>  register.tag('sorl_thumbnail', do_sorl_thumbnail)
>>>
>>> Do I need to write a compile function and a render function for this?
>>> Any help on this would be great.
>>>
>>> Thanks,
>>> Harshil
>>>
>>>
>>  --
>> You received this message because you are subscribed to the Google Groups
>> "Django users" group.
>> To post to this group, send email to django-users@googlegroups.com.
>> To unsubscribe from this group, send email to
>> django-users+unsubscr...@googlegroups.com.
>> For more options, visit this group at
>> http://groups.google.com/group/django-users?hl=en.
>>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Need help in renaming template tags

2012-01-01 Thread CareerDhaba tech
Just bumping this up in case anyone can help.

Thanks,
Harshil

On Mon, Dec 26, 2011 at 7:31 PM, CareerDhaba tech <t...@careerdhaba.com>wrote:

> Hey everyone,
>
> I am running into an issue where two third party apps easy_thumbnail and
> sorl_thumbnail are using the custom template tag called thumbnail. Hence, I
> am actually unable to use the tag at all. I would like to change it so that
> the template tag from sorl_thumbnail is renamed as sorl_thumbnail. A
> similar issue has cropped up before over on SO, but it hasn't been
> resolved. See here: http://bit.ly/sE64Tb
>
> I have created a templatetags module within one of my apps, and have tried
> a simple way to rename a registered tag as such:
>
> from django import template
> from sorl.thumbnail.templatetags import thumbnail
>
> register = template.Library()
>
> def do_sorl_thumbnail(parser, token):
> return thumbnail(parser, token)
>  register.tag('sorl_thumbnail', do_sorl_thumbnail)
>
> Do I need to write a compile function and a render function for this? Any
> help on this would be great.
>
> Thanks,
> Harshil
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Need help in renaming template tags

2011-12-26 Thread CareerDhaba tech
Hey everyone,

I am running into an issue where two third party apps easy_thumbnail and
sorl_thumbnail are using the custom template tag called thumbnail. Hence, I
am actually unable to use the tag at all. I would like to change it so that
the template tag from sorl_thumbnail is renamed as sorl_thumbnail. A
similar issue has cropped up before over on SO, but it hasn't been
resolved. See here: http://bit.ly/sE64Tb

I have created a templatetags module within one of my apps, and have tried
a simple way to rename a registered tag as such:

from django import template
from sorl.thumbnail.templatetags import thumbnail

register = template.Library()

def do_sorl_thumbnail(parser, token):
return thumbnail(parser, token)
register.tag('sorl_thumbnail', do_sorl_thumbnail)

Do I need to write a compile function and a render function for this? Any
help on this would be great.

Thanks,
Harshil

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Looking for a good Document Management System (DMS) to plug into my Django app

2011-10-17 Thread CareerDhaba tech
Hi folks,

I have been looking around all over to find a high quality DMS to plug into
my Django application. I'd like to be able to upload and download .docx or
.pdf files, edit the metadata, and also be able to serve the content of the
files on the front end. If the plugin allows for preview, that would be
great as well.

I am currently building a content rich django app and need to be able to do
something like this: http://bit.ly/pUyLyC

I have come across Mayan, and although it has all the features I need, its a
separate app in itself and there is no API for me to connect my app to data
sitting on Mayan. Any other insight or points in the right direction would
be tremendously helpful.

Best,
Harshil

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: RegistrationForm subclass not showing up

2011-07-08 Thread CareerDhaba tech
I believe you are using an older version of django_registration, since there
is no reference to the backend in your code. The backend is an addition in
the latest (0.8) version of django_registration.

Did you download the code from here?
http://readthedocs.org/docs/django-registration/en/latest/index.html


On Fri, Jul 8, 2011 at 3:39 PM, katstevens <kat.stev...@gmail.com> wrote:

> Thanks for your answer, but unfortunately that hasn't helped - on
> further investigation I think the problem is somewhere else, as the
> original RegistrationForm class instance (in registration.forms)
> doesn't seem to be being called correctly by registration.views (so no
> wonder RegistrationFormTermsOfService isn't working!). I tried making
> some small changes to the labels in the RegistrationForm class and it
> is still displaying the default label values in my template. For
> example, the class declaration now looks like:
>
>  class RegistrationForm(forms.Form):
> # all the other fields
> # ...
> password1 =
> forms.CharField(widget=forms.PasswordInput(attrs=attrs_dict,
> render_value=False),
>label=_(u'different password label'))
>
> In registration.views I've imported the form as follows
>
>  from registration.forms import RegistrationForm
>
> And used the default view declaration:
>
>  def register(request, success_url=None,
> form_class=RegistrationForm, profile_callback=None,
> template_name='registration/registration_form.html',
> extra_context=None):
>if request.method == 'POST':
>   # do post stuff
>else:
>   # instantiate blank form
>form = form_class()
>
> Finally, on the registration_form.html template I've tried calling the
> fields explicitly rather than using the form.as_table tag:
>
>  {{ form.password1.label_tag }}
>  {{ form.password1 }}
>
> The page displays these fields fine, yet the label still gives the
> default label value of 'password' instead of 'different password
> label'. I'm not getting any syntax errors, and I've rebooted my server
> for good measure with the same results. Therefore I assume that either
> form = form_class() isn't actually instantiating RegistrationForm
> properly in the view, or there is some sort of overriding default
> being called from a different location (maybe django.contrib.auth?).
>
> Also - I can't see the form_call field that you mention - does this
> refer to the parameter 'form_class=RegistrationForm' I've used above
> in my registration view?
>
> Thanks again!
>
> On Jul 8, 7:08 am, CareerDhaba tech <t...@careerdhaba.com> wrote:
> > Hi Kat,
> >
> > You have to tell the your registration view to use the
> > RegistrationFormTermsofService. First, import that class from forms and
> > change your form_call from None to to RegistrationFormTermsofService.
> >
> > Hope this helps.
> >
> >
> >
> >
> >
> >
> >
> > On Thu, Jul 7, 2011 at 5:34 PM, katstevens <kat.stev...@gmail.com>
> wrote:
> > > Hi - I'm new to Django and am using django-registration to set up new
> > > users.
> >
> > > The basic RegistrationForm shows up fine in my template (which just
> > > uses {{ form.as_table }} to generate fields inside the form HTML), but
> > > I now want to use the RegistrationFormTermsOfService subclass instead.
> >
> > > I set it as a parameter in urls.py as follows:
> > >   url(r'^register/$',
> > >   register,
> > >   {'form_class':
> > > RegistrationFormTermsOfService},
> > >   name='registration_register'),
> >
> > > ... but the original RegistrationForm is still showing instead. Any
> > > ideas why this would be? Do I have to remove the default 'form_class'
> > > value in the register declaration in views.py (as that still gives
> > > RegistrationForm as the default)? Or do I need to alter my template?
> >
> > > I'm sure I'm missing something really obvious - any help gratefully
> > > received.
> >
> > > Kat
> >
> > > --
> > > You received this message because you are subscribed to the Google
> Groups
> > > "Django users" group.
> > > To post to this group, send email to django-users@googlegroups.com.
> > > To unsubscribe from this group, send email to
> > > django-users+unsubscr...@googlegroups.com.
> > > For more options, visit this group at
> > >http://groups.google.com/group/django-users?hl=en.

Re: RegistrationForm subclass not showing up

2011-07-08 Thread CareerDhaba tech
Hi Kat,

You have to tell the your registration view to use the
RegistrationFormTermsofService. First, import that class from forms and
change your form_call from None to to RegistrationFormTermsofService.

Hope this helps.

On Thu, Jul 7, 2011 at 5:34 PM, katstevens  wrote:

> Hi - I'm new to Django and am using django-registration to set up new
> users.
>
> The basic RegistrationForm shows up fine in my template (which just
> uses {{ form.as_table }} to generate fields inside the form HTML), but
> I now want to use the RegistrationFormTermsOfService subclass instead.
>
> I set it as a parameter in urls.py as follows:
>   url(r'^register/$',
>   register,
>   {'form_class':
> RegistrationFormTermsOfService},
>   name='registration_register'),
>
> ... but the original RegistrationForm is still showing instead. Any
> ideas why this would be? Do I have to remove the default 'form_class'
> value in the register declaration in views.py (as that still gives
> RegistrationForm as the default)? Or do I need to alter my template?
>
> I'm sure I'm missing something really obvious - any help gratefully
> received.
>
> Kat
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Issue with saving user information during django_registration

2011-07-07 Thread CareerDhaba tech
Yep, that solved the problem. Very stupid mistake on my part, but this is a
mistake I will learn from. I am a newbie at HTML as well, and I thought the
action was the redirect page, not the page to submit form data.

Thanks for your help André.

On Thu, Jul 7, 2011 at 6:27 PM, Andre Terra <andrete...@gmail.com> wrote:

> I'm mostly guessing, but try this for your registration_form.html template
> instead http://dpaste.com/hold/564305/
>
>
> Cheers,
> André
>
> On Thu, Jul 7, 2011 at 12:03 AM, CareerDhaba tech <t...@careerdhaba.com>wrote:
>
>> Hi André,
>>
>> Thanks for the feedback.
>>
>> Here is the relevant code:
>>
>> registration_form view:
>>
>> http://dpaste.com/564165/
>>
>> my views.py file directly from the django_registration app code:
>>
>> http://dpaste.com/564166/
>>
>> Here is my form class:
>>
>> http://dpaste.com/564167/
>>
>> - Harshil
>>
>>
>> On Thu, Jul 7, 2011 at 3:52 AM, Andre Terra <andrete...@gmail.com> wrote:
>>
>>> Start by pasting relevant code. Views, forms and possibly the backend
>>> logic. Use dpaste.com
>>>
>>> And quit bumping or you'll never get an answer, not from most of us.
>>>
>>> Regards,
>>> André Terra
>>>
>>> On 7/6/11, CareerDhaba tech <t...@careerdhaba.com> wrote:
>>> > Bumping once more. Can anyone shine some light on this issue? Would be
>>> > extremely helpful.
>>> >
>>> >
>>> > On Wed, Jul 6, 2011 at 6:24 PM, CareerDhaba tech
>>> > <t...@careerdhaba.com>wrote:
>>> >
>>> >> Bump - anyone has any insight into this?
>>> >>
>>> >> I am happy to post my code, just not sure where I am going wrong.
>>> >>
>>> >> On Wed, Jul 6, 2011 at 2:35 PM, CareerDhaba tech
>>> >> <t...@careerdhaba.com>wrote:
>>> >>
>>> >>> Hey folks,
>>> >>>
>>> >>> Django newbie here and I need some help. I am using
>>> django_registration
>>> >>> v0.8 and using the docs here:
>>> >>> http://readthedocs.org/docs/django-registration/en/latest/index.html
>>> >>>
>>> >>> I have successfully installed the app, and I am using the default
>>> backend
>>> >>> for my registration purposes.
>>> >>>
>>> >>> I have tested this and I can get the form to show up properly at
>>> >>> '/accounts/register'
>>> >>>
>>> >>> However, one problem is that if I try and break the form input
>>> (different
>>> >>> password1 and password2 or improper username), no validation errors
>>> are
>>> >>> being invoked.
>>> >>>
>>> >>> The issue also, is that the username, email, and password data is not
>>> >>> being stored in auth_user, and the activation email isn't being sent.
>>> >>>
>>> >>> From the default backend doc, "During registration, a new instance of
>>> >>> django.contrib.auth.models.User is created to represent the new
>>> account,
>>> >>> with the is_active field set to False. An email is then sent to the
>>> email
>>> >>> address of the account, containing a link the user must click to
>>> activate
>>> >>> the account; at that point the is_active field is set to True, and
>>> the
>>> >>> user may log in normally."
>>> >>>
>>> >>> I believe this new instance of django.contrib.auth.models.User is not
>>> >>> being created.
>>> >>>
>>> >>> I have also included the necessary email settings:
>>> >>> EMAIL_USE_TLS = True
>>> >>> EMAIL_HOST = "smtp.gmail.com"
>>> >>> EMAIL_HOST_USER = "Email"
>>> >>> EMAIL_HOST_PASSWORD = "Password"
>>> >>> EMAIL_PORT = 587
>>> >>>
>>> >>> Any help on getting this straight? I am pretty sure I am missing
>>> >>> something
>>> >>> simple, but been trying to figure it out without any progress. Any
>>> help
>>> >>> is
>>> >>> greatly appreciated.
>>> >>>
>>> >>> Thanks,
>>> >>> Harshil
>>> >>>
>>

Re: How to use the django-users mailing list properly and doing your homework..

2011-07-06 Thread CareerDhaba tech
Stack Overflow: http://stackoverflow.com


On Thu, Jul 7, 2011 at 9:00 AM, Kenneth Gonsalves wrote:

> On Thu, 2011-07-07 at 00:10 +0100, Cal Leeming [Simplicity Media Ltd]
> wrote:
> > I'm going to ask a really stupid question...
> >
> > What's "SO"?
>
> I was just going to ask that.
> --
> regards
> KG
> http://lawgon.livejournal.com
> Coimbatore LUG rox
> http://ilugcbe.techstud.org/
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Issue with saving user information during django_registration

2011-07-06 Thread CareerDhaba tech
Hi André,

Thanks for the feedback.

Here is the relevant code:

registration_form view:

http://dpaste.com/564165/

my views.py file directly from the django_registration app code:

http://dpaste.com/564166/

Here is my form class:

http://dpaste.com/564167/

- Harshil

On Thu, Jul 7, 2011 at 3:52 AM, Andre Terra <andrete...@gmail.com> wrote:

> Start by pasting relevant code. Views, forms and possibly the backend
> logic. Use dpaste.com
>
> And quit bumping or you'll never get an answer, not from most of us.
>
> Regards,
> André Terra
>
> On 7/6/11, CareerDhaba tech <t...@careerdhaba.com> wrote:
> > Bumping once more. Can anyone shine some light on this issue? Would be
> > extremely helpful.
> >
> >
> > On Wed, Jul 6, 2011 at 6:24 PM, CareerDhaba tech
> > <t...@careerdhaba.com>wrote:
> >
> >> Bump - anyone has any insight into this?
> >>
> >> I am happy to post my code, just not sure where I am going wrong.
> >>
> >> On Wed, Jul 6, 2011 at 2:35 PM, CareerDhaba tech
> >> <t...@careerdhaba.com>wrote:
> >>
> >>> Hey folks,
> >>>
> >>> Django newbie here and I need some help. I am using django_registration
> >>> v0.8 and using the docs here:
> >>> http://readthedocs.org/docs/django-registration/en/latest/index.html
> >>>
> >>> I have successfully installed the app, and I am using the default
> backend
> >>> for my registration purposes.
> >>>
> >>> I have tested this and I can get the form to show up properly at
> >>> '/accounts/register'
> >>>
> >>> However, one problem is that if I try and break the form input
> (different
> >>> password1 and password2 or improper username), no validation errors are
> >>> being invoked.
> >>>
> >>> The issue also, is that the username, email, and password data is not
> >>> being stored in auth_user, and the activation email isn't being sent.
> >>>
> >>> From the default backend doc, "During registration, a new instance of
> >>> django.contrib.auth.models.User is created to represent the new
> account,
> >>> with the is_active field set to False. An email is then sent to the
> email
> >>> address of the account, containing a link the user must click to
> activate
> >>> the account; at that point the is_active field is set to True, and the
> >>> user may log in normally."
> >>>
> >>> I believe this new instance of django.contrib.auth.models.User is not
> >>> being created.
> >>>
> >>> I have also included the necessary email settings:
> >>> EMAIL_USE_TLS = True
> >>> EMAIL_HOST = "smtp.gmail.com"
> >>> EMAIL_HOST_USER = "Email"
> >>> EMAIL_HOST_PASSWORD = "Password"
> >>> EMAIL_PORT = 587
> >>>
> >>> Any help on getting this straight? I am pretty sure I am missing
> >>> something
> >>> simple, but been trying to figure it out without any progress. Any help
> >>> is
> >>> greatly appreciated.
> >>>
> >>> Thanks,
> >>> Harshil
> >>>
> >>>
> >>
> >
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Django users" group.
> > To post to this group, send email to django-users@googlegroups.com.
> > To unsubscribe from this group, send email to
> > django-users+unsubscr...@googlegroups.com.
> > For more options, visit this group at
> > http://groups.google.com/group/django-users?hl=en.
> >
> >
>
> --
> Sent from my mobile device
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Issue with saving user information during django_registration

2011-07-06 Thread CareerDhaba tech
Bumping once more. Can anyone shine some light on this issue? Would be
extremely helpful.


On Wed, Jul 6, 2011 at 6:24 PM, CareerDhaba tech <t...@careerdhaba.com>wrote:

> Bump - anyone has any insight into this?
>
> I am happy to post my code, just not sure where I am going wrong.
>
> On Wed, Jul 6, 2011 at 2:35 PM, CareerDhaba tech <t...@careerdhaba.com>wrote:
>
>> Hey folks,
>>
>> Django newbie here and I need some help. I am using django_registration
>> v0.8 and using the docs here:
>> http://readthedocs.org/docs/django-registration/en/latest/index.html
>>
>> I have successfully installed the app, and I am using the default backend
>> for my registration purposes.
>>
>> I have tested this and I can get the form to show up properly at
>> '/accounts/register'
>>
>> However, one problem is that if I try and break the form input (different
>> password1 and password2 or improper username), no validation errors are
>> being invoked.
>>
>> The issue also, is that the username, email, and password data is not
>> being stored in auth_user, and the activation email isn't being sent.
>>
>> From the default backend doc, "During registration, a new instance of
>> django.contrib.auth.models.User is created to represent the new account,
>> with the is_active field set to False. An email is then sent to the email
>> address of the account, containing a link the user must click to activate
>> the account; at that point the is_active field is set to True, and the
>> user may log in normally."
>>
>> I believe this new instance of django.contrib.auth.models.User is not
>> being created.
>>
>> I have also included the necessary email settings:
>> EMAIL_USE_TLS = True
>> EMAIL_HOST = "smtp.gmail.com"
>> EMAIL_HOST_USER = "Email"
>> EMAIL_HOST_PASSWORD = "Password"
>> EMAIL_PORT = 587
>>
>> Any help on getting this straight? I am pretty sure I am missing something
>> simple, but been trying to figure it out without any progress. Any help is
>> greatly appreciated.
>>
>> Thanks,
>> Harshil
>>
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Issue with saving user information during django_registration

2011-07-06 Thread CareerDhaba tech
Bump - anyone has any insight into this?

I am happy to post my code, just not sure where I am going wrong.

On Wed, Jul 6, 2011 at 2:35 PM, CareerDhaba tech <t...@careerdhaba.com>wrote:

> Hey folks,
>
> Django newbie here and I need some help. I am using django_registration
> v0.8 and using the docs here:
> http://readthedocs.org/docs/django-registration/en/latest/index.html
>
> I have successfully installed the app, and I am using the default backend
> for my registration purposes.
>
> I have tested this and I can get the form to show up properly at
> '/accounts/register'
>
> However, one problem is that if I try and break the form input (different
> password1 and password2 or improper username), no validation errors are
> being invoked.
>
> The issue also, is that the username, email, and password data is not being
> stored in auth_user, and the activation email isn't being sent.
>
> From the default backend doc, "During registration, a new instance of
> django.contrib.auth.models.User is created to represent the new account,
> with the is_active field set to False. An email is then sent to the email
> address of the account, containing a link the user must click to activate
> the account; at that point the is_active field is set to True, and the
> user may log in normally."
>
> I believe this new instance of django.contrib.auth.models.User is not being
> created.
>
> I have also included the necessary email settings:
> EMAIL_USE_TLS = True
> EMAIL_HOST = "smtp.gmail.com"
> EMAIL_HOST_USER = "Email"
> EMAIL_HOST_PASSWORD = "Password"
> EMAIL_PORT = 587
>
> Any help on getting this straight? I am pretty sure I am missing something
> simple, but been trying to figure it out without any progress. Any help is
> greatly appreciated.
>
> Thanks,
> Harshil
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Flatpages do not work

2011-07-06 Thread CareerDhaba tech
Hi Paul,

As described in the error, Django couldn't find the url test/ in the URLconf
because its not there.

Go to the urls.py of your app and add the appropriate link, and view to the
URLconf.

Go through this link, it should be helpful -
https://docs.djangoproject.com/en/1.3/topics/http/urls/

On Wed, Jul 6, 2011 at 3:32 PM, Paul van der Vlis wrote:

> Hallo!
>
> I am a real beginner in Django, I try to install a new chat application
> called HelpIM, you will not know it.
>
> My problem is that the flatpages do not work. I can create a flatpage in
> the admin-interface, but when I go to it, I always see a "page not
> found" message from HelpIM: https://testchat4.e-hulp.nl/test/
> Maybe this page needs to go "out of the way". But how?
>
> In the documentation I cannot find something what's not correct:
> https://docs.djangoproject.com/en/dev/ref/contrib/flatpages/
>
> I am using the development version of Django (1.4), because HelpIM needs
> some new features from it.
>
> When I turn debug on, I see this:
> 
> Page not found (404)
> Request Method: GET
> Request URL:https://testchat4.e-hulp.nl/test/
> Using the URLconf defined in helpim.urls, Django tried these URL
> patterns, in this order:
> ^admin/translate/
> ^$ [name='client_join_chat']
> ^admin/
> ^admin/doc/
> ^admin/threadedcomments/
> ^admin/rooms/join/one2oneroom/$ [name='staff_join_next_available_chat']
> ^admin/rooms/join/one2oneroom/(\d+)/$ [name='staff_join_specific_chat']
> ^jsi18n/$
> The current URL, test/, didn't match any of these.
> You're seeing this error because you have DEBUG = True in your Django
> settings file. Change that to False, and Django will display a standard
> 404 page.
> --
>
> What I miss here is /var/www/testchat4/templates/flatpages/ , there is
> my default.html. And I don't know where to configure "helpim.urls".
>
> With regards,
> Paul van der Vlis.
>
> --
> Linux systeembeheer Groningen
> http://www.vandervlis.nl
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Issue with saving user information during django_registration

2011-07-06 Thread CareerDhaba tech
Hey folks,

Django newbie here and I need some help. I am using django_registration v0.8
and using the docs here:
http://readthedocs.org/docs/django-registration/en/latest/index.html

I have successfully installed the app, and I am using the default backend
for my registration purposes.

I have tested this and I can get the form to show up properly at
'/accounts/register'

However, one problem is that if I try and break the form input (different
password1 and password2 or improper username), no validation errors are
being invoked.

The issue also, is that the username, email, and password data is not being
stored in auth_user, and the activation email isn't being sent.

>From the default backend doc, "During registration, a new instance of
django.contrib.auth.models.User is created to represent the new account,
with the is_active field set to False. An email is then sent to the email
address of the account, containing a link the user must click to activate
the account; at that point the is_active field is set to True, and the user
may log in normally."

I believe this new instance of django.contrib.auth.models.User is not being
created.

I have also included the necessary email settings:
EMAIL_USE_TLS = True
EMAIL_HOST = "smtp.gmail.com"
EMAIL_HOST_USER = "Email"
EMAIL_HOST_PASSWORD = "Password"
EMAIL_PORT = 587

Any help on getting this straight? I am pretty sure I am missing something
simple, but been trying to figure it out without any progress. Any help is
greatly appreciated.

Thanks,
Harshil

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Foreign key dependent model's data not getting saved !

2011-06-25 Thread CareerDhaba tech
Hey,

Thanks Karen for the reply. I have been trying many things on this form and
trying to save both the models data using one form in a single instance. I
did try the commit=False method too but it gave an error which i couldnt
figure out. Everytime i try doing something new an unknown error/exception
pops up that too in some random file and location :(.

This is the traceback which i got now after changing code

Environment:


Request Method: POST
Request URL: http://127.0.0.1:8000/cd/registration/register/

Django Version: 1.3
Python Version: 2.7.1
Installed Applications:
['django.contrib.auth',
 'django.contrib.contenttypes',
 'django.contrib.sessions',
 'django.contrib.sites',
 'django.contrib.messages',
 'django.contrib.staticfiles',
 'django.contrib.admin',
 'registration']
Installed Middleware:
('django.middleware.common.CommonMiddleware',
 'django.contrib.sessions.middleware.SessionMiddleware',
 'django.middleware.csrf.CsrfViewMiddleware',
 'django.contrib.auth.middleware.AuthenticationMiddleware',
 'django.contrib.messages.middleware.MessageMiddleware',
 'django.middleware.csrf.CsrfResponseMiddleware')


Traceback:
File "C:\Python27\lib\site-packages\django\core\handlers\base.py" in
get_response
  111. response = callback(request, *callback_args,
**callback_kwargs)
File "C:\Users\pradeep\Desktop\cd\registration\views.py" in register
  23. return direct_to_template('success.html',{})
File "C:\Python27\lib\site-packages\django\views\generic\simple.py" in
direct_to_template
  26. c = RequestContext(request, dictionary)
File "C:\Python27\lib\site-packages\django\template\context.py" in __init__
  177. self.update(processor(request))
File "C:\Python27\lib\site-packages\django\core\context_processors.py" in
debug
  53. if settings.DEBUG and request.META.get('REMOTE_ADDR') in
settings.INTERNAL_IPS:

Exception Type: AttributeError at /cd/registration/register/
Exception Value: 'str' object has no attribute 'META'


On Sat, Jun 25, 2011 at 11:04 PM, Karen Tracey <kmtra...@gmail.com> wrote:

> On Sat, Jun 25, 2011 at 1:00 PM, CareerDhaba tech <t...@careerdhaba.com>wrote:
>
>> The user model is getting saved with username and password but the
>> userprofile isn;t :(
>
>
> That is a somewhat misleading description of the problem since the code as
> you have posted it would not just fail to save the userprofile it would
> raise an exception on the attempt to pass user to RegForm, since RegForm as
> you have shown it is not expecting user as a keyword argument.
>
> The right way to handle saving model forms which have explicitly excluded
> necessary data is described here:
> https://docs.djangoproject.com/en/1.3/topics/forms/modelforms/#using-a-subset-of-fields-on-the-form
>
> In this case you would want to save the originally-created RegForm instance
> uprofile with comit=False, then set the user attribute to the user returned
> by the other form save, then save the user profile instance:
>
> up = uprofile.save(commit=False)
> up.user = userid
> up.save()
>
> Karen
> --
> http://tracey.org/kmt/
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Foreign key dependent model's data not getting saved !

2011-06-25 Thread CareerDhaba tech
Whats the problem with this code ?

*models.py

*class userprofile(models.Model):
user = models.OneToOneField(User)
Firstname = models.CharField(max_length=20)
Middlename = models.CharField(max_length=20)
Surname = models.CharField(max_length=20)
Gender = models.CharField(max_length=1, blank=False,
choices=GENDER_CHOICES)
Date_of_Birth = models.DateField()
Hometown = models.ForeignKey(city)
StudentType = models.CharField(max_length=20, blank=False,
choices=STUDENT_CHOICES)
*
forms.py
*from django.contrib.auth
class RegForm(ModelForm):
Date_of_Birth = forms.DateField(widget=SelectDateWidget(years=[y for y
in range(1960,2005)]))
class Meta:
model = userprofile
exclude = ('user',)

*
views.py
*from django.contrib.auth.forms import UserCreationForm

def register(request):
if request.method == 'POST':
form = UserCreationForm(request.POST)
uprofile = RegForm(request.POST)
if form.is_valid() and uprofile.is_valid():
userid = form.save()
a = RegForm(request.POST,user = userid)
a.save()
return direct_to_template('success.html',{})
else:
userform = UserCreationForm()
RF = RegForm()

return render_to_response('register.html',{
'uf': userform,
'rf': RF,
})

return render_to_response('regcheck1.html',{})
*
regcheck1.html

*{%
csrf_token %}
{{ rf.as_p }}
{{ uf.as_p }}

*

*The user model is getting saved with username and password but the
userprofile isn;t :(

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: 'module' object has no attribute 'Manipulator'

2011-06-24 Thread CareerDhaba tech
Thanks Jacob for the reply although u didn't answer giving a reason for the
error. Well that's where i started, have gone through the basic docs for
forms/models etc. I have worked with many other forms, all kinds of models
of data and saving them to database etc. The only problem i am facing is
while registering the user for the existing auth tables.

Its and old example i know but couldn't find any better ones where
registration of the user is completely and given in detail.


On Sat, Jun 25, 2011 at 1:51 AM, Jacob Kaplan-Moss <ja...@jacobian.org>wrote:

> On Fri, Jun 24, 2011 at 3:00 PM, CareerDhaba tech <t...@careerdhaba.com>
> wrote:
> > I am very new to Django just started working around with forms. I have
> been
> > facing difficulty in getting a user registered. Anyways i was following
> > steps given in James Bennet blog.
> >
> > http://www.b-list.org/weblog/2006/sep/02/django-tips-user-registration/
>
> This is an incredibly old example, and it's written using Django's old
> form system. I suggest you start with the official docs:
>
> https://docs.djangoproject.com/en/1.3/topics/forms/
>
> In general, the official docs are going to be better than most of what
> you find randomly online, especially for basic stuff like "how do I
> use forms?" Try to get familiar with the official docs and how to move
> around and find things in 'em and I think you'll find most of what
> you're looking for there.
>
> Jacob
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



'module' object has no attribute 'Manipulator'

2011-06-24 Thread CareerDhaba tech
Hey,

I am very new to Django just started working around with forms. I have been
facing difficulty in getting a user registered. Anyways i was following
steps given in James Bennet blog.

http://www.b-list.org/weblog/2006/sep/02/django-tips-user-registration/

I have defined my classes, forms similar to whats given on the blog post.

Here is my traceback :
---
Environment:


Request Method: GET
Request URL: http://127.0.0.1:8000/cd/

Django Version: 1.3
Python Version: 2.7.1
Installed Applications:
['django.contrib.auth',
 'django.contrib.contenttypes',
 'django.contrib.sessions',
 'django.contrib.sites',
 'django.contrib.messages',
 'django.contrib.staticfiles',
 'django.contrib.admin',
 'registration']
Installed Middleware:
('django.middleware.common.CommonMiddleware',
 'django.contrib.sessions.middleware.SessionMiddleware',
 'django.middleware.csrf.CsrfViewMiddleware',
 'django.contrib.auth.middleware.AuthenticationMiddleware',
 'django.contrib.messages.middleware.MessageMiddleware',
 'django.middleware.csrf.CsrfResponseMiddleware')


Template error:
In template c:\users\pradeep\desktop\cd\templates\index.html, error at line
6
   Caught AttributeError while rendering: 'module' object has no attribute
'Manipulator'
   1 : 


   2 : 


   3 : 


   4 : 


   5 : Hey you are on index page


   6 : Register


   7 : 


   8 : 

Traceback:
File "C:\Python27\lib\site-packages\django\core\handlers\base.py" in
get_response
  111. response = callback(request, *callback_args,
**callback_kwargs)
File "C:\Users\pradeep\Desktop\cd\views.py" in indexPage
  8. return direct_to_template(request, template='index.html')
File "C:\Python27\lib\site-packages\django\views\generic\simple.py" in
direct_to_template
  28. return HttpResponse(t.render(c), mimetype=mimetype)
File "C:\Python27\lib\site-packages\django\template\base.py" in render
  123. return self._render(context)
File "C:\Python27\lib\site-packages\django\template\base.py" in _render
  117. return self.nodelist.render(context)
File "C:\Python27\lib\site-packages\django\template\base.py" in render
  744. bits.append(self.render_node(node, context))
File "C:\Python27\lib\site-packages\django\template\debug.py" in render_node
  73. result = node.render(context)
File "C:\Python27\lib\site-packages\django\template\defaulttags.py" in
render
  437. url = reverse(view_name, args=args, kwargs=kwargs,
current_app=context.current_app)
File "C:\Python27\lib\site-packages\django\core\urlresolvers.py" in reverse
  391. *args, **kwargs)))
File "C:\Python27\lib\site-packages\django\core\urlresolvers.py" in reverse
  312. possibilities = self.reverse_dict.getlist(lookup_view)
File "C:\Python27\lib\site-packages\django\core\urlresolvers.py" in
_get_reverse_dict
  229. self._populate()
File "C:\Python27\lib\site-packages\django\core\urlresolvers.py" in
_populate
  208. for name in pattern.reverse_dict:
File "C:\Python27\lib\site-packages\django\core\urlresolvers.py" in
_get_reverse_dict
  229. self._populate()
File "C:\Python27\lib\site-packages\django\core\urlresolvers.py" in
_populate
  197. for pattern in reversed(self.url_patterns):
File "C:\Python27\lib\site-packages\django\core\urlresolvers.py" in
_get_url_patterns
  279. patterns = getattr(self.urlconf_module, "urlpatterns",
self.urlconf_module)
File "C:\Python27\lib\site-packages\django\core\urlresolvers.py" in
_get_urlconf_module
  274. self._urlconf_module = import_module(self.urlconf_name)
File "C:\Python27\lib\site-packages\django\utils\importlib.py" in
import_module
  35. __import__(name)
File "C:\Users\pradeep\Desktop\cd\registration\urls.py" in 
  2. from registration import views
File "C:\Users\pradeep\Desktop\cd\registration\views.py" in 
  10. from registration.forms import UserForm, StateForm, CityForm, RegForm,
LoginForm, UserSchoolForm, UserCollegeForm, UserUnivForm, UserCompanyForm
File "C:\Users\pradeep\Desktop\cd\registration\forms.py" in 
  15. class UserForm(forms.Manipulator):

Exception Type: TemplateSyntaxError at /cd/
Exception Value: Caught AttributeError while rendering: 'module' object has
no attribute 'Manipulator'



I tried using django-registration but couldn't figure out how everything
works as i couldn't find good documentation or working examples using the
same :( .

Glad if you people can help me out with this error and also if there is an
easy way to use the default auth user table and also creating our own user
profile.

Regards,
Pradeep

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this 

Re: Our new startup site build on Django and GAE is now live!

2011-06-02 Thread CareerDhaba tech
Cool looking site, but it would be useful to allow people to browse the site
a bit before having to register.

On Fri, Jun 3, 2011 at 9:45 AM, Gath  wrote:

> Great stuff!! Thumbs up.
>
> I like the concept!
>
> Please share you knowledge on how you did the Django/GAE integration.
>
> Gath
>
> On Jun 2, 10:02 am, maverick  wrote:
> > We build a pretty cool website LOCQL (www.LOCQL.com) purely on Django
> > and run on GAE has just went live!
> >
> > I would say development with Django is purely enjoyable experience,
> > however the Google Apps Engine does bring us some headache esp. we are
> > a location based service, the geo-location related search is a
> > challenge for us.
> >
> > I would like everyone who use Django to give us a try and feedback are
> > warmly welcome!
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Django 1.3 docs PDF

2011-06-02 Thread tech tech
Oscar - thanks so much for this. Just a few hours ago, I was
frantically trying to download the django site offline in preparation
for two overnight train journeys from Bombay to Himachal Pradesh.

The internet is spotty at best whilst on the train, and it is
non-existent in the mountains of Himachal where I am headed for the
next ten days.

I agree with André - having links to official PDF's on the project
website would be very useful.

- Harshil

On 6/2/11, Andre Terra  wrote:
> I'm going to repeat myself and say +1 on having links to 'official' PDFs
> available somewhere in djangoproject.com.
>
>
> Sincerely,
> André Terra
>
> On Thu, Jun 2, 2011 at 1:07 AM, Oscar Carballal  wrote:
>
>> Didn't know that django had a page on readthedocs.org. But even when
>> the RTD API generates the same document, it has one fault, the content
>> index, sometimes it does not generate it (I've come up with this issue
>> when generating the PDF by hand using the RTD code, I had to run
>> pdflatex two times to get the contents).
>>
>> Anyway, thanks for pointing it! :-)
>>
>> 2011/6/2 Jacob Kaplan-Moss :
>> > On Wed, Jun 1, 2011 at 4:47 PM, Oscar Carballal 
>> wrote:
>> >> I've just created a PDF (5.6MB, 1042 pages) with all the django 1.3
>> >> docs [|], just in case someone need it (sometimes it's useful to have
>> >> the docs offline).
>> >
>> > Also see http://readthedocs.org/projects/django/, which has got links
>> > to PDF downloads for 1.3, 1.2, and development trunk.
>> >
>> > Jacob
>> >
>> > --
>> > You received this message because you are subscribed to the Google
>> > Groups
>> "Django users" group.
>> > To post to this group, send email to django-users@googlegroups.com.
>> > To unsubscribe from this group, send email to
>> django-users+unsubscr...@googlegroups.com.
>> > For more options, visit this group at
>> http://groups.google.com/group/django-users?hl=en.
>> >
>> >
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Django users" group.
>> To post to this group, send email to django-users@googlegroups.com.
>> To unsubscribe from this group, send email to
>> django-users+unsubscr...@googlegroups.com.
>> For more options, visit this group at
>> http://groups.google.com/group/django-users?hl=en.
>>
>>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



.Net Developer Job Opening - Valencia, CA

2011-04-04 Thread Makro Tech
Hi

This is Vignesh with Makro Technologies, Inc.
We have been in business for over 10 years and we are one of the Fast 500
National IT staffing and Solution firms in USA. Our clients include
country’s top-notch IT, Healthcare, Pharmaceutical, Financial,
Telecom,Government and other industries.

Staying current with technology, finding great consultants and exceeding our
clients' expectations are our primary objectives.

Thanks for your time and attention to this e-mail.  Please let me know if
you have any candidates available, please find the Job description as
mentioned below.

*Title : .Net Developer
Location : Valencia, CA
Duration :6 Months*
*Responsibilities:*
• Work closely with business representatives and other team members to
understand business requirements that drive the analysis, design and
development of quality technical solutions that align with business and IT
strategies and comply with corporate and regulatory standards
• Direct and participate in the full software development lifecycle
• Make recommendations towards the development of new systems or reuse of
existing systems
• Work on medium to large, varied and complex projects that require skill in
multiple technical environments and knowledge in various business areas
• Work on multiple simultaneous projects as a project team member and/or as
a project lead
• Coach and/or mentor more junior technical staff
*
Required Skills*
• Bachelor degree in Computer Science or a related area
• 7+ years of programming/systems analysis experience
• Waterfall SDLC experience
• Ability to be a self-starter in a dynamic and fast paced environment
• Microsoft technologies, including .Net, C#, VB.Net, ASP.Net, XML, HTML,
JavaScript.
• Tools: Visual Studio .Net 2008, SQL Server 2000-2008, SVN
• Database technologies: Microsoft SQL, Oracle PL/SQL
• Reporting systems: Crystal Reports Server 2008
• Regulatory software validation experience a plus

Thanks
*Vignesh
*Sr Talent Acquisation
Tel: 973-481-0100  Ext: 3069
Fax: 973 883 1488
*E mail:* vignesh.renik...@makrohealth.com
*Linkedin: 
**http://www.linkedin.com/in/vignesh1*

For current openings please visit
http://jobs.makrotech.com/searchjobs.aspx

Candidate HelpDesk: 973-679-5005
*
Makro Technologies Inc.*
www.makrotech.com
Corporate Headquarters: New Jersey
One Washington Park, Suite 1502, Newark, NJ 07102
*Other Offices:* Pennsylvania, Illinois, California
** Makro is a 3-time INC 5000 company for 2007/2008/2009
** Makro is a 3-time FAST 50 firm in NJ for 2005/2006/2007 (by Deloitte)
** Makro is a 3-time FAST 500 firm in USA for 2005/2006/2007 (by
Deloitte)

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



.Net Developer Job Opening - Valencia, CA

2011-04-01 Thread Makro Tech
Hi

This is Vignesh with Makro Technologies, Inc.
We have been in business for over 10 years and we are one of the Fast 500
National IT staffing and Solution firms in USA. Our clients include
country’s top-notch IT, Healthcare, Pharmaceutical, Financial,
Telecom,Government and other industries.

Staying current with technology, finding great consultants and exceeding our
clients' expectations are our primary objectives.

Thanks for your time and attention to this e-mail.  Please let me know if
you have any candidates available, please find the Job description as
mentioned below.

*Title : .Net Developer
Location : Valencia, CA
Duration :6 Months*
*Responsibilities:*
• Work closely with business representatives and other team members to
understand business requirements that drive the analysis, design and
development of quality technical solutions that align with business and IT
strategies and comply with corporate and regulatory standards
• Direct and participate in the full software development lifecycle
• Make recommendations towards the development of new systems or reuse of
existing systems
• Work on medium to large, varied and complex projects that require skill in
multiple technical environments and knowledge in various business areas
• Work on multiple simultaneous projects as a project team member and/or as
a project lead
• Coach and/or mentor more junior technical staff
*
Required Skills*
• Bachelor degree in Computer Science or a related area
• 7+ years of programming/systems analysis experience
• Waterfall SDLC experience
• Ability to be a self-starter in a dynamic and fast paced environment
• Microsoft technologies, including .Net, C#, VB.Net, ASP.Net, XML, HTML,
JavaScript.
• Tools: Visual Studio .Net 2008, SQL Server 2000-2008, SVN
• Database technologies: Microsoft SQL, Oracle PL/SQL
• Reporting systems: Crystal Reports Server 2008
• Regulatory software validation experience a plus

Thanks
*Vignesh
*Sr Talent Acquisation Consultant
Tel: 973-481-0100  Ext: 3069
Fax: 973 883 1488
*E mail:* vignesh.renik...@makrohealth.com
Linkedin: 
*http://www.linkedin.com/in/vignesh1*
(Accept
All Invitations to your's and My Professional Network)
http://www.twitter.com/Makro_Tech (follow me get Followed back)

For current openings please visit
http://jobs.makrotech.com/searchjobs.aspx

Candidate HelpDesk: 973-679-5005
*
Makro Technologies Inc.*
www.makrotech.com
Corporate Headquarters: New Jersey
One Washington Park, Suite 1502, Newark, NJ 07102
*Other Offices:* Pennsylvania, Illinois, California
** Makro is a 3-time INC 5000 company for 2007/2008/2009
** Makro is a 3-time FAST 50 firm in NJ for 2005/2006/2007 (by Deloitte)
** Makro is a 3-time FAST 500 firm in USA for 2005/2006/2007 (by
Deloitte)

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Major Tech Start up – NYC –Python Developer - Dj ango/ Python Java/J2ee

2010-07-11 Thread Tech Scout
* Major Tech Start up – NYC –Python Developer - Django/ Python Java/J2ee FTE
opportunity *
*View, Refer or Apply confidentially here:
**http://bitURL.net/3df<http://biturl.net/3df>
*
*
*
* <http://biturl.net/3df>**Tech Scout
*

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



usage of Django in Atlanta?

2009-04-12 Thread Tech Scout

What companies do you know of that are using Django in the Atlanta
area?

Marcel Duffoo

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---